public class CalendarActivityEvent
extends javax.faces.event.FacesEvent
source
Constructor and Description |
---|
CalendarActivityEvent(javax.faces.component.UIComponent source, CalendarActivity activity, AWTKeyStroke keyStroke, int clickCount, MouseButton button, TriggerType triggerType)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
MouseButton |
getButton()
Return the button that triggered the event.
|
CalendarActivity |
getCalendarActivity()
Returns the calendarActivity for this event.
|
int |
getClickCount()
Return the number of clicks of the mouse that triggered the event.
|
AWTKeyStroke |
getKeyStroke()
This returns the keyStroke that triggered the event.
|
TriggerType |
getTriggerType()
The triggerType of event.
|
boolean |
isAppropriateListener(javax.faces.event.FacesListener listener) |
void |
processListener(javax.faces.event.FacesListener listener) |
getComponent, getPhaseId, queue, setPhaseId
getSource, toString
public CalendarActivityEvent(javax.faces.component.UIComponent source, CalendarActivity activity, AWTKeyStroke keyStroke, int clickCount, MouseButton button, TriggerType triggerType)
public boolean isAppropriateListener(javax.faces.event.FacesListener listener)
isAppropriateListener
in class javax.faces.event.FacesEvent
public void processListener(javax.faces.event.FacesListener listener)
processListener
in class javax.faces.event.FacesEvent
public CalendarActivity getCalendarActivity()
The return value may be null. For example let's say 2 users are looking at the same data. User A deletes activity 1. User B clicks on activity 1, but the activity has been deleted, so CalendarModel.getActivity will return null. The calendarActivityEvent will still be delivered with a null activty such that the end user can be informed that the activity is no longer available.
public AWTKeyStroke getKeyStroke()
public int getClickCount()
public MouseButton getButton()
public TriggerType getTriggerType()