Class DateSpinner
java.lang.Object
docking.widgets.table.constrainteditor.DateSpinner
Creates a component for editing Dates using a formated textfield and a Jspinner.
-
Constructor Summary
ConstructorDescriptionDateSpinner
(LocalDateSpinnerModel spinnerModel, String pattern) Creates a DateSpinner object using the given spinnerModel and a pattern for a formated text field. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChangeListener
(ChangeListener listener) Adds a ChangeListener to the model's listener list.protected void
Run each ChangeListeners stateChanged() method.Returns the DateTextField component.Returns the spinner component.void
removeChangeListener
(ChangeListener listener) Removes a ChangeListener from the model's listener list.void
Sets the Date value for this DateSpinner.
-
Constructor Details
-
DateSpinner
Creates a DateSpinner object using the given spinnerModel and a pattern for a formated text field.- Parameters:
spinnerModel
- the spinner modelpattern
- a pattern to be used by a JFormattedTextField
-
-
Method Details
-
getSpinner
Returns the spinner component.- Returns:
- the spinner component.
-
getDateField
Returns the DateTextField component.- Returns:
- the DateTextField component.
-
setValue
Sets the Date value for this DateSpinner.- Parameters:
newValue
- the new Date for this DateSpinner.
-
addChangeListener
Adds a ChangeListener to the model's listener list. The ChangeListeners must be notified when the models value changes.- Parameters:
listener
- the ChangeListener to add- See Also:
-
removeChangeListener
Removes a ChangeListener from the model's listener list.- Parameters:
listener
- the ChangeListener to remove- See Also:
-
fireStateChanged
protected void fireStateChanged()Run each ChangeListeners stateChanged() method.- See Also:
-