protected class DefaultCellEditor.EditorDelegate extends java.lang.Object implements java.awt.event.ActionListener, java.awt.event.ItemListener, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.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(java.awt.event.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.
|
java.lang.Object |
getCellEditorValue()
Get the value for the editor component.
|
boolean |
isCellEditable(java.util.EventObject event)
The default method returns true for the
MouseEvent and false
for any other events. |
void |
itemStateChanged(java.awt.event.ItemEvent event)
This event is fired by the editor component.The default method delegates
call to the
stopCellEditing(), finishing the editing session. |
void |
setValue(java.lang.Object aValue)
Set the value for the editor component.
|
boolean |
shouldSelectCell(java.util.EventObject event)
Returns true to indicate that the editing cell can be selected.
|
boolean |
startCellEditing(java.util.EventObject event)
Start editing session and returns true to indicate the editing has begun.
|
boolean |
stopCellEditing()
Finish the cell editing session.
|
protected java.lang.Object value
protected DefaultCellEditor.EditorDelegate()
public void setValue(java.lang.Object aValue)
aValue - the value to set (String, Boolean or Number).public java.lang.Object getCellEditorValue()
public boolean isCellEditable(java.util.EventObject event)
MouseEvent and false
for any other events.event - the event to checkpublic boolean shouldSelectCell(java.util.EventObject event)
event - unused in default methodpublic boolean stopCellEditing()
public void cancelCellEditing()
public boolean startCellEditing(java.util.EventObject event)
event - the event.public void actionPerformed(java.awt.event.ActionEvent event)
JTextField. The default method delegates call to
the stopCellEditing(), finishing the editing session.actionPerformed in interface java.awt.event.ActionListenerevent - unused in default methodpublic void itemStateChanged(java.awt.event.ItemEvent event)
stopCellEditing(), finishing the editing session.itemStateChanged in interface java.awt.event.ItemListenerevent - unused in default method