Class com.sun.java.swing.DefaultCellEditor
java.lang.Object
|
+--com.sun.java.swing.DefaultCellEditor
- public class DefaultCellEditor
- extends Object
- implements TableCellEditor, TreeCellEditor, Serializable
The default editor for table and tree cells.
Warning: serialized objects of this class will not be compatible with
future swing releases. The current serialization support is appropriate
for short term storage or RMI between Swing1.0 applications. It will
not be possible to load serialized Swing1.0 objects with future releases
of Swing. The JDK1.2 release of Swing will be the compatibility
baseline for the serialized form of Swing objects.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone
, equals
, finalize
, getClass
, hashCode
, notify
, notifyAll
, toString
, wait
, wait
, wait
|
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)
getComponent
public Component getComponent()
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)
- Specified by:
- getTreeCellEditorComponent in interface TreeCellEditor
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
- Specified by:
- getTableCellEditorComponent in interface TableCellEditor
Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.