| public class javax.swing DefaultCellEditor
|
Java SE 6 |
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 applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans package.
Please see java.beans.XMLEncoder.
| version | 1.52 11/17/05 |
| Fields | |
|---|---|
| protected JComponent | editorComponent The Swing component being edited. |
| protected DefaultCellEditor.EditorDelegate | delegate The delegate class which handles all methods sent from the CellEditor.
|
| protected int | clickCountToStart An integer specifying the number of clicks needed to start editing. Even if clickCountToStart is defined as zero, it
will not initiate until a click occurs.
|
| Constructors | |||
|---|---|---|---|
| public | DefaultCellEditor(JTextField textField) Details
Constructs a DefaultCellEditor that uses a text field.
| ||
| public | DefaultCellEditor(JCheckBox checkBox) Details
Constructs a DefaultCellEditor object that uses a check box.
| ||
| public | DefaultCellEditor(JComboBox comboBox) Details
Constructs a DefaultCellEditor object that uses a
combo box.
| ||
| Methods | |
|---|---|
| public void | cancelCellEditing() Details
|
| public boolean | shouldSelectCell(EventObject anEvent) Details
|
| public boolean | stopCellEditing() Details
|
| Properties | |||||
|---|---|---|---|---|---|
| public boolean | isCellEditable(EventObject anEvent) Details
| ||||
| public Object | getCellEditorValue() Details
| ||||
| public void | setClickCountToStart(int count) Details
Specifies the number of clicks needed to start editing.
| ||||
| public int | getClickCountToStart() Details
Returns the number of clicks needed to start editing.
| ||||
| public Component | getComponent() Details
Returns a reference to the editor component.
| ||||
| public Component | getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) Implements the TableCellEditor interface.
| ||||
| public Component | getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) Implements the TreeCellEditor interface.
| ||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2009 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|