All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.JCellEditor

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

public class JCellEditor
extends Object
implements TableCellEditor, TreeCellEditor

Variable Index

 o clickCountToStart
 o delegate
 o editorComponent
 o listenerList
Event listeners

Constructor Index

 o JCellEditor(JCheckbox)
 o JCellEditor(JTextField)

Method Index

 o addEditorListener(CellEditorListener)
 o cancelEditing()
 o canEdit(EventObject)
 o configureTableCellEditor(Object, boolean, Object, int)
 o configureTreeCellEditor(Object, boolean, boolean, boolean)
 o getCellEditorComponent()
 o getClickCountToStart()
clickCountToStart controls the number of clicks required to start editing if the event passed to canEdit() or startEditing() is a MouseEvent.
 o getValue()
 o removeEditorListener(CellEditorListener)
 o setClickCountToStart(int)
 o startEditing(EventObject)
 o stopEditing()

Variables

 o listenerList
 protected CellEditorListener listenerList
Event listeners

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

Constructors

 o JCellEditor
 public JCellEditor(JTextField x)
 o JCellEditor
 public JCellEditor(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 canEdit() or startEditing() 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 getValue
 public Object getValue()
 o canEdit
 public boolean canEdit(EventObject anEvent)
 o startEditing
 public boolean startEditing(EventObject anEvent)
 o stopEditing
 public boolean stopEditing()
 o cancelEditing
 public void cancelEditing()
 o addEditorListener
 public void addEditorListener(CellEditorListener l)
 o removeEditorListener
 public void removeEditorListener(CellEditorListener l)
 o configureTreeCellEditor
 public void configureTreeCellEditor(Object value,
                                     boolean isSelected,
                                     boolean expanded,
                                     boolean leaf)
 o configureTableCellEditor
 public void configureTableCellEditor(Object value,
                                      boolean isSelected,
                                      Object columnID,
                                      int rowIndex)

All Packages  Class Hierarchy  This Package  Previous  Next  Index