Class RmaDateTimeEditor

java.lang.Object
javax.swing.AbstractCellEditor
rma.swing.table.RmaDateTimeEditor
All Implemented Interfaces:
Serializable, CellEditor, TableCellEditor

public class RmaDateTimeEditor extends AbstractCellEditor implements TableCellEditor
See Also:
  • Field Details

  • Constructor Details

    • RmaDateTimeEditor

      public RmaDateTimeEditor(RmaJCalendarField dateField)
      This constructor is called to edit the Date portion of a DateTime Combination.
    • RmaDateTimeEditor

      public RmaDateTimeEditor(RmaJ24HourTimeField timeField)
      This constructor is called to edit the Time portion of a DateTime Combination.
  • Method Details

    • setIgnoreTimeZoneAdjustments

      public void setIgnoreTimeZoneAdjustments(boolean ignore)
    • getCellEditorValue

      public Object getCellEditorValue()
      Specified by:
      getCellEditorValue in interface CellEditor
    • 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:
      getTableCellEditorComponent in interface TableCellEditor
    • fireEditingCanceled

      protected void fireEditingCanceled()
      Fires and event to all listeners that the editing has been canceled
      Overrides:
      fireEditingCanceled in class AbstractCellEditor
    • fireEditingStopped

      protected void fireEditingStopped()
      Fires and event to all listeners that the editing has stopped
      Overrides:
      fireEditingStopped in class AbstractCellEditor
    • setTimeZone

      public void setTimeZone(TimeZone tz)
    • setClickCountToStart

      public void setClickCountToStart(int ccts)
      Sets the number of click counts necessary in order to display the editor
    • getClickCountToStart

      public int getClickCountToStart()
    • isCellEditable

      public boolean isCellEditable(EventObject event)
      Specified by:
      isCellEditable in interface CellEditor
      Overrides:
      isCellEditable in class AbstractCellEditor