Package com.iizix.api.vs
Interface IVSFocusHandler
public interface IVSFocusHandler
An interface used for advanced processing of focus mappings when the standard engines cannot be used. Typically, it is used to map VirtualSpace to the UI or vice versa. This class is instantiated when the VirtualSpace is virtualized for each application session.
- Author:
- Christopher Mindus
- Field SummaryFieldsModifier and TypeFieldDescription- static final intThe engine by plug-in name, e.g.- static final intThe engine: UI.- static final intThe engine: VirtualSpace.- static final IFocusCompThe focus component to return when no change of focus is requested.
- Method SummaryModifier and TypeMethodDescription- processFocusMapping- (IAppSessionGyro appGyro, IClientSessionGyro clientGyro, int destination, IFocusComp focusComp, int source, IFocusComp currentFocus) Called to return the component to focus.
- Field Details- ENGINE_NAMEstatic final int ENGINE_NAMEThe engine by plug-in name, e.g. "com.iizix.term" for Terminal.- See Also:
 
- ENGINE_VSstatic final int ENGINE_VSThe engine: VirtualSpace.- See Also:
 
- ENGINE_UIstatic final int ENGINE_UIThe engine: UI.- See Also:
 
- NO_CHANGEThe focus component to return when no change of focus is requested.
 
- Method Details- processFocusMappingIFocusComp processFocusMapping- (IAppSessionGyro appGyro, IClientSessionGyro clientGyro, int destination, IFocusComp focusComp, int source, IFocusComp currentFocus) Called to return the component to focus.- Return - nullto let the default focus engines handle the mapping,- NO_CHANGE- Return value is an instance of a - IFocusComp- Any destination:nullfor default mapping engine processing,
- destinationis- ENGINE_UI
 an instance of a- UIComp- IUIFocusComp
- destinationis- ENGINE_VS
 an instance of a- IVSComponent- VirtualSpace- VSField- VSAction- VSTable- VSGroup
 - Parameters:
- appGyro- The application session gyro.
- clientGyro- The client session gyro when it applies (could be- nullfor e.g. Terminal).
- destination- The destination component type requested.
- focusComp- The component that received focus.
- source- The source component type provided in- focusComp.
- currentFocus- The current focus component, null for none.
- Returns:
- The component to focus of the destination type, nullfor default processing, orNO_CHANGE
 
- Any