Class DBDateTimeSpinner

java.lang.Object
com.illumon.iris.console.events.DBDateTimeSpinner

public class DBDateTimeSpinner extends Object
Wraps a JSpinner so that it is set up correctly to display and edit a DBDateTime
  • Field Details

  • Constructor Details

  • Method Details

    • getValue

      public DBDateTime getValue()
    • setValue

      public void setValue(DBDateTime value)
    • getTimeZone

      public DBTimeZone getTimeZone()
    • setTimeZone

      public void setTimeZone(DBTimeZone timeZone)
    • getSpinner

      public JSpinner getSpinner()
    • getTextField

      public JFormattedTextField getTextField()
    • moveCursorBack

      public void moveCursorBack()
      Moves the cursor back one space.
    • clearSelection

      public void clearSelection()
      Clears the current selection and sets the caret to the appropriate position for typing.
    • selectField

      public void selectField(DBDateTimeSpinner.DateTimeSelection field)
      Selects a certain field in the printed time.
      Parameters:
      field - the field to select
    • selectCurrent

      public void selectCurrent()
      Re-selects the current selection.
    • selectNext

      public void selectNext()
      Selects the next field in the printed time. Wraps around to the front.
    • selectPrevious

      public void selectPrevious()
      Selects the previous field in the printed time. Wraps around to the back.
    • selectIndex

      public void selectIndex(int index)
      Selects a field based on an index.
      Parameters:
      index - the index to select from