|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CellEditor
Provides edit capabilities for components that display cells like
JTable
, JList
and JTree
.
Method Summary | |
---|---|
void |
addCellEditorListener(CellEditorListener listener)
Registers a listener to receive ChangeEvent notifications from the
CellEditor . |
void |
cancelCellEditing()
Signals to the CellEditor that it should cancel editing. |
Object |
getCellEditorValue()
Returns the current value for the CellEditor . |
boolean |
isCellEditable(EventObject event)
Returns true if the specified event makes the editor
editable, and false otherwise. |
void |
removeCellEditorListener(CellEditorListener listener)
Deregisters a listener so that it no longer receives ChangeEvent
notifications from the CellEditor . |
boolean |
shouldSelectCell(EventObject event)
shouldSelectCell |
boolean |
stopCellEditing()
Signals to the CellEditor that it should stop editing,
accepting the current cell value, and returns true if the
editor actually stops editing, and false otherwise. |
Method Detail |
---|
Object getCellEditorValue()
CellEditor
.
boolean isCellEditable(EventObject event)
true
if the specified event makes the editor
editable, and false
otherwise.
event
- the event.
boolean shouldSelectCell(EventObject event)
event
- TODO
boolean stopCellEditing()
CellEditor
that it should stop editing,
accepting the current cell value, and returns true
if the
editor actually stops editing, and false
otherwise.
void cancelCellEditing()
CellEditor
that it should cancel editing.
void addCellEditorListener(CellEditorListener listener)
ChangeEvent
notifications from the
CellEditor
.
listener
- the listener.void removeCellEditorListener(CellEditorListener listener)
ChangeEvent
notifications from the CellEditor
.
listener
- the listener.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |