protected class TextAreaTableCellEditor.EditorDelegate
extends java.lang.Object
implements java.awt.event.FocusListener, java.io.Serializable
EditorDelegate
class.Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
value
The value of this cell.
|
Modifier | Constructor and Description |
---|---|
protected |
EditorDelegate() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
When an action is performed, editing is ended.
|
void |
cancelCellEditing()
Cancels editing.
|
void |
focusGained(java.awt.event.FocusEvent ev) |
void |
focusLost(java.awt.event.FocusEvent ev) |
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 |
itemStateChanged(java.awt.event.ItemEvent e)
When an item's state changes, editing is ended.
|
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.
|
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 eventTextAreaTableCellEditor.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 eventtrue
public boolean stopCellEditing()
fireEditingStopped
.public void cancelCellEditing()
fireEditingCanceled
.public void actionPerformed(java.awt.event.ActionEvent e)
e
- the action eventstopCellEditing()
public void itemStateChanged(java.awt.event.ItemEvent e)
e
- the action eventstopCellEditing()
public void focusLost(java.awt.event.FocusEvent ev)
focusLost
in interface java.awt.event.FocusListener
public void focusGained(java.awt.event.FocusEvent ev)
focusGained
in interface java.awt.event.FocusListener
Copyright © 1998-2019 Apache Software Foundation. All Rights Reserved.