Class FiredEvent
java.lang.Object
com.aquima.interactions.portal.model.session.FiredEvent
- All Implemented Interfaces:
IFiredEvent
,Serializable
This class holds the information of the element that triggered the portal event.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructs an empty fired event instance.protected
FiredEvent
(RequestAction action) -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsAction
(String eventName) Checks whether the action is available within the getActions() array.String[]
This method returns the actions of the element which triggered the event.Returns the IElement key which is the cause of the event processing.Returns the runtime key which equals the element that fired the event.boolean
This method returns a boolean indicating if the event was triggered by a refresh.boolean
This method returns a boolean indicating if the event was triggered by a submit.boolean
This method returns a boolean indicating if the event contains a void action, which is commonly used to navigate to another page without processing the current page.
-
Constructor Details
-
FiredEvent
-
FiredEvent
public FiredEvent()Constructs an empty fired event instance. This constructor may be used to indicated the event was triggered by an unknown (page) element.
-
-
Method Details
-
containsAction
Description copied from interface:IFiredEvent
Checks whether the action is available within the getActions() array. It checks for them in a case insensitive matter.- Specified by:
containsAction
in interfaceIFiredEvent
- Parameters:
eventName
- The event name that should be checked.- Returns:
- true when the action was available in the action list, false otherwise.
-
getElement
Description copied from interface:IFiredEvent
Returns the IElement key which is the cause of the event processing.- Specified by:
getElement
in interfaceIFiredEvent
- Returns:
- The element which can be null
-
getActions
Description copied from interface:IFiredEvent
This method returns the actions of the element which triggered the event.- Specified by:
getActions
in interfaceIFiredEvent
- Returns:
- The action array which can be null.
-
getRuntimeKey
Description copied from interface:IFiredEvent
Returns the runtime key which equals the element that fired the event. It is the equivalent of getElement().getRuntimeKey();- Specified by:
getRuntimeKey
in interfaceIFiredEvent
- Returns:
- The RuntimeKey which can be null
-
isRefreshEvent
public boolean isRefreshEvent()Description copied from interface:IFiredEvent
This method returns a boolean indicating if the event was triggered by a refresh.- Specified by:
isRefreshEvent
in interfaceIFiredEvent
- Returns:
- true when a field or button triggered a refresh. No flowing will be done and one will stay on the current page.
-
isSubmitEvent
public boolean isSubmitEvent()Description copied from interface:IFiredEvent
This method returns a boolean indicating if the event was triggered by a submit.- Specified by:
isSubmitEvent
in interfaceIFiredEvent
- Returns:
- true when a button submit was being pressed and a possible flow action will be processed.
-
isVoidEvent
public boolean isVoidEvent()Description copied from interface:IFiredEvent
This method returns a boolean indicating if the event contains a void action, which is commonly used to navigate to another page without processing the current page. Services and containers may use this method to determine if the handle method should process the current page, or ignore the event.- Specified by:
isVoidEvent
in interfaceIFiredEvent
- Returns:
- a boolean indicating if the event contains a void action.
-