Package com.illumon.iris.console.events
Class DBDateTimeSpinner
java.lang.Object
com.illumon.iris.console.events.DBDateTimeSpinner
Wraps a JSpinner so that it is set up correctly to display and edit a DBDateTime
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe sections of the date that can be selected. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDBDateTimeSpinner(JSpinner spinner) DBDateTimeSpinner(JSpinner spinner, DBDateTime intialValue, DBTimeZone timeZone) -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the current selection and sets the caret to the appropriate position for typing.getValue()voidMoves the cursor back one space.voidRe-selects the current selection.voidSelects a certain field in the printed time.voidselectIndex(int index) Selects a field based on an index.voidSelects the next field in the printed time.voidSelects the previous field in the printed time.voidsetTimeZone(DBTimeZone timeZone) voidsetValue(DBDateTime value)
-
Field Details
-
NEXT_DATE_TIME_ACTION
- See Also:
-
PREV_DATE_TIME_ACTION
- See Also:
-
MOVE_BACK
- See Also:
-
-
Constructor Details
-
DBDateTimeSpinner
-
DBDateTimeSpinner
-
-
Method Details
-
getValue
-
setValue
-
getTimeZone
-
setTimeZone
-
getSpinner
-
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
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
-