|
Préférences
Moteurs de recherche
|
||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
javax.swing
|
Method Summary | |
---|---|
void |
addCellEditorListener(CellEditorListener l)
Adds a listener to the list that's notified when the editor stops, or cancels editing. |
void |
cancelCellEditing()
Tells the editor to cancel editing and not accept any partially edited value. |
Object |
getCellEditorValue()
Returns the value contained in the editor. |
boolean |
isCellEditable(EventObject anEvent)
Asks the editor if it can start editing using anEvent . |
void |
removeCellEditorListener(CellEditorListener l)
Removes a listener from the list that's notified |
boolean |
shouldSelectCell(EventObject anEvent)
Returns true if the editing cell should be selected, false otherwise. |
boolean |
stopCellEditing()
Tells the editor to stop editing and accept any partially edited value as the value of the editor. |
Method Detail |
---|
Object getCellEditorValue()
boolean isCellEditable(EventObject anEvent)
anEvent
.
anEvent
is in the invoking component coordinate system.
The editor can not assume the Component returned by
getCellEditorComponent
is installed. This method
is intended for the use of client to avoid the cost of setting up
and installing the editor component if editing is not possible.
If editing can be started this method returns true.
anEvent
- the event the editor should use to consider
whether to begin editing or not
shouldSelectCell(java.util.EventObject)
boolean shouldSelectCell(EventObject anEvent)
anEvent
- the event the editor should use to start
editing
isCellEditable(java.util.EventObject)
boolean stopCellEditing()
void cancelCellEditing()
void addCellEditorListener(CellEditorListener l)
l
- the CellEditorListenervoid removeCellEditorListener(CellEditorListener l)
l
- the CellEditorListener