Class UIBackEvent
- All Implemented Interfaces:
IMessageBox
The UI Back Event.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from interface IMessageBox
IMessageBox.IconField Summary
Fields inherited from interface IMessageBox
ICON_ERROR, ICON_INFORMATION, ICON_MAP, ICON_NONE, ICON_QUESTION, ICON_WARNINGConstructor Summary
ConstructorsConstructorDescriptionUIBackEvent(UIPanelBase source) Constructs the event for an action without a trigger source.UIBackEvent(UIPanelBase source, boolean keyboard) Constructs the event for a Back the client sent as a key: the Escape key of a desktop keyboard, which the client reports to the top-most panel like the device's Back button (CC-FIX-SIGNIN-CANCEL-BACK).Method Summary
Modifier and TypeMethodDescriptionGets the UI panel that is the source of the event.booleanChecks whether the event came from the Escape key of a keyboard rather than the device's or the Browser's Back button.Methods inherited from class UIBaseEvent
getAppSessionGyro, getClientSessionGyro, getContainerFirstUIComponent, getContainerFirstUIComponentNull, getFirstUIComponent, getFirstUIComponentNull, getPanelUIComponent, getPanelUIComponentNull, getUIPanel, getVirtualSpaceMethods inherited from class BaseEvent
getAction, getAction2, getActionNull, getActionNull2, getField, getField2, getFieldNull, getFieldNull2, getGroup, getGroup2, getGroupNull, getGroupNull2, getTable, getTable2, getTableNull, getTableNull2, getTime, getVirtualizedVirtualSpace, getVSComponent, getVSComponent2, getVSComponentNull, getVSComponentNull2, messageBox, paramString, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface IMessageBox
messageBox, messageBox, messageBox
Constructor Details
UIBackEvent
Constructs the event for an action without a trigger source.- Parameters:
source- The source.- Throws:
NullPointerException- If the source is null.
UIBackEvent
Constructs the event for a Back the client sent as a key: the Escape key of a desktop keyboard, which the client reports to the top-most panel like the device's Back button (CC-FIX-SIGNIN-CANCEL-BACK). A panel's handler may treat the two alike; a panel without a handler consumes the key and performs no history operation.- Parameters:
source- The source.keyboard- true for the Escape key, false for a Back button.- Throws:
NullPointerException- If the source is null.
Method Details
isKeyboard
public boolean isKeyboard()Checks whether the event came from the Escape key of a keyboard rather than the device's or the Browser's Back button.- Returns:
- true for the Escape key, false for a Back button.
getSource
Gets the UI panel that is the source of the event.- Overrides:
getSourcein classBaseEvent<UIPanelBase>