protected class TextCellEditor.EditorDelegate
extends java.lang.Object
implements java.io.Serializable
EditorDelegate
class.Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
protected java.lang.Object |
value
The value of this cell.
|
Modifier | Constructor and Description |
---|---|
protected |
EditorDelegate() |
Modifier and Type | Method and Description |
---|---|
void |
cancelCellEditing()
Cancels editing.
|
java.lang.Object |
getCellEditorValue()
Returns the value of this cell.
|
boolean |
isCellEditable(java.util.EventObject anEvent)
Returns true if
anEvent is not a MouseEvent . |
void |
setValue(java.lang.Object value)
Sets the value of this cell.
|
boolean |
shouldSelectCell(java.util.EventObject anEvent)
Returns true to indicate that the editing cell may be selected.
|
boolean |
startCellEditing(java.util.EventObject anEvent)
Returns true to indicate that editing has begun.
|
boolean |
stopCellEditing()
Stops editing and returns true to indicate that editing has stopped.
|
private static final long serialVersionUID
protected java.lang.Object value
public java.lang.Object getCellEditorValue()
public void setValue(java.lang.Object value)
value
- the new value of this cellpublic boolean isCellEditable(java.util.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 eventTextCellEditor.setClickCountToStart(int)
,
shouldSelectCell(java.util.EventObject)
public boolean shouldSelectCell(java.util.EventObject anEvent)
anEvent
- the eventisCellEditable(java.util.EventObject)
public boolean startCellEditing(java.util.EventObject anEvent)
anEvent
- the eventpublic boolean stopCellEditing()
fireEditingStopped
.public void cancelCellEditing()
fireEditingCanceled
.