|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--cc.gammasoft.date.AbstractDateModel
AbstractObjectModel is used to store the selected calendar value .There is also a feature is implemented for selected values. If this the feature is enabled, this model will keep track of the selected values and will store them in a TreeSet.
| Field Summary |
| Fields inherited from interface cc.gammasoft.date.DateModel |
TODAY |
| Constructor Summary | |
AbstractDateModel()
Constructs a new AbstractDateModel with todays date. |
|
AbstractDateModel(java.util.Calendar calendar)
Constructs AbstractDateModel with the parameter. |
|
| Method Summary | |
void |
addChangeListener(javax.swing.event.ChangeListener listener)
Adds the specified change listener to receive state change events from this model. |
void |
enableReselection(boolean value)
Enables or disables selected calendar values should be re-selected depending on the value of parameter. |
void |
enableSelectionTracking(boolean value)
Enables or disables selected calendar values should be tracked depending on the value of parameter. |
void |
fireValueChanged()
Dispatches state change events for listeners |
java.util.TreeSet |
getSelectedValues()
returns selected calendar values. |
java.lang.String |
getSQLDateValue()
process a getSQLDateValue() |
java.lang.String |
getTimestampValue()
process a getTimeStampValue() |
java.util.Calendar |
getValue()
Returns model's current value |
boolean |
isReselectionEnabled()
Determines whether selected calendar values should be re-selected. |
boolean |
isSelectionTrackingEnabled()
Determines whether calendar values should be tracked. |
void |
removeChangeListener(javax.swing.event.ChangeListener listener)
Removes the specified change listener so that it no longer receives change listener events from this model. |
void |
setSelectedValues(java.util.Calendar[] values)
sets selected values. |
boolean |
setSQLDate(java.lang.String SQLDate)
process a setValue(String SQLDate) |
boolean |
setTimestamp(java.lang.String timeStamp)
process a setValue(String SQLDateTime) |
boolean |
setValue(java.util.Calendar calendar)
sets current value |
boolean |
setValue(int year,
int month,
int date)
sets current value with year, month, date |
boolean |
setValue(java.lang.String sqlDate)
process a setValue(String sqlDate) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractDateModel()
public AbstractDateModel(java.util.Calendar calendar)
| Method Detail |
public boolean setValue(java.util.Calendar calendar)
setValue in interface DateModel
public boolean setValue(int year,
int month,
int date)
setValue in interface DateModelpublic boolean setValue(java.lang.String sqlDate)
setValue in interface DateModelpublic boolean setSQLDate(java.lang.String SQLDate)
setSQLDate in interface DateModelpublic boolean setTimestamp(java.lang.String timeStamp)
setTimestamp in interface DateModelpublic java.lang.String getSQLDateValue()
getSQLDateValue in interface DateModelpublic java.lang.String getTimestampValue()
getTimestampValue in interface DateModelpublic java.util.Calendar getValue()
getValue in interface DateModelpublic void enableSelectionTracking(boolean value)
enableSelectionTracking in interface DateModelpublic boolean isSelectionTrackingEnabled()
isSelectionTrackingEnabled in interface DateModelpublic void enableReselection(boolean value)
enableReselection in interface DateModelpublic boolean isReselectionEnabled()
isReselectionEnabled in interface DateModelpublic void addChangeListener(javax.swing.event.ChangeListener listener)
addChangeListener in interface DateModelpublic void removeChangeListener(javax.swing.event.ChangeListener listener)
removeChangeListener in interface DateModellistener - the change listener.public java.util.TreeSet getSelectedValues()
getSelectedValues in interface DateModelpublic void setSelectedValues(java.util.Calendar[] values)
setSelectedValues in interface DateModelpublic void fireValueChanged()
fireValueChanged in interface DateModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||