Package docking.widgets.textfield
Class LocalDateTextField
java.lang.Object
docking.widgets.textfield.LocalDateTextField
Text field for entering dates. Optionally, a minimum and maximum date value can be set on this
text field.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addActionListener
(ActionListener listener) void
addChangeListener
(ChangeListener listener) Adds a change listener that will be notified whenever the value changes.getValue()
boolean
void
removeActionListener
(ActionListener listener) void
removeChangeListener
(ChangeListener listener) Removes the changes listener.void
void
void
Sets the mode to Day.void
setEnabled
(boolean enabled) void
setMaximum
(LocalDate maximum) Sets the maximum allowed date.void
setMinimum
(LocalDate minimum) Sets the minimum allowed date.void
Sets the mode to Month.void
setShowFieldMode
(boolean show) Turns on or off the faded text that indicates if the field is in month or day modevoid
-
Constructor Details
-
LocalDateTextField
-
-
Method Details
-
setMinimum
Sets the minimum allowed date. Can be null.- Parameters:
minimum
- the minimum allowed date.
-
setMaximum
Sets the maximum allowed date. Can be null.- Parameters:
maximum
- the minimum allowed date.
-
setValue
-
getValue
-
getMinimum
-
getMaximum
-
setShowFieldMode
public void setShowFieldMode(boolean show) Turns on or off the faded text that indicates if the field is in month or day mode- Parameters:
show
- true to show the mode.
-
isShowingFieldMode
public boolean isShowingFieldMode() -
setMonthMode
public void setMonthMode()Sets the mode to Month. -
setDayMode
public void setDayMode()Sets the mode to Day. -
getTextField
-
getComponent
-
setEnabled
public void setEnabled(boolean enabled) -
requestFocus
public void requestFocus() -
selectAll
public void selectAll() -
addActionListener
-
removeActionListener
-
addChangeListener
Adds a change listener that will be notified whenever the value changes.- Parameters:
listener
- the change listener to add.
-
removeChangeListener
Removes the changes listener.- Parameters:
listener
- the listener to be removed.
-