public class CalendarEvent
extends java.util.EventObject
Note that only the information associated with the type of event
will be filled in. For instance, if you receive a MinuteChanged
event, then the only thing you can retrieve from that event is the
current minute.
CalendarListener
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
DayChanged
Day changed event type.
|
static int |
DayOfWeekChanged
Day of week changed event type.
|
static int |
HourChanged
Hour changed event type.
|
static int |
MinuteChanged
Minute changed event type.
|
static int |
MonthChanged
Month changed event type.
|
static int |
YearChanged
Year changed event type.
|
Constructor and Description |
---|
CalendarEvent(java.lang.Object source,
int type,
java.lang.Object o) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDay()
Retrieve the name of the current day of the week.
|
int |
getDayOfMonth()
Retrieve the current day of the month.
|
int |
getHour()
Retrieve the current hour.
|
int |
getMinute()
Retrieve the current minute.
|
java.lang.String |
getMonth()
Retrieve the current month.
|
int |
getType()
Retrieve the type of the event.
|
java.lang.String |
getYear()
Retrieve the current year.
|
public static final int MinuteChanged
public static final int HourChanged
public static final int DayChanged
public static final int DayOfWeekChanged
public static final int MonthChanged
public static final int YearChanged
public CalendarEvent(java.lang.Object source, int type, java.lang.Object o)
public int getType()
public int getMinute()
public int getHour()
public int getDayOfMonth()
public java.lang.String getDay()
public java.lang.String getMonth()
public java.lang.String getYear()