Package com.iizix.api.vs
Class VSBaseEventWithTrigger<VSCOMP extends IVSComponent>
java.lang.Object
com.iizix.api.BaseEvent<VSCOMP>
com.iizix.api.vs.VSBaseEvent<VSCOMP>
com.iizix.api.vs.VSBaseEventWithTrigger<VSCOMP>
- All Implemented Interfaces:
IMessageBox
- Direct Known Subclasses:
VSActionEvent
,VSChangeEvent
,VSFieldEvent
,VSFocusEvent
,VSStateEvent
Base event for all VirtualSpace events in the API.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from interface com.iizix.gyro.IMessageBox
IMessageBox.Icon
Field Summary
Fields inherited from interface com.iizix.gyro.IMessageBox
ICON_ERROR, ICON_INFORMATION, ICON_MAP, ICON_NONE, ICON_QUESTION, ICON_WARNING
Constructor Summary
ModifierConstructorDescriptionprotected
VSBaseEventWithTrigger
(VSCOMP source, GProp<?> trigger) Constructor called from the subclass with trigger information.Method Summary
Methods inherited from class com.iizix.api.vs.VSBaseEvent
getAppSessionGyro, getVirtualSpace
Methods inherited from class com.iizix.api.BaseEvent
getAction, getAction2, getActionNull, getActionNull2, getField, getField2, getFieldNull, getFieldNull2, getGroup, getGroup2, getGroupNull, getGroupNull2, getSource, getTable, getTable2, getTableNull, getTableNull2, getTime, getVirtualizedVirtualSpace, getVSComponent, getVSComponent2, getVSComponentNull, getVSComponentNull2, messageBox, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.iizix.gyro.IMessageBox
messageBox, messageBox, messageBox
Constructor Details
VSBaseEventWithTrigger
Constructor called from the subclass with trigger information.- Parameters:
source
- The source VS component.- Throws:
NullPointerException
- If the source is null.
Method Details
getTrigger
Gets the trigger property being the source of the event.- Returns:
- An instance of e.g. an UIButton, UICheckBox or null if the trigger is not a property.
getTriggerUIComp
Gets the UIComp that triggered the event.Avoid calling this method repeatedly as it requires look-up.
- Returns:
- The UI component that triggered the VS event, or null if there is no trigger available or the trigger is not inside a UIComp.
getTriggerClientSessionGyro
Gets the client session that triggered the VS event. The client session gyro is looked up from the trigger component, and if there is no trigger component or the client session gyro is not found, it is looked up from the current thread usingIClientSessionGyro.getSessionInstance()
.Avoid calling this method repeatedly as it requires look-up.
- Returns:
- The client session triggering the event, or null if undefined or not found.
paramString
Gets the parameter string.- Overrides:
paramString
in classBaseEvent<VSCOMP extends IVSComponent>