Class DateCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
smile.swing.table.DateCellEditor
- All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor, TreeCellEditor
Implements a cell editor that uses a formatted text field
to edit Date values.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class DefaultCellEditor
DefaultCellEditor.EditorDelegate -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DateCellEditorPredefined time editor in HH:mm format.static final DateCellEditorPredefined time editor in HH:mm:ss format.static final DateCellEditorPredefined date editor in ISO-8601 format yyyy-MM-dd'T'HH:mm:ss.SSSXXX.static final DateCellEditorPredefined date editor in MM/dd/yy format.static final DateCellEditorPredefined date editor in YYYY-MM-DD format.static final DateCellEditorPredefined datetime editor in yyyy-MM-dd HH:mm format.static final DateCellEditorPredefined datetime editor in yyyy-MM-dd HH:mm:ss format.Fields inherited from class DefaultCellEditor
clickCountToStart, delegate, editorComponentFields inherited from class AbstractCellEditor
changeEvent, listenerList -
Constructor Summary
ConstructorsConstructorDescriptionDateCellEditor(String format) Constructor.DateCellEditor(DateFormat format) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) booleanMethods inherited from class DefaultCellEditor
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCellMethods inherited from class AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CellEditor
addCellEditorListener, removeCellEditorListener
-
Field Details
-
YYYYMMDD
Predefined date editor in YYYY-MM-DD format. -
MMDDYY
Predefined date editor in MM/dd/yy format. -
YYYYMMDD_HHMMSS
Predefined datetime editor in yyyy-MM-dd HH:mm:ss format. -
YYYYMMDD_HHMM
Predefined datetime editor in yyyy-MM-dd HH:mm format. -
HHMM
Predefined time editor in HH:mm format. -
HHMMSS
Predefined time editor in HH:mm:ss format. -
ISO8601
Predefined date editor in ISO-8601 format yyyy-MM-dd'T'HH:mm:ss.SSSXXX.
-
-
Constructor Details
-
DateCellEditor
-
DateCellEditor
-
-
Method Details
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) - Specified by:
getTableCellEditorComponentin interfaceTableCellEditor- Overrides:
getTableCellEditorComponentin classDefaultCellEditor
-
getCellEditorValue
- Specified by:
getCellEditorValuein interfaceCellEditor- Overrides:
getCellEditorValuein classDefaultCellEditor
-
stopCellEditing
public boolean stopCellEditing()- Specified by:
stopCellEditingin interfaceCellEditor- Overrides:
stopCellEditingin classDefaultCellEditor
-