API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. DefaultCellEditor View Source
Author(s)
Alan Chung
Philip Milne
Since
Version
1.52 11/17/05
Serial
Hierarchy
 Object
      AbstractCellEditor
          DefaultCellEditor
Implements
 TableCellEditor
 TreeCellEditor
Subclasses
Description
public class DefaultCellEditor
  The default editor for table and tree cells.
See also:   
Constructors
public DefaultCellEditor (JCheckBox checkBox)
  Constructs a DefaultCellEditor object that uses a check box.
public DefaultCellEditor (JComboBox comboBox)
  Constructs a DefaultCellEditor object that uses a combo box.
public DefaultCellEditor (JTextField textField)
  Constructs a DefaultCellEditor that uses a text field.
Methods
Hide/Show inherited methods
public void addCellEditorListener (CellEditorListener l) [Inherited From AbstractCellEditor]
  Adds a CellEditorListener to the listener list.
public void cancelCellEditing () [Overrides AbstractCellEditor]
  Forwards the message from the CellEditor to the delegate.
protected void fireEditingCanceled () [Inherited From AbstractCellEditor]
  Notifies all listeners that have registered interest for notification on this event type.
protected void fireEditingStopped () [Inherited From AbstractCellEditor]
  Notifies all listeners that have registered interest for notification on this event type.
public CellEditorListener getCellEditorListeners () [Inherited From AbstractCellEditor]
  Returns an array of all the CellEditorListeners added to this AbstractCellEditor with addCellEditorListener().
public Object getCellEditorValue ()
  Forwards the message from the CellEditor to the delegate.
public int getClickCountToStart ()
  Returns the number of clicks needed to start editing.
public Component getComponent ()
  Returns a reference to the editor component.
public Component getTableCellEditorComponent (JTable table, Object value, boolean isSelected, int row, int column) [Specified in TableCellEditor]
Implements the TableCellEditor interface.
public Component getTreeCellEditorComponent (JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) [Specified in TreeCellEditor]
Implements the TreeCellEditor interface.
public boolean isCellEditable (EventObject anEvent) [Overrides AbstractCellEditor]
  Forwards the message from the CellEditor to the delegate.
public void removeCellEditorListener (CellEditorListener l) [Inherited From AbstractCellEditor]
  Removes a CellEditorListener from the listener list.
public void setClickCountToStart (int count)
  Specifies the number of clicks needed to start editing.
public boolean shouldSelectCell (EventObject anEvent) [Overrides AbstractCellEditor]
  Forwards the message from the CellEditor to the delegate.
public boolean stopCellEditing () [Overrides AbstractCellEditor]
  Forwards the message from the CellEditor to the delegate.
Fields
Hide/Show inherited fields
protectedtransient ChangeEvent changeEvent [Inherited From AbstractCellEditor]
protected int clickCountToStart
  An integer specifying the number of clicks needed to start editing.
protected EditorDelegate delegate
The delegate class which handles all methods sent from the CellEditor.
protected JComponent editorComponent
The Swing component being edited.
protected EventListenerList listenerList [Inherited From AbstractCellEditor]
Nested Classes
  DefaultCellEditor.EditorDelegate
The protected EditorDelegate class.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar