cst.util
Class CSTSpinnerDateModel
java.lang.Object
javax.swing.AbstractSpinnerModel
javax.swing.SpinnerDateModel
cst.util.CSTSpinnerDateModel
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.SpinnerModel
public class CSTSpinnerDateModel
- extends javax.swing.SpinnerDateModel
A trivial subclass of SpinnerDateModel
that overrides the
fireStateChanged()
method. The spinner model is used to fire change
events so that programmatically setting the date in
DateFieldView
causes the UI to update.
Copyright 2010 Medical Research Council Unit for Lifelong Health and Ageing
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net)
- See Also:
- Serialized Form
Fields inherited from class javax.swing.AbstractSpinnerModel |
listenerList |
Methods inherited from class javax.swing.SpinnerDateModel |
getCalendarField, getDate, getEnd, getNextValue, getPreviousValue, getStart, getValue, setCalendarField, setEnd, setStart, setValue |
Methods inherited from class javax.swing.AbstractSpinnerModel |
addChangeListener, getChangeListeners, getListeners, removeChangeListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CSTSpinnerDateModel
public CSTSpinnerDateModel()
fireStateChanged
public void fireStateChanged()
- Overrides:
fireStateChanged
in class javax.swing.AbstractSpinnerModel