Class DefaultCellEditor.EditorDelegate
java.lang.Object
javax.swing.DefaultCellEditor.EditorDelegate
- All Implemented Interfaces:
ActionListener, ItemListener, Serializable, EventListener
- Enclosing class:
DefaultCellEditor
protected class DefaultCellEditor.EditorDelegate
extends Object
implements ActionListener, ItemListener, Serializable
The protected
EditorDelegate class.- Since:
- 1.2
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidWhen an action is performed, editing is ended.voidCancels editing.Returns the value of this cell.booleanisCellEditable(EventObject anEvent) Returns true ifanEventis not aMouseEvent.voidWhen an item's state changes, editing is ended.voidSets the value of this cell.booleanshouldSelectCell(EventObject anEvent) Returns true to indicate that the editing cell may be selected.booleanstartCellEditing(EventObject anEvent) Returns true to indicate that editing has begun.booleanStops editing and returns true to indicate that editing has stopped.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.booleanCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.inthashCode()Answers an integer hash code for the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.toString()Answers a string containing a concise, human-readable description of the receiver.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
Field Details
-
value
The value of this cell.
-
-
Constructor Details
-
EditorDelegate
protected EditorDelegate()Constructs anEditorDelegate.
-
-
Method Details
-
getCellEditorValue
-
setValue
Sets the value of this cell.- Parameters:
value- the new value of this cell
-
isCellEditable
Returns true ifanEventis not aMouseEvent. Otherwise, it returns true if the necessary number of clicks have occurred, and returns false otherwise.- Parameters:
anEvent- the event- Returns:
- true if cell is ready for editing, false otherwise
- See Also:
-
shouldSelectCell
Returns true to indicate that the editing cell may be selected.- Parameters:
anEvent- the event- Returns:
- true
- See Also:
-
startCellEditing
Returns true to indicate that editing has begun.- Parameters:
anEvent- the event- Returns:
- true to indicate editing has begun
-
stopCellEditing
public boolean stopCellEditing()Stops editing and returns true to indicate that editing has stopped. This method callsfireEditingStopped.- Returns:
- true
-
cancelCellEditing
public void cancelCellEditing()Cancels editing. This method callsfireEditingCanceled. -
actionPerformed
When an action is performed, editing is ended.- Specified by:
actionPerformedin interfaceActionListener- Parameters:
e- the action event- See Also:
-
itemStateChanged
When an item's state changes, editing is ended.- Specified by:
itemStateChangedin interfaceItemListener- Parameters:
e- the action event- See Also:
-