Skip navigation links

Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.7.2)
E10684-10


oracle.adf.view.rich.event
Class CalendarActivityDurationChangeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.faces.event.FacesEvent
          extended by oracle.adf.view.rich.event.CalendarActivityDurationChangeEvent

All Implemented Interfaces:
java.io.Serializable

public class CalendarActivityDurationChangeEvent
extends javax.faces.event.FacesEvent

An activity event is fired when the user changed the duration of an activity.

See Also:
Serialized Form

Field Summary

 

Fields inherited from class java.util.EventObject
source

 

Constructor Summary
CalendarActivityDurationChangeEvent(javax.faces.component.UIComponent source, java.lang.String providerId, java.lang.String activityId, CalendarActivity activity, java.util.Date newEndDate)
          Constructs CalendarActivityDurationChangeEvent for TIME and ALLDAY type activities
CalendarActivityDurationChangeEvent(javax.faces.component.UIComponent source, java.lang.String providerId, java.lang.String activityId, CalendarActivity activity, java.util.Date triggerDate, long newDurationMillis)
          Constructs CalendarActivityDurationChangeEvent for DURATION type activity

 

Method Summary
 CalendarActivity getCalendarActivity()
          This returns the activity source.
 long getNewDuration()
          Returns the new duration for TimeType.DURATION activity.
 java.util.Date getNewEndDate()
          Returns the new end date for TimeType.TIME or TimeType.ALLDAY activities.
 java.util.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)
           

 

Methods inherited from class javax.faces.event.FacesEvent
getComponent, getPhaseId, queue, setPhaseId

 

Methods inherited from class java.util.EventObject
getSource, toString

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

CalendarActivityDurationChangeEvent

public CalendarActivityDurationChangeEvent(javax.faces.component.UIComponent source,
                                           java.lang.String providerId,
                                           java.lang.String activityId,
                                           CalendarActivity activity,
                                           java.util.Date newEndDate)
Constructs CalendarActivityDurationChangeEvent for TIME and ALLDAY type activities

CalendarActivityDurationChangeEvent

public CalendarActivityDurationChangeEvent(javax.faces.component.UIComponent source,
                                           java.lang.String providerId,
                                           java.lang.String activityId,
                                           CalendarActivity activity,
                                           java.util.Date triggerDate,
                                           long newDurationMillis)
Constructs CalendarActivityDurationChangeEvent for DURATION type activity

Method Detail

getNewEndDate

public java.util.Date getNewEndDate()
Returns the new end date for TimeType.TIME or TimeType.ALLDAY activities. The new end date will be in the same time zone as the activity. Do not call this method if getCalendarActivity().getTimeType() returns TimeType.DURATION.
Returns:
new endDate
Throws:
java.lang.IllegalStateException - if this method is invoked on a TimeType.DURATION activity

getNewDuration

public long getNewDuration()
Returns the new duration for TimeType.DURATION activity. Do not call this method if getCalendarActivity().getTimeType() returns TimeType.TIME or TimeType.ALLDAY.
Returns:
new endDate
Throws:
java.lang.IllegalStateException - if this method is invoked on a TimeType.ALLDAY or TimeType.TIME activity

getTriggerDate

public java.util.Date getTriggerDate()
Returns the date for which the current duration change event is triggered. The returned date will always be within the start and end dates of the CalendarActivity for which the event is dispatched. Do not call this method if getCalendarActivity().getTimeType() returns TimeType.TIME or TimeType.ALLDAY.
Returns:
Date for which the duration change event is triggered
Throws:
java.lang.IllegalStateException - if this method is invoked on a TimeType.ALLDAY or TimeType.TIME activity

isAppropriateListener

public boolean isAppropriateListener(javax.faces.event.FacesListener listener)
Specified by:
isAppropriateListener in class javax.faces.event.FacesEvent

processListener

public void processListener(javax.faces.event.FacesListener listener)
Specified by:
processListener in class javax.faces.event.FacesEvent

getCalendarActivity

public CalendarActivity getCalendarActivity()
This returns the activity source.
Returns:
the CalendarActivity source activity.

Skip navigation links

Oracle© Fusion Middleware Java API Reference for Oracle ADF Faces
11g Release 1 (11.1.1.7.2)
E10684-10


Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.