|
WebObjects 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.webobjects.eointerface.swing.EOColumnEditor
|
+--com.webobjects.eointerface.swing.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 ActionListenerevent - the user event triggering this method invocation.EOColumnEditor.stopCellEditing()protected void beginEditing()
beginEditing in class EOColumnEditorcom.webobjects.eointerface.swing.EOColumnEditorEOColumnEditor.shouldSelectCell(java.util.EventObject),
EOColumnEditor.getTableCellEditorComponent(javax.swing.JTable, java.lang.Object, boolean, int, int)public void changedUpdate(DocumentEvent event)
changedUpdate in interface DocumentListenerevent - the DocumentEvent received from the AWT event dispatcherprotected Component createEditorComponent()
javax.swing.JTextField with a black javax.swing.border.LineBorder.createEditorComponent in class EOColumnEditorprotected void endEditing()
endEditing in class EOColumnEditorcom.webobjects.eointerface.swing.EOColumnEditorEOColumnEditor.cancelCellEditing(),
EOColumnEditor.stopCellEditing()public void focusGained(FocusEvent event)
focusGained in interface FocusListenerevent - the focus event triggering this method invocationpublic void focusLost(FocusEvent event)
EOColumnEditor.stopCellEditing.focusLost in interface FocusListenerevent - the focus event triggering this method invocationEOColumnEditor.stopCellEditing()public Object getCellEditorValue()
getCellEditorValue in class EOColumnEditorpublic void insertUpdate(DocumentEvent event)
insertUpdate in interface DocumentListenerevent - the DocumentEvent received from the AWT event dispatcherpublic 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 class EOColumnEditorevent - the event to be used by the editor to consider whether editing can start or nottrue if editing can be startedpublic void removeUpdate(DocumentEvent event)
removeUpdate in interface DocumentListenerevent - the DocumentEvent received from the AWT event dispatcherpublic void setCellEditorValue(Object value)
setCellEditorValue in class EOColumnEditorvalue - the editor value
|
Last updated Thu Jan 10 18:10:21 PST 2002. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||