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
|
CalendarActivityEvent(javax.faces.component.UIComponent source,
CalendarActivity activity,
AWTKeyStroke keyStroke,
int clickCount,
MouseButton button,
TriggerType triggerType,
String providerId)
Overloaded 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.
|
String |
getProviderId()
The provider ID of event.
|
TriggerType |
getTriggerType()
The triggerType of event.
|
boolean |
isAppropriateListener(javax.faces.event.FacesListener listener) |
void |
processListener(javax.faces.event.FacesListener listener) |
getComponent, getPhaseId, queue, setPhaseIdgetSource, toStringpublic CalendarActivityEvent(javax.faces.component.UIComponent source,
CalendarActivity activity,
AWTKeyStroke keyStroke,
int clickCount,
MouseButton button,
TriggerType triggerType)
source - the UI component that was the source of of the event.activity - the calendar activitykeyStroke - the AWT key stroke.clickCount - the click count.button - the mouse button.triggerType - the trigger type.public CalendarActivityEvent(javax.faces.component.UIComponent source,
CalendarActivity activity,
AWTKeyStroke keyStroke,
int clickCount,
MouseButton button,
TriggerType triggerType,
String providerId)
source - the UI component that was the source of of the event.activity - the calendar activitykeyStroke - the AWT key stroke.clickCount - the click count.button - the mouse button.triggerType - the trigger type.providerId - the provider id.public 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()
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()
public String getProviderId()