javax.swing
protected class DefaultCellEditor.EditorDelegate extends Object implements ActionListener, ItemListener, Serializable
Field Summary | |
---|---|
protected Object | value
The object value (updated when getting and setting the value). |
Constructor Summary | |
---|---|
protected | EditorDelegate()
Constructor EditorDelegate |
Method Summary | |
---|---|
void | actionPerformed(ActionEvent event)
This event is fired by the editor component (for instance, by pressing
ENTER in the {@link 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 {@link 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 {@link #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. |
Parameters: event unused in default method
Returns: value the value of the component (String, Boolean or Number).
Parameters: event the event to check
Returns: true if the passed event is the mouse event and false otherwise.
Parameters: event unused in default method
Parameters: aValue the value to set (String, Boolean or Number).
Parameters: event unused in default method
Returns: true always
Parameters: event the event.
Returns: true, always
Returns: boolean