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 enum
The 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 TypeMethodDescriptionvoid
Clears the current selection and sets the caret to the appropriate position for typing.getValue()
void
Moves the cursor back one space.void
Re-selects the current selection.void
Selects a certain field in the printed time.void
selectIndex
(int index) Selects a field based on an index.void
Selects the next field in the printed time.void
Selects the previous field in the printed time.void
setTimeZone
(DBTimeZone timeZone) void
setValue
(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
-