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