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, Serializable
-
changeEvent
-
-
clickCountToStart
-
-
delegate
-
-
editorComponent
-
-
listenerList
- Event listeners
-
DefaultCellEditor(JCheckBox)
-
-
DefaultCellEditor(JComboBox)
-
-
DefaultCellEditor(JTextField)
-
-
addCellEditorListener(CellEditorListener)
-
-
cancelCellEditing()
-
-
fireEditingCanceled()
-
-
fireEditingStopped()
-
-
getCellEditorValue()
-
-
getClickCountToStart()
- clickCountToStart controls the number of clicks required to start
editing if the event passed to isCellEditable() or startCellEditing() is
a MouseEvent.
-
getTableCellEditorComponent(JTable, Object, boolean, Object, int)
-
-
getTreeCellEditorComponent(JTree, Object, boolean, boolean, boolean, int)
-
-
isCellEditable(EventObject)
-
-
removeCellEditorListener(CellEditorListener)
-
-
setClickCountToStart(int)
-
-
shouldSelectCell(EventObject)
-
-
stopCellEditing()
-
listenerList
protected EventListenerList listenerList
- Event listeners
changeEvent
protected transient ChangeEvent changeEvent
editorComponent
protected JComponent editorComponent
delegate
protected DefaultCellEditor. EditorDelegate delegate
clickCountToStart
protected int clickCountToStart
DefaultCellEditor
public DefaultCellEditor(JTextField x)
DefaultCellEditor
public DefaultCellEditor(JCheckBox x)
DefaultCellEditor
public DefaultCellEditor(JComboBox x)
setClickCountToStart
public void setClickCountToStart(int count)
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.
getCellEditorValue
public Object getCellEditorValue()
isCellEditable
public boolean isCellEditable(EventObject anEvent)
shouldSelectCell
public boolean shouldSelectCell(EventObject anEvent)
stopCellEditing
public boolean stopCellEditing()
cancelCellEditing
public void cancelCellEditing()
addCellEditorListener
public void addCellEditorListener(CellEditorListener l)
removeCellEditorListener
public void removeCellEditorListener(CellEditorListener l)
fireEditingStopped
protected void fireEditingStopped()
fireEditingCanceled
protected void fireEditingCanceled()
getTreeCellEditorComponent
public Component getTreeCellEditorComponent(JTree tree,
Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
Object columnID,
int rowIndex)
All Packages Class Hierarchy This Package Previous Next Index