|
||||||||||
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 DateModel
public boolean setValue(java.lang.String sqlDate)
setValue
in interface DateModel
public boolean setSQLDate(java.lang.String SQLDate)
setSQLDate
in interface DateModel
public boolean setTimestamp(java.lang.String timeStamp)
setTimestamp
in interface DateModel
public java.lang.String getSQLDateValue()
getSQLDateValue
in interface DateModel
public java.lang.String getTimestampValue()
getTimestampValue
in interface DateModel
public java.util.Calendar getValue()
getValue
in interface DateModel
public void enableSelectionTracking(boolean value)
enableSelectionTracking
in interface DateModel
public boolean isSelectionTrackingEnabled()
isSelectionTrackingEnabled
in interface DateModel
public void enableReselection(boolean value)
enableReselection
in interface DateModel
public boolean isReselectionEnabled()
isReselectionEnabled
in interface DateModel
public void addChangeListener(javax.swing.event.ChangeListener listener)
addChangeListener
in interface DateModel
public void removeChangeListener(javax.swing.event.ChangeListener listener)
removeChangeListener
in interface DateModel
listener
- the change listener.public java.util.TreeSet getSelectedValues()
getSelectedValues
in interface DateModel
public void setSelectedValues(java.util.Calendar[] values)
setSelectedValues
in interface DateModel
public void fireValueChanged()
fireValueChanged
in interface DateModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |