protected class javax.swing
DefaultCellEditor.EditorDelegate


Hide details Login
Java SE 6
  
Implements: ActionListener, ItemListener, Serializable
Contained within: DefaultCellEditor

The protected EditorDelegate class.

Fields
protected Object value
The value of this cell.

Constructors
protected DefaultCellEditor.EditorDelegate()

Methods
public void actionPerformed(ActionEvent e)
When an action is performed, editing is ended.
ethe action event
See also stopCellEditing
public void cancelCellEditing()
Cancels editing. This method calls fireEditingCanceled.
public void itemStateChanged(ItemEvent e)
When an item's state changes, editing is ended.
ethe action event
See also stopCellEditing
public boolean shouldSelectCell(EventObject anEvent)
Returns true to indicate that the editing cell may be selected.
anEventthe event
returntrue
See also isCellEditable
public boolean startCellEditing(EventObject anEvent)
Returns true to indicate that editing has begun.
anEventthe event
public boolean stopCellEditing()
Stops editing and returns true to indicate that editing has stopped. This method calls fireEditingStopped.
returntrue

Properties
public boolean isCellEditable(EventObject anEvent)
Returns true if anEvent is not a MouseEvent. Otherwise, it returns true if the necessary number of clicks have occurred, and returns false otherwise.
anEventthe event
returntrue if cell is ready for editing, false otherwise
See also setClickCountToStart, shouldSelectCell
public Object getCellEditorValue()
Returns the value of this cell.
returnthe value of this cell
public void setValue(Object value)
Sets the value of this cell.
valuethe new value of this cell