|
JDatePicker v4.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
com.standbysoft.component.date.event.DateEvent
This type of events is fired by a DateModel whenever its state
changes. This means a date field or the whole date changed.
| Field Summary | |
static int |
DATE_CHANGED
Constant that indicates a date change DateEvent. |
static int |
FIELD_CHANGED
Constant that indicates a field change DateEvent. |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
DateEvent(java.lang.Object source,
java.util.Date date)
Creates an event to show that the date has changed. |
|
DateEvent(java.lang.Object source,
int field)
Creates an event to show that a date field has been cleared. |
|
DateEvent(java.lang.Object source,
int field,
int oldValue,
int newValue)
Creates an event to show that a date field has changed. |
|
| Method Summary | |
java.util.Date |
getDate()
Returns the changed date. |
int |
getField()
Returns the field that is changed. |
int |
getNewValue()
Returns the new value of the field that is changed. |
int |
getOldValue()
Returns the old value of the field that is changed. |
int |
getType()
Returns whether this event was generated by a date field change or date change. |
boolean |
isCleared()
Indicates whether a field has been cleared or not. |
java.lang.String |
toString()
|
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int FIELD_CHANGED
DateEvent.
public static final int DATE_CHANGED
DateEvent.
| Constructor Detail |
public DateEvent(java.lang.Object source,
int field)
source - object that generated this eventfield - date field that changed. This is a Calendar
constant like: Calendar.YEAR, Calendar.MONTH, etc.
public DateEvent(java.lang.Object source,
int field,
int oldValue,
int newValue)
source - object that generated this eventfield - date field that changed. This is a Calendar
constant like: Calendar.YEAR, Calendar.MONTH, etc.oldValue - old value for the changed date fieldnewValue - new value for the changed date field
public DateEvent(java.lang.Object source,
java.util.Date date)
source - object that generated this eventdate - new date| Method Detail |
public int getType()
FIELD_CHANGED or DATE_CHANGEDpublic int getField()
Calendar
constant like: Calendar.YEAR, Calendar.MONTH, etc.public int getOldValue()
public int getNewValue()
public java.util.Date getDate()
public boolean isCleared()
true if the field is cleared; false otherwisepublic java.lang.String toString()
|
JDatePicker v4.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Visit www.jdatepicker.com for further information or send us your suggestions.
Copyright © 2003-2007 Stand By Soft Ltd. All Rights Reserved.