public class CalendarActivityDurationChangeEvent
extends javax.faces.event.FacesEvent
source| Constructor and Description |
|---|
CalendarActivityDurationChangeEvent(javax.faces.component.UIComponent source, String providerId, String activityId, CalendarActivity activity, Date newEndDate)
Constructs CalendarActivityDurationChangeEvent for TIME and ALLDAY type activities
|
CalendarActivityDurationChangeEvent(javax.faces.component.UIComponent source, String providerId, String activityId, CalendarActivity activity, Date triggerDate, long newDurationMillis)
Constructs CalendarActivityDurationChangeEvent for DURATION type activity
|
| Modifier and Type | Method and Description |
|---|---|
CalendarActivity |
getCalendarActivity()
This returns the activity source.
|
long |
getNewDuration()
Returns the new duration for TimeType.DURATION activity.
|
Date |
getNewEndDate()
Returns the new end date for TimeType.TIME or TimeType.ALLDAY activities.
|
Date |
getTriggerDate()
Returns the date for which the current duration change event is triggered.
|
boolean |
isAppropriateListener(javax.faces.event.FacesListener listener) |
void |
processListener(javax.faces.event.FacesListener listener) |
getComponent, getPhaseId, queue, setPhaseIdgetSource, toString
public CalendarActivityDurationChangeEvent(javax.faces.component.UIComponent source,
String providerId,
String activityId,
CalendarActivity activity,
Date newEndDate)
source - the source componentproviderId - the provider idactivityId - the activity idactivity - the calendar activitynewEndDate - the new end date.
public CalendarActivityDurationChangeEvent(javax.faces.component.UIComponent source,
String providerId,
String activityId,
CalendarActivity activity,
Date triggerDate,
long newDurationMillis)
source - the source componentproviderId - the provider idactivityId - the activity idactivity - the calendar activitytriggerDate - the trigger date.newDurationMillis - duration in milli-seconds.public Date getNewEndDate()
IllegalStateException - if this method is invoked on a TimeType.DURATION activitypublic long getNewDuration()
IllegalStateException - if this method is invoked on a TimeType.ALLDAY or TimeType.TIME activitypublic Date getTriggerDate()
IllegalStateException - if this method is invoked on a TimeType.ALLDAY or TimeType.TIME activitypublic boolean isAppropriateListener(javax.faces.event.FacesListener listener)
isAppropriateListener in class javax.faces.event.FacesEventpublic void processListener(javax.faces.event.FacesListener listener)
processListener in class javax.faces.event.FacesEventpublic CalendarActivity getCalendarActivity()