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
-
clickCountToStart
-
-
delegate
-
-
editorComponent
-
-
listenerList
- Event listeners
-
JCellEditor(JCheckbox)
-
-
JCellEditor(JTextField)
-
-
addEditorListener(CellEditorListener)
-
-
cancelEditing()
-
-
canEdit(EventObject)
-
-
configureTableCellEditor(Object, boolean, Object, int)
-
-
configureTreeCellEditor(Object, boolean, boolean, boolean)
-
-
getCellEditorComponent()
-
-
getClickCountToStart()
- clickCountToStart controls the number of clicks required to start
editing if the event passed to canEdit() or startEditing() is
a MouseEvent.
-
getValue()
-
-
removeEditorListener(CellEditorListener)
-
-
setClickCountToStart(int)
-
-
startEditing(EventObject)
-
-
stopEditing()
-
listenerList
protected CellEditorListener listenerList
- Event listeners
editorComponent
protected JComponent editorComponent
delegate
protected JCellEditor. EditorDelegate delegate
clickCountToStart
protected int clickCountToStart
JCellEditor
public JCellEditor(JTextField x)
JCellEditor
public JCellEditor(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 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.
getCellEditorComponent
public Component getCellEditorComponent()
getValue
public Object getValue()
canEdit
public boolean canEdit(EventObject anEvent)
startEditing
public boolean startEditing(EventObject anEvent)
stopEditing
public boolean stopEditing()
cancelEditing
public void cancelEditing()
addEditorListener
public void addEditorListener(CellEditorListener l)
removeEditorListener
public void removeEditorListener(CellEditorListener l)
configureTreeCellEditor
public void configureTreeCellEditor(Object value,
boolean isSelected,
boolean expanded,
boolean leaf)
configureTableCellEditor
public void configureTableCellEditor(Object value,
boolean isSelected,
Object columnID,
int rowIndex)
All Packages Class Hierarchy This Package Previous Next Index