|
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.DateCellEditor
public class DateCellEditor
DateCellEditor provides a date 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 | |
|---|---|
DateCellEditor()
Constructs a DateCellEditor |
|
DateCellEditor(DateFormat format)
Constructs a DateCellEditor |
|
| Method Summary | |
|---|---|
protected void |
commitEdit()
Commits the editing. |
protected AComboBox |
createAComboBox()
Factory methods to create AComboBox. |
DateFormat |
getFormat()
|
protected Object |
getValue()
Returns the value for current editor |
void |
setFormat(DateFormat format)
|
protected void |
setValue(Object value)
Sets the value for current editor. |
| Methods inherited from class com.zfqjava.swing.cell.ObjectCellEditor |
|---|
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 DateCellEditor()
public DateCellEditor(DateFormat format)
| Method Detail |
|---|
public DateFormat getFormat()
public void setFormat(DateFormat format)
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 editingprotected AComboBox createAComboBox()
ObjectCellEditor
createAComboBox in class ObjectCellEditor
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||