|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.AbstractCellEditor | +--com.eliad.model.defaults.DefaultGridCellEditor
The default editor for a GridCellEditor
and DefaultStyleModel
.
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.
GridCellEditor
,
java.swing.CellEditor
,
DefaultStyleModel
, Serialized FormInner Class Summary | |
protected class |
DefaultGridCellEditor.EditorDelegate
|
Fields inherited from class javax.swing.AbstractCellEditor |
changeEvent,
listenerList |
Constructor Summary | |
DefaultGridCellEditor(javax.swing.JCheckBox checkBox)
Constructs a DefaultGridCellEditor object that uses a check box. |
|
DefaultGridCellEditor(javax.swing.JComboBox comboBox)
Constructs a DefaultGridCellEditor object that uses a combo box. |
|
DefaultGridCellEditor(javax.swing.JTextField textField)
Constructs a DefaultGridCellEditor that uses a text field. |
Method Summary | |
void |
cancelCellEditing()
Tells the editor to cancel editing and not to accept any partially edited value. |
java.lang.Object |
getCellEditorValue()
Returns the value of the editing component as an Object Forwards method to our delegate. |
int |
getClickCountToStart()
Returns the number of clicks required to start editing. |
java.awt.Component |
getComponent()
Returns the a reference to the editor component. |
java.awt.Component |
getComponent(java.lang.Object value,
boolean isSelected,
int row,
int column,
GridContext gridContext)
|
boolean |
isCellEditable(java.util.EventObject anEvent)
Asks the editor if it can start editing using anEvent. |
void |
setClickCountToStart(int count)
Specifies the number of clicks needed to start editing. |
boolean |
shouldSelectCell(java.util.EventObject anEvent)
Asks the editor whether the editing cell should be selected using anEvent. |
boolean |
stopCellEditing()
Tells the editor to stop editing and to accept any partially edited value as the value of the editor. |
Methods inherited from class javax.swing.AbstractCellEditor |
addCellEditorListener,
fireEditingCanceled,
fireEditingStopped,
removeCellEditorListener |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DefaultGridCellEditor(javax.swing.JTextField textField)
x
- a JTextField object ...public DefaultGridCellEditor(javax.swing.JCheckBox checkBox)
x
- a JCheckBox object ...public DefaultGridCellEditor(javax.swing.JComboBox comboBox)
x
- a JComboBox object ...Method Detail |
public java.awt.Component getComponent()
public void setClickCountToStart(int count)
count
- an int specifying the number of clicks needed to start editinggetClickCountToStart()
public int getClickCountToStart()
public java.lang.Object getCellEditorValue()
public boolean isCellEditable(java.util.EventObject anEvent)
e
- an event objectpublic boolean shouldSelectCell(java.util.EventObject anEvent)
e
- an event objectpublic boolean stopCellEditing()
public void cancelCellEditing()
public java.awt.Component getComponent(java.lang.Object value, boolean isSelected, int row, int column, GridContext gridContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |