protected class DefaultCellEditor.EditorDelegate extends Object implements ActionListener, ItemListener, Serializable
Modifier and Type | Field and Description |
---|---|
protected Object |
value
The object value (updated when getting and setting the value).
|
Modifier | Constructor and Description |
---|---|
protected |
DefaultCellEditor.EditorDelegate()
Constructor EditorDelegate
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent event)
This event is fired by the editor component (for instance, by pressing
ENTER in the
JTextField . |
void |
cancelCellEditing()
Cancel the cell editing session.
|
Object |
getCellEditorValue()
Get the value for the editor component.
|
boolean |
isCellEditable(EventObject event)
The default method returns true for the
MouseEvent and false
for any other events. |
void |
itemStateChanged(ItemEvent event)
This event is fired by the editor component.The default method delegates
call to the
stopCellEditing() , finishing the editing session. |
void |
setValue(Object aValue)
Set the value for the editor component.
|
boolean |
shouldSelectCell(EventObject event)
Returns true to indicate that the editing cell can be selected.
|
boolean |
startCellEditing(EventObject event)
Start editing session and returns true to indicate the editing has begun.
|
boolean |
stopCellEditing()
Finish the cell editing session.
|
protected DefaultCellEditor.EditorDelegate()
public void setValue(Object aValue)
aValue
- the value to set (String, Boolean or Number).public Object getCellEditorValue()
public boolean isCellEditable(EventObject event)
MouseEvent
and false
for any other events.event
- the event to checkpublic boolean shouldSelectCell(EventObject event)
event
- unused in default methodpublic boolean stopCellEditing()
public void cancelCellEditing()
public boolean startCellEditing(EventObject event)
event
- the event.public void actionPerformed(ActionEvent event)
JTextField
. The default method delegates call to
the stopCellEditing()
, finishing the editing session.actionPerformed
in interface ActionListener
event
- unused in default methodpublic void itemStateChanged(ItemEvent event)
stopCellEditing()
, finishing the editing session.itemStateChanged
in interface ItemListener
event
- unused in default method