protected class TextAreaTableCellEditor.EditorDelegate extends Object implements FocusListener, Serializable
EditorDelegate
class.Modifier and Type | Field and Description |
---|---|
protected Object |
value
The value of this cell.
|
Modifier | Constructor and Description |
---|---|
protected |
TextAreaTableCellEditor.EditorDelegate() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
When an action is performed, editing is ended.
|
void |
cancelCellEditing()
Cancels editing.
|
void |
focusGained(FocusEvent ev) |
void |
focusLost(FocusEvent ev) |
Object |
getCellEditorValue()
Returns the value of this cell.
|
boolean |
isCellEditable(EventObject anEvent)
Returns true if
anEvent is not a
MouseEvent . |
void |
itemStateChanged(ItemEvent e)
When an item's state changes, editing is ended.
|
void |
setValue(Object value)
Sets the value of this cell.
|
boolean |
shouldSelectCell(EventObject anEvent)
Returns true to indicate that the editing cell may be selected.
|
boolean |
startCellEditing(EventObject anEvent)
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 TextAreaTableCellEditor.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 eventTextAreaTableCellEditor.setClickCountToStart(int)
,
shouldSelectCell(java.util.EventObject)
public boolean shouldSelectCell(EventObject anEvent)
anEvent
- the eventisCellEditable(java.util.EventObject)
public boolean startCellEditing(EventObject anEvent)
anEvent
- the eventtrue
public boolean stopCellEditing()
fireEditingStopped
.public void cancelCellEditing()
fireEditingCanceled
.public void actionPerformed(ActionEvent e)
e
- the action eventstopCellEditing()
public void itemStateChanged(ItemEvent e)
e
- the action eventstopCellEditing()
public void focusLost(FocusEvent ev)
focusLost
in interface FocusListener
public void focusGained(FocusEvent ev)
focusGained
in interface FocusListener
Copyright © 1998-2016 Apache Software Foundation. All Rights Reserved.