ActionListener
, ItemListener
, Serializable
, EventListener
DefaultCellEditor
protected class DefaultCellEditor.EditorDelegate extends Object implements ActionListener, ItemListener, Serializable
EditorDelegate
class.Modifier and Type | Field | Description |
---|---|---|
protected Object |
value |
The value of this cell. |
Modifier | Constructor | Description |
---|---|---|
protected |
Constructs an EditorDelegate . |
Modifier and Type | Method | Description |
---|---|---|
void |
actionPerformed |
When an action is performed, editing is ended. |
void |
cancelCellEditing() |
Cancels editing. |
Object |
getCellEditorValue() |
Returns the value of this cell. |
boolean |
isCellEditable |
Returns true if anEvent is not a MouseEvent . |
void |
itemStateChanged |
When an item's state changes, editing is ended. |
void |
setValue |
Sets the value of this cell. |
boolean |
shouldSelectCell |
Returns true to indicate that the editing cell may be selected. |
boolean |
startCellEditing |
Returns true to indicate that editing has begun. |
boolean |
stopCellEditing() |
Stops editing and returns true to indicate that editing has stopped. |
protected Object value
protected EditorDelegate()
EditorDelegate
.public Object getCellEditorValue()
public void setValue(Object value)
value
- the new value of this cellpublic boolean isCellEditable(EventObject anEvent)
anEvent
is not a MouseEvent
. Otherwise, it returns true if the necessary number of clicks have occurred, and returns false otherwise.anEvent
- the eventpublic boolean shouldSelectCell(EventObject anEvent)
anEvent
- the eventpublic boolean startCellEditing(EventObject anEvent)
anEvent
- the eventpublic boolean stopCellEditing()
fireEditingStopped
.public void cancelCellEditing()
fireEditingCanceled
.public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- the action eventpublic void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
e
- the action event
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/DefaultCellEditor.EditorDelegate.html