Package com.iizix.api.ui
Class UIBaseEvent<UICOMP extends IUIComp>
java.lang.Object
com.iizix.api.BaseEvent<UICOMP>
com.iizix.api.ui.UIBaseEvent<UICOMP>
- All Implemented Interfaces:
- IMessageBox
- Direct Known Subclasses:
- UIActionEvent,- UIBackEvent,- UIConnectEvent,- UICreateEvent,- UIDestroyEvent,- UIFocusEvent,- UISelectionEvent,- UITextChangeEvent,- UIValueChangeEvent
Base event for all 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 SummaryConstructorsModifierConstructorDescription- protected- UIBaseEvent- (UICOMP source) Constructor called from the subclass.
- Method SummaryModifier and TypeMethodDescriptionGets the Application Session Gyro instance.Gets the Client Session Gyro instance.- <COMP extends UIComp>
 COMP- getContainerFirstUIComponent- (String name, Class<COMP> uiClass) Gets the first UI component of the specified name and UI class.- <COMP extends UIComp>
 COMP- getContainerFirstUIComponentNull- (String name, Class<COMP> uiClass) Gets the first UI component of the specified name and UI class.- <COMP extends UIComp>
 COMP- getFirstUIComponent- (String name, Class<COMP> uiClass) Gets the first UI component of the specified name and UI class.- <COMP extends UIComp>
 COMP- getFirstUIComponentNull- (String name, Class<COMP> uiClass) Gets the first UI component of the specified name and UI class.- <COMP extends UIComp>
 COMP- getPanelUIComponent- (@UIRef String uiPath, Class<COMP> uiClass) Gets a UI component by UI path reference from the panel.- <COMP extends UIComp>
 COMP- getPanelUIComponentNull- (@UIRef String uiPath, Class<COMP> uiClass) Gets a UI component with relative reference from this container.Gets the panel of the UI event source component.Gets the VirtualSpace of the UI event source component.- 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, paramString, 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
- Constructor Details- UIBaseEventConstructor called from the subclass.- Throws:
- NullPointerException- If the source is null.
 
 
- Method Details- getVirtualSpaceGets the VirtualSpace of the UI event source component.- Specified by:
- getVirtualSpacein class- BaseEvent<UICOMP extends IUIComp>
- Returns:
- The VirtualSpace connected to the panel of this event source component.
 
- getAppSessionGyroGets the Application Session Gyro instance.- Overrides:
- getAppSessionGyroin class- BaseEvent<UICOMP extends IUIComp>
- Returns:
- The instance.
 
- getClientSessionGyroGets the Client Session Gyro instance.- Returns:
- The instance.
 
- getUIPanelGets the panel of the UI event source component.- Returns:
- The panel.
 
- getPanelUIComponentpublic <COMP extends UIComp> COMP getPanelUIComponent- (@UIRef String uiPath, Class<COMP> uiClass) throws NotFoundException Gets a UI component by UI path reference from the panel.- Note: A UI path is not the same as a property path, it omits the UI container UIComps instance from the path. - Parameters:
- uiPath- The UI path for the component.
- uiClass- The UI class of the component.
- Returns:
- The component, never null.
- Throws:
- NotFoundException- The not-found exception is thrown if the component is not found instead of returning null.
 
- getPanelUIComponentNullpublic <COMP extends UIComp> COMP getPanelUIComponentNull- (@UIRef String uiPath, Class<COMP> uiClass) Gets a UI component with relative reference from this container.- Note: A UI path is not the same as a property path, it omits the UI container UIComps instance from the path. - Parameters:
- uiPath- The UI path for the component.
- uiClass- The UI class of the component.
- Returns:
- The component, or null if not found.
 
- getFirstUIComponentpublic <COMP extends UIComp> COMP getFirstUIComponent- (String name, Class<COMP> uiClass) throws NotFoundException Gets the first UI component of the specified name and UI class. The search for the component is done from the panel root and searches all its children containers recursively.- Parameters:
- name- The name of the component.
- uiClass- The UI class of the component.
- Returns:
- The component, never null.
- Throws:
- NotFoundException- The not-found exception is thrown if the component is not found instead of returning null.
 
- getFirstUIComponentNullGets the first UI component of the specified name and UI class. The search for the component is done from the panel root and searches all its children containers recursively.- Parameters:
- name- The name of the component.
- uiClass- The UI class of the component.
- Returns:
- The component, or null if not found.
 
- getContainerFirstUIComponentpublic <COMP extends UIComp> COMP getContainerFirstUIComponent- (String name, Class<COMP> uiClass) throws NotFoundException Gets the first UI component of the specified name and UI class. The search for the component is done from this UI source. If the UI source is a plain UI component and not a UI container, the search is done from the parent UI container of the UI source. Then all children UI containers and components are searched recursively down the component tree.- Parameters:
- name- The name of the component.
- uiClass- The UI class of the component.
- Returns:
- The component, never null.
- Throws:
- NotFoundException- The not-found exception is thrown if the component is not found instead of returning null.
 
- getContainerFirstUIComponentNullpublic <COMP extends UIComp> COMP getContainerFirstUIComponentNull- (String name, Class<COMP> uiClass) Gets the first UI component of the specified name and UI class. The search for the component is done from this UI source. If the UI source is a plain UI component and not a UI container, the search is done from the parent UI container of the UI source. Then all children UI containers and components are searched recursively down the component tree.- Parameters:
- name- The name of the component.
- uiClass- The UI class of the component.
- Returns:
- The component, or null if not found.