|
Swing 1.1 Beta2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.DefaultCellEditor
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 applications running the same version of Swing. A future release of Swing will provide support for long term persistence.
Inner Class Summary | |
protected class |
DefaultCellEditor.EditorDelegate
|
Field Summary | |
protected ChangeEvent |
changeEvent
|
protected int |
clickCountToStart
|
protected DefaultCellEditor.EditorDelegate |
delegate
|
protected JComponent |
editorComponent
|
protected EventListenerList |
listenerList
Event listeners |
Constructor Summary | |
DefaultCellEditor(JCheckBox checkBox)
Constructs a DefaultCellEditor object that uses a check box. |
|
DefaultCellEditor(JComboBox comboBox)
Constructs a DefaultCellEditor object that uses a combo box. |
|
DefaultCellEditor(JTextField textField)
Constructs a DefaultCellEditor that uses a text field. |
Method Summary | |
void |
addCellEditorListener(CellEditorListener l)
|
void |
cancelCellEditing()
|
protected void |
fireEditingCanceled()
|
protected void |
fireEditingStopped()
|
Object |
getCellEditorValue()
|
int |
getClickCountToStart()
ClickCountToStart controls the number of clicks required to start editing. |
Component |
getComponent()
Returns the a reference to the editor component. |
Component |
getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
|
Component |
getTreeCellEditorComponent(JTree tree,
Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
|
boolean |
isCellEditable(EventObject anEvent)
|
void |
removeCellEditorListener(CellEditorListener l)
|
void |
setClickCountToStart(int count)
Specifies the number of clicks needed to start editing. |
boolean |
shouldSelectCell(EventObject anEvent)
|
boolean |
stopCellEditing()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected EventListenerList listenerList
protected transient ChangeEvent changeEvent
protected JComponent editorComponent
protected DefaultCellEditor.EditorDelegate delegate
protected int clickCountToStart
Constructor Detail |
public DefaultCellEditor(JTextField textField)
x
- a JTextField object ...public DefaultCellEditor(JCheckBox checkBox)
x
- a JCheckBox object ...public DefaultCellEditor(JComboBox comboBox)
x
- a JComboBox object ...Method Detail |
public Component getComponent()
public void setClickCountToStart(int count)
count
- an int specifying the number of clicks needed to start editinggetClickCountToStart()
public int getClickCountToStart()
public Object getCellEditorValue()
public boolean isCellEditable(EventObject anEvent)
public boolean shouldSelectCell(EventObject anEvent)
public boolean stopCellEditing()
public void cancelCellEditing()
public void addCellEditorListener(CellEditorListener l)
public void removeCellEditorListener(CellEditorListener l)
protected void fireEditingStopped()
protected void fireEditingCanceled()
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
|
Swing 1.1 Beta2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |