smile.swing.table
Class DateCellEditor
- java.lang.Object
-
- javax.swing.AbstractCellEditor
-
- javax.swing.DefaultCellEditor
-
- smile.swing.table.DateCellEditor
-
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor
public class DateCellEditor extends javax.swing.DefaultCellEditorImplements a cell editor that uses a formatted text field to edit Date values.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static DateCellEditorHHMMstatic DateCellEditorHHMMSSstatic DateCellEditorISO8601static DateCellEditorMMDDYYstatic DateCellEditorYYYYMMDDstatic DateCellEditorYYYYMMDD_HHMMstatic DateCellEditorYYYYMMDD_HHMMSS
-
Constructor Summary
Constructors Constructor and Description DateCellEditor(java.text.DateFormat dateFormat)Constructor.DateCellEditor(java.lang.String format)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.ObjectgetCellEditorValue()java.awt.ComponentgetTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)booleanstopCellEditing()-
Methods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell
-
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, getCellEditorListeners, removeCellEditorListener
-
-
-
-
Field Detail
-
YYYYMMDD
public static final DateCellEditor YYYYMMDD
-
MMDDYY
public static final DateCellEditor MMDDYY
-
YYYYMMDD_HHMMSS
public static final DateCellEditor YYYYMMDD_HHMMSS
-
YYYYMMDD_HHMM
public static final DateCellEditor YYYYMMDD_HHMM
-
HHMM
public static final DateCellEditor HHMM
-
HHMMSS
public static final DateCellEditor HHMMSS
-
ISO8601
public static final DateCellEditor ISO8601
-
-
Constructor Detail
-
DateCellEditor
public DateCellEditor(java.lang.String format)
Constructor.
-
DateCellEditor
public DateCellEditor(java.text.DateFormat dateFormat)
Constructor.
-
-
Method Detail
-
getTableCellEditorComponent
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)- Specified by:
getTableCellEditorComponentin interfacejavax.swing.table.TableCellEditor- Overrides:
getTableCellEditorComponentin classjavax.swing.DefaultCellEditor
-
getCellEditorValue
public java.lang.Object getCellEditorValue()
- Specified by:
getCellEditorValuein interfacejavax.swing.CellEditor- Overrides:
getCellEditorValuein classjavax.swing.DefaultCellEditor
-
stopCellEditing
public boolean stopCellEditing()
- Specified by:
stopCellEditingin interfacejavax.swing.CellEditor- Overrides:
stopCellEditingin classjavax.swing.DefaultCellEditor
-
-
DataMelt 3.0 © DataMelt by jWork.ORG