All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.DefaultCellEditor

java.lang.Object
   |
   +----com.sun.java.swing.DefaultCellEditor

public class DefaultCellEditor
extends Object
implements TableCellEditor, TreeCellEditor

Variable Index

 o clickCountToStart
 o delegate
 o editorComponent
 o listenerList
Event listeners

Constructor Index

 o DefaultCellEditor(JCheckBox)
 o DefaultCellEditor(JTextField)

Method Index

 o addCellEditorListener(CellEditorListener)
 o cancelCellEditing()
 o configureTableCellEditor(JTable, Object, boolean, Object, int)
 o configureTreeCellEditor(JTree, Object, boolean, boolean, boolean, int)
 o getCellEditorComponent()
 o getCellEditorValue()
 o getClickCountToStart()
clickCountToStart controls the number of clicks required to start editing if the event passed to isCellEditable() or startCellEditing() is a MouseEvent.
 o isCellEditable(EventObject)
 o removeCellEditorListener(CellEditorListener)
 o setClickCountToStart(int)
 o startCellEditing(EventObject)
 o stopCellEditing()

Variables

 o listenerList
 protected CellEditorListener listenerList
Event listeners

 o editorComponent
 protected JComponent editorComponent
 o delegate
 protected DefaultCellEditor. EditorDelegate delegate
 o clickCountToStart
 protected int clickCountToStart

Constructors

 o DefaultCellEditor
 public DefaultCellEditor(JTextField x)
 o DefaultCellEditor
 public DefaultCellEditor(JCheckBox x)

Methods

 o setClickCountToStart
 public void setClickCountToStart(int count)
 o getClickCountToStart
 public int getClickCountToStart()
clickCountToStart controls the number of clicks required to start editing if the event passed to isCellEditable() or startCellEditing() is a MouseEvent. For example, by default the clickCountToStart for a JTextField is set to 2, so in a JTable the user will need to double click to begin editing a cell.

 o getCellEditorComponent
 public Component getCellEditorComponent()
 o getCellEditorValue
 public Object getCellEditorValue()
 o isCellEditable
 public boolean isCellEditable(EventObject anEvent)
 o startCellEditing
 public boolean startCellEditing(EventObject anEvent)
 o stopCellEditing
 public boolean stopCellEditing()
 o cancelCellEditing
 public void cancelCellEditing()
 o addCellEditorListener
 public void addCellEditorListener(CellEditorListener l)
 o removeCellEditorListener
 public void removeCellEditorListener(CellEditorListener l)
 o configureTreeCellEditor
 public void configureTreeCellEditor(JTree tree,
                                     Object value,
                                     boolean isSelected,
                                     boolean expanded,
                                     boolean leaf,
                                     int row)
 o configureTableCellEditor
 public void configureTableCellEditor(JTable table,
                                      Object value,
                                      boolean isSelected,
                                      Object columnID,
                                      int rowIndex)

All Packages  Class Hierarchy  This Package  Previous  Next  Index