Package rma.swing.table
Class RmaDateTimeEditor
java.lang.Object
javax.swing.AbstractCellEditor
rma.swing.table.RmaDateTimeEditor
- All Implemented Interfaces:
Serializable,CellEditor,TableCellEditor
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classThis is an internal class that can be used to delegate the editing commands to -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RmaDateTimeEditor.EditorDelegatestatic final intstatic final intFields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList -
Constructor Summary
ConstructorsConstructorDescriptionRmaDateTimeEditor(RmaJ24HourTimeField timeField) This constructor is called to edit the Time portion of a DateTime Combination.RmaDateTimeEditor(RmaJCalendarField dateField) This constructor is called to edit the Date portion of a DateTime Combination. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidFires and event to all listeners that the editing has been canceledprotected voidFires and event to all listeners that the editing has stoppedintgetTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) Returns a component that can be used to edit this data valuebooleanisCellEditable(EventObject event) voidsetClickCountToStart(int ccts) Sets the number of click counts necessary in order to display the editorvoidsetIgnoreTimeZoneAdjustments(boolean ignore) voidsetTimeZone(TimeZone tz) Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, cancelCellEditing, getCellEditorListeners, removeCellEditorListener, shouldSelectCell, stopCellEditingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.CellEditor
addCellEditorListener, cancelCellEditing, removeCellEditorListener, shouldSelectCell, stopCellEditing
-
Field Details
-
EDIT_DATE
public static final int EDIT_DATE- See Also:
-
EDIT_TIME
public static final int EDIT_TIME- See Also:
-
delegate
-
-
Constructor Details
-
RmaDateTimeEditor
This constructor is called to edit the Date portion of a DateTime Combination. -
RmaDateTimeEditor
This constructor is called to edit the Time portion of a DateTime Combination.
-
-
Method Details
-
setIgnoreTimeZoneAdjustments
public void setIgnoreTimeZoneAdjustments(boolean ignore) -
getCellEditorValue
- Specified by:
getCellEditorValuein interfaceCellEditor
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) Returns a component that can be used to edit this data value- Specified by:
getTableCellEditorComponentin interfaceTableCellEditor
-
fireEditingCanceled
protected void fireEditingCanceled()Fires and event to all listeners that the editing has been canceled- Overrides:
fireEditingCanceledin classAbstractCellEditor
-
fireEditingStopped
protected void fireEditingStopped()Fires and event to all listeners that the editing has stopped- Overrides:
fireEditingStoppedin classAbstractCellEditor
-
setTimeZone
-
setClickCountToStart
public void setClickCountToStart(int ccts) Sets the number of click counts necessary in order to display the editor -
getClickCountToStart
public int getClickCountToStart() -
isCellEditable
- Specified by:
isCellEditablein interfaceCellEditor- Overrides:
isCellEditablein classAbstractCellEditor
-