|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JScrollPane | +--com.klg.jclass.cell.editors.JCMultilineCellEditor
JCMultilineCellEditor
provides a simple text editing component
for multiline data.
Nested Class Summary | |
class |
JCMultilineCellEditor.JCMultilineCellEditorTextArea
|
Nested classes inherited from class javax.swing.JScrollPane |
JScrollPane.AccessibleJScrollPane, JScrollPane.ScrollBar |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected int |
caretPosition
|
protected Object |
data
|
protected AWTEvent |
initialEvent
|
protected com.klg.jclass.cell.JCKeyModifier[] |
keys
|
protected boolean |
selectAll
|
protected com.klg.jclass.cell.JCCellEditorSupport |
support
|
protected JCMultilineCellEditor.JCMultilineCellEditorTextArea |
text
|
protected com.klg.jclass.cell.validate.ValidateSupport |
validateSupport
|
Fields inherited from class javax.swing.JScrollPane |
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JCMultilineCellEditor()
Default constructor. |
Method Summary | |
void |
addCellEditorListener(com.klg.jclass.cell.JCCellEditorListener l)
Adds a listener to the list that is notified when the edit starts, stops, or is canceled. |
void |
addValidateListener(com.klg.jclass.cell.validate.JCValidateListener l)
Adds a new ValidateListener to the list. |
void |
cancelCellEditing()
Called when the edit process is cancelled. |
protected boolean |
fireValidated(com.klg.jclass.cell.validate.JCValidateEvent ev)
|
void |
focusGained(FocusEvent e)
|
void |
focusLost(FocusEvent e)
|
String |
getCellEditorText()
Gets the text for the editor (as a String). |
Object |
getCellEditorValue()
Returns the object contained in the editor. |
Component |
getComponent()
Returns the edit component. |
JTextArea |
getEditor()
Returns the internal JTextArea object used for editing. |
Dimension |
getMinimumSize()
Overrides the minimumSize method to get the
minimumSize based on an abitrary row/column pair. |
Dimension |
getPreferredSize(Graphics gc,
com.klg.jclass.cell.JCCellInfo cellInfo,
Object o)
|
com.klg.jclass.cell.JCKeyModifier[] |
getReservedKeys()
This editor reserves the enter key and navigation keys. |
boolean |
getSelectAll()
Returns whether this editor will select the text on initialization. |
String |
getText()
getText() must map to JTextArea in Swing version. |
void |
initialize(AWTEvent ev,
com.klg.jclass.cell.JCCellInfo info,
Object o)
The container calls initialize() before the edit starts to
let the editor know what kind of event started the edit
(via the AWTEvent object). |
boolean |
isModified()
Returns true if the data has been modified. |
void |
keyPressed(KeyEvent e)
|
void |
keyReleased(KeyEvent e)
|
void |
keyTyped(KeyEvent e)
|
void |
processKeyEvent(KeyEvent e)
Override the key event processor. |
void |
removeCellEditorListener(com.klg.jclass.cell.JCCellEditorListener l)
Removes a listener from the list that is notified when the edit starts, stops, or is canceled. |
void |
removeValidateListener(com.klg.jclass.cell.validate.JCValidateListener l)
Removes a ValidateListener from the list. |
void |
selectAllText()
Uses hint from CellInfo to select all the text in the component. |
void |
setCellEditorText(String text)
Sets the text for the editor. |
void |
setText(String s)
setText() must map to JTextArea in Swing version. |
void |
setVisible(boolean b)
Overridden in order to show selected text. |
boolean |
stopCellEditing()
Tells the editor to stop editing and accept the current value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Object data
protected com.klg.jclass.cell.JCCellEditorSupport support
protected boolean selectAll
protected com.klg.jclass.cell.validate.ValidateSupport validateSupport
protected com.klg.jclass.cell.JCKeyModifier[] keys
protected JCMultilineCellEditor.JCMultilineCellEditorTextArea text
protected int caretPosition
protected AWTEvent initialEvent
Constructor Detail |
public JCMultilineCellEditor()
Method Detail |
public void initialize(AWTEvent ev, com.klg.jclass.cell.JCCellInfo info, Object o)
JCCellEditor
initialize()
before the edit starts to
let the editor know what kind of event started the edit
(via the AWTEvent
object).
info.getDrawingArea()
.
Implementors must handle null AWTEvent
s.
initialize
in interface JCCellEditor
ev
- event that initiated the edit operationinfo
- cell that displays information for the editoro
- item to be editedpublic Component getComponent()
getComponent
in interface JCCellEditor
public Object getCellEditorValue()
getCellEditorValue
in interface JCCellEditor
public String getCellEditorText()
getCellEditorText
in interface JCCellTextEditor
public void setCellEditorText(String text)
setCellEditorText
in interface JCCellTextEditor
text
- the new cell editor text valueprotected boolean fireValidated(com.klg.jclass.cell.validate.JCValidateEvent ev)
public boolean stopCellEditing()
stopCellEditing
in interface JCCellEditor
public boolean isModified()
true
if the data has been modified.
isModified
in interface JCCellEditor
true
if the data has been modifiedpublic void cancelCellEditing()
cancelCellEditing
in interface JCCellEditor
public void setText(String s)
setText()
must map to JTextArea
in Swing version.
s
- public String getText()
getText()
must map to JTextArea
in Swing version.
public boolean getSelectAll()
getSelectAll
in interface JCCellTextEditor
selectAll
public JTextArea getEditor()
JTextArea
object used for editing.
JTextArea
editorpublic Dimension getMinimumSize()
minimumSize
method to get the
minimumSize
based on an abitrary row/column pair.
getMinimumSize
in class JComponent
public Dimension getPreferredSize(Graphics gc, com.klg.jclass.cell.JCCellInfo cellInfo, Object o)
public com.klg.jclass.cell.JCKeyModifier[] getReservedKeys()
getReservedKeys
in interface JCCellEditor
public void addCellEditorListener(com.klg.jclass.cell.JCCellEditorListener l)
addCellEditorListener
in interface JCCellEditorEventSource
l
- public void removeCellEditorListener(com.klg.jclass.cell.JCCellEditorListener l)
removeCellEditorListener
in interface JCCellEditorEventSource
l
- public void processKeyEvent(KeyEvent e)
processKeyEvent
in interface JCCellTextEditor
processKeyEvent
in class JComponent
e
- The event to passpublic void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public void selectAllText()
CellInfo
to select all the text in the component.
public void setVisible(boolean b)
setVisible
in class JComponent
b
- public void addValidateListener(com.klg.jclass.cell.validate.JCValidateListener l)
ValidateListener
to the list.
l
- public void removeValidateListener(com.klg.jclass.cell.validate.JCValidateListener l)
ValidateListener
from the list.
l
- public void focusGained(FocusEvent e)
focusGained
in interface FocusListener
public void focusLost(FocusEvent e)
focusLost
in interface FocusListener
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |