|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zfqjava.swing.cell.AbstractCellEditor
com.zfqjava.swing.cell.ObjectCellEditor
com.zfqjava.swing.cell.NumberCellEditor
public class NumberCellEditor
NumberCellEditor provides a number editor,
can be used as JTable, JTree
cell editor.
| Field Summary |
|---|
| Fields inherited from class com.zfqjava.swing.cell.ObjectCellEditor |
|---|
A_COMBO_BOX, COMBO_BOX, defaultHorizontalAlignment, TEXT_FIELD, textField |
| Fields inherited from class com.zfqjava.swing.cell.AbstractCellEditor |
|---|
CANCEL_EDITING_ON_FOCUS_LOST, changeEvent, COMMIT, COMMIT_OR_EDITING, COMMIT_OR_REVERT, DO_NOTHING_ON_FOCUS_LOST, listenerList, STOP_EDITING_ON_FOCUS_LOST, useSelectionColor |
| Constructor Summary | |
|---|---|
NumberCellEditor()
Constructs a NumberCellEditor |
|
NumberCellEditor(NumberFormat format)
Constructs a NumberCellEditor |
|
| Method Summary | |
|---|---|
protected void |
commitEdit()
Commits the editing. |
protected NumberFormat |
createDefaultFormat()
|
NumberFormat |
getDefaultFormat()
|
protected Object |
getValue()
Returns the value for current editor |
void |
setDefaultFormat(NumberFormat format)
|
protected void |
setValue(Object value)
Sets the value for current editor. |
| Methods inherited from class com.zfqjava.swing.cell.ObjectCellEditor |
|---|
createAComboBox, createComboBox, createComboBoxModel, createTextField, getComponent, getComponentType, getDefaultHorizontalAlignment, getEditingValue, setComponentType, setDefaultHorizontalAlignment, setOpaque, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NumberCellEditor()
public NumberCellEditor(NumberFormat format)
| Method Detail |
|---|
protected void setValue(Object value)
AbstractCellEditor
setValue in class ObjectCellEditorvalue - the value to editorprotected Object getValue()
AbstractCellEditor
getValue in class ObjectCellEditor
protected void commitEdit()
throws ParseException
AbstractCellEditorAbstractCellEditor.stopCellEditing(), if
cannot commit current editing, should throws exception.
commitEdit in class ObjectCellEditorParseException - if cannot commit the editingpublic void setDefaultFormat(NumberFormat format)
public NumberFormat getDefaultFormat()
protected NumberFormat createDefaultFormat()
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||