protected class DefaultCellEditor.EditorDelegate extends Objectimplements ActionListener , ItemListener , Serializable
EditorDelegate class.
| Modifier and Type | Field and Description |
|---|---|
protected Object |
value
The value of this cell.
|
| Modifier | Constructor and Description |
|---|---|
protected |
EditorDelegate()
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent
When an action is performed, editing is ended.
|
void |
cancelCellEditing()
Cancels editing.
|
Object |
getCellEditorValue()
Returns the value of this cell.
|
boolean |
isCellEditable(EventObject
Returns true if
anEvent is
not a
MouseEvent.
|
void |
itemStateChanged(ItemEvent
When an item's state changes, editing is ended.
|
void |
setValue(Object
Sets the value of this cell.
|
boolean |
shouldSelectCell(EventObject
Returns true to indicate that the editing cell may be selected.
|
boolean |
startCellEditing(EventObject
Returns true to indicate that editing has begun.
|
boolean |
stopCellEditing()
Stops editing and returns true to indicate that editing has stopped.
|
protected Objectvalue
public ObjectgetCellEditorValue()
public void setValue(Objectvalue)
value - the new value of this cell
public boolean isCellEditable(EventObjectanEvent)
anEvent is
not a
MouseEvent. Otherwise, it returns true if the necessary number of clicks have occurred, and returns false otherwise.
anEvent - the event
DefaultCellEditor.setClickCountToStart(int) ,
shouldSelectCell(java.util.EventObject)
public boolean shouldSelectCell(EventObjectanEvent)
anEvent - the event
isCellEditable(java.util.EventObject)
public boolean startCellEditing(EventObjectanEvent)
anEvent - the event
public boolean stopCellEditing()
fireEditingStopped.
public void cancelCellEditing()
fireEditingCanceled.
public void actionPerformed(ActionEvente)
actionPerformed in interface
ActionListener
e - the action event
stopCellEditing()
public void itemStateChanged(ItemEvente)
itemStateChanged in interface
ItemListener
e - the action event
stopCellEditing()