|
WebObjects 5.4.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webobjects.eointerface.swing.EOColumnEditor
com.webobjects.eointerface.swing.EOTextColumnEditor
public class EOTextColumnEditor
EOTextColumnEditor is an concrete subclass of EOColumnEditor that handles text cell editing for javax.swing.JTables
.
EOColumnEditor
Constructor Summary | |
---|---|
EOTextColumnEditor()
Constructs a new EOTextColumnEditor. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent event)
Invoked when the user leaves the edited text cell. |
protected void |
beginEditing()
Prepares the editor component for use in a table, by adding the appropriate listeners and setting the right fonts. |
void |
changedUpdate(DocumentEvent event)
Conformance to DocumentListener API. |
protected Component |
createEditorComponent()
Returns a new editor component, a javax.swing.JTextField with a black javax.swing.border.LineBorder . |
protected void |
endEditing()
Cleans out resources after editing has finished, for example removes listeners from the editor component. |
void |
focusGained(FocusEvent event)
Invoked when the edited text cell gains focus. |
void |
focusLost(FocusEvent event)
Invoked when the edited text cell looses focus. |
Object |
getCellEditorValue()
Returns the value of the text field editor component (the text displayed in the editor cell). |
void |
insertUpdate(DocumentEvent event)
Conformance to DocumentListener API. |
boolean |
isCellEditable(EventObject event)
Returns whether the event event can start editing in the editor component. |
void |
removeUpdate(DocumentEvent event)
Conforming to DocumentListener API. |
void |
setCellEditorValue(Object value)
Sets the value of the text field editor component (the text displayed in the editor cell). |
Methods inherited from class com.webobjects.eointerface.swing.EOColumnEditor |
---|
addCellEditorListener, cancelCellEditing, editingTableColumnAssociation, editorComponent, fireEditingCanceled, fireEditingStopped, getTableCellEditorComponent, removeCellEditorListener, setEditorComponent, shouldSelectCell, stopCellEditing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EOTextColumnEditor()
Method Detail |
---|
public void actionPerformed(ActionEvent event)
EOColumnEditor.stopCellEditing
.
actionPerformed
in interface ActionListener
event
- the user event triggering this method invocation.EOColumnEditor.stopCellEditing()
public void focusGained(FocusEvent event)
focusGained
in interface FocusListener
event
- the focus event triggering this method invocationpublic void focusLost(FocusEvent event)
EOColumnEditor.stopCellEditing
.
focusLost
in interface FocusListener
event
- the focus event triggering this method invocationEOColumnEditor.stopCellEditing()
public void changedUpdate(DocumentEvent event)
changedUpdate
in interface DocumentListener
event
- the DocumentEvent received from the AWT event dispatcherpublic void insertUpdate(DocumentEvent event)
insertUpdate
in interface DocumentListener
event
- the DocumentEvent received from the AWT event dispatcherpublic void removeUpdate(DocumentEvent event)
removeUpdate
in interface DocumentListener
event
- the DocumentEvent received from the AWT event dispatcherprotected Component createEditorComponent()
javax.swing.JTextField
with a black javax.swing.border.LineBorder
.
createEditorComponent
in class EOColumnEditor
public void setCellEditorValue(Object value)
setCellEditorValue
in class EOColumnEditor
value
- the editor valueEOColumnEditor.getTableCellEditorComponent(javax.swing.JTable, java.lang.Object, boolean, int, int)
public Object getCellEditorValue()
getCellEditorValue
in interface CellEditor
getCellEditorValue
in class EOColumnEditor
public boolean isCellEditable(EventObject event)
event
can start editing in the editor component.
For EOTextColumnEditors, editing can start if event
is not a mouse event or if the click count is less than 2.
isCellEditable
in interface CellEditor
isCellEditable
in class EOColumnEditor
event
- the event to be used by the editor to consider whether editing can start or not
true
if editing can be startedprotected void beginEditing()
beginEditing
in class EOColumnEditor
EOColumnEditor.shouldSelectCell(java.util.EventObject)
,
EOColumnEditor.getTableCellEditorComponent(javax.swing.JTable, java.lang.Object, boolean, int, int)
protected void endEditing()
endEditing
in class EOColumnEditor
EOColumnEditor.cancelCellEditing()
,
EOColumnEditor.stopCellEditing()
|
Last updated June 2008 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |