Class AppHistoryEntry
- All Implemented Interfaces:
- IAppHistoryEntry
It is used for backward and optionally forward navigation. The main purpose for this class is to provide information for programmatical use. The information held in this class is fed from the IAppSessionGyro instance.
- Author:
- Christopher Mindus
- Method SummaryModifier and TypeMethodDescription- booleanChecks if another history entry is equal with this one.- intGets the backward panel animation.Gets the programmatic operation for backward.Gets the UI reference to the backward focus.Gets the non-virtualized VS component for backward focus.- intGets the forward panel animation.Gets the programmatic operation for forward.Gets the UI reference to the forward focus.Gets the non-virtualized VS component for forward focus.- int- hashCode()Gets the hash code.- isBackwardEnabled- (IClientSessionGyro clientGyro) Returns if the backward operation is enabled or not.- isBackwardFocusEnabled- (IClientSessionGyro clientGyro) Returns if the focus to the backward UI component if possible, otherwise the VS component.- isForwardEnabled- (IClientSessionGyro clientGyro) Returns if the forward operation is enabled or not.- isForwardFocusEnabled- (IClientSessionGyro clientGyro) Returns if the focus to the forward UI component if possible, otherwise the VS component.- performBackward- (IClientSessionGyro clientGyro, IAppHistoryOperationCompleted completedCallback) Performs the backward operation for the client session in question.- performForward- (IClientSessionGyro clientGyro, IAppHistoryOperationCompleted completedCallback) Performs the forward operation for the client session in question.- boolean- setBackwardAnimation- (int animation) Sets the backward panel animation.- setBackwardFocus- (IClientSessionGyro clientGyro) Sets the focus to the backward UI component if possible, otherwise the VS component.- boolean- setBackwardInfo- (IAppHistoryBackward backward) Sets the backward programmatic operation to use for the entry.- boolean- setBackwardInfo- (UIComp uiComp) Sets the backward UI focus information for the entry.- boolean- setBackwardInfo- (IVSComponent vsComp) Sets the backward VirtualSpace focus information for the entry.- boolean- setForwardAnimation- (int animation) Sets the forward panel animation.- setForwardFocus- (IClientSessionGyro clientGyro) Sets the focus to the forward UI component if possible, otherwise the VS component.- boolean- setForwardInfo- (IAppHistoryForward forward) Sets the forward programmatic operation to use for the entry.- boolean- setForwardInfo- (UIComp uiComp) Sets the forward UI focus information for the entry.- boolean- setForwardInfo- (IVSComponent vsComp) Sets the forward VirtualSpace focus information for the entry.
- Method Details- setBackwardInfoSets the backward UI focus information for the entry. It is recommended to also set the VirtualSpace component too, using- setBackwardInfo(IVSComponent)- Specified by:
- setBackwardInfoin interface- IAppHistoryEntry
- Parameters:
- uiComp- The UI component, null for none.
- Returns:
- true for changed values, false for no changes.
- Throws:
- NullPointerException- If the parameter is null.
- IllegalArgumentException- If the parameter is not valid.
 
- setForwardInfoSets the forward UI focus information for the entry. It is recommended to also set the VirtualSpace component too, using- setForwardInfo(IVSComponent)- Specified by:
- setForwardInfoin interface- IAppHistoryEntry
- Parameters:
- uiComp- The UI component, null for none.
- Returns:
- true for changed values, false for no changes.
- Throws:
- NullPointerException- If the parameter is null.
- IllegalArgumentException- If the parameter is not valid.
 
- setBackwardInfoSets the backward VirtualSpace focus information for the entry.- Specified by:
- setBackwardInfoin interface- IAppHistoryEntry
- Parameters:
- vsComp- The VS component, null for none.
- Returns:
- true for changed values, false for no changes.
- Throws:
- NullPointerException- If the parameter is null.
- IllegalArgumentException- If the parameter is not valid.
 
- setForwardInfoSets the forward VirtualSpace focus information for the entry.- Specified by:
- setForwardInfoin interface- IAppHistoryEntry
- Parameters:
- vsComp- The VS component, null for none.
- Returns:
- true for changed values, false for no changes.
- Throws:
- NullPointerException- If the parameter is null.
 
- setBackwardInfoSets the backward programmatic operation to use for the entry.- Specified by:
- setBackwardInfoin interface- IAppHistoryEntry
- Parameters:
- backward- The instance of the backward operation to use or null for none.
- Returns:
- true for changed values, false for no changes.
 
- setForwardInfoSets the forward programmatic operation to use for the entry.- Specified by:
- setForwardInfoin interface- IAppHistoryEntry
- Parameters:
- forward- The instance of the backward operation to use or null for none.
- Returns:
- true for changed values, false for no changes.
 
- setBackwardAnimationpublic boolean setBackwardAnimation- (int animation) Sets the backward panel animation.- Specified by:
- setBackwardAnimationin interface- IAppHistoryEntry
- Parameters:
- animation- The animation value, or -1 for none.
- Returns:
- true if value changed, false for no change.
- Throws:
- IllegalArgumentException- If the animation value is not acceptable, i.e. is not a value that comes from the- IUIPanelAnimation
 
- setForwardAnimationpublic boolean setForwardAnimation- (int animation) Sets the forward panel animation.- Specified by:
- setForwardAnimationin interface- IAppHistoryEntry
- Parameters:
- animation- The animation value, or -1 for none.
- Returns:
- true if value changed, false for no change.
- Throws:
- IllegalArgumentException- If the animation value is not acceptable, i.e. is not a value that comes from the- IUIPanelAnimation
 
- getBackwardUIFocusGets the UI reference to the backward focus.- Specified by:
- getBackwardUIFocusin interface- IAppHistoryEntry
- Returns:
- The property reference for the backward UI focus, null for none.
 
- getForwardUIFocusGets the UI reference to the forward focus.- Specified by:
- getForwardUIFocusin interface- IAppHistoryEntry
- Returns:
- The property reference for the forward UI focus, null for none.
 
- getBackwardVSFocusGets the non-virtualized VS component for backward focus.- Specified by:
- getBackwardVSFocusin interface- IAppHistoryEntry
- Returns:
- The non-virtualized VS component for backward focus, null for none.
 
- getForwardVSFocusGets the non-virtualized VS component for forward focus.- Specified by:
- getForwardVSFocusin interface- IAppHistoryEntry
- Returns:
- The non-virtualized VS component for forward focus, null for none.
 
- getBackwardOperationGets the programmatic operation for backward.- Specified by:
- getBackwardOperationin interface- IAppHistoryEntry
- Returns:
- The interface instance, null for none.
 
- getForwardOperationGets the programmatic operation for forward.- Specified by:
- getForwardOperationin interface- IAppHistoryEntry
- Returns:
- The interface instance, null for none.
 
- getBackwardAnimationpublic int getBackwardAnimation()Gets the backward panel animation.- Specified by:
- getBackwardAnimationin interface- IAppHistoryEntry
- Returns:
- The panel animation, or -1 for none.
 
- getForwardAnimationpublic int getForwardAnimation()Gets the forward panel animation.- Specified by:
- getForwardAnimationin interface- IAppHistoryEntry
- Returns:
- The panel animation, or -1 for none.
 
- isBackwardEnabledReturns if the backward operation is enabled or not.- If a - null Stringis returned, the operation is enabled, otherwise the string is the reason why to operation is disabled. This reason is used typically for developers, logging and debugging.- Specified by:
- isBackwardEnabledin interface- IAppHistoryEntry
- Parameters:
- clientGyro- The client session requesting the backward operation enabled state.
- Returns:
- Default nullmeaning enabled, otherwise the reason string for being disabled.
 
- isForwardEnabledReturns if the forward operation is enabled or not.- If a - null Stringis returned, the operation is enabled, otherwise the string is the reason why to operation is disabled. This reason is used typically for developers, logging and debugging.- Specified by:
- isForwardEnabledin interface- IAppHistoryEntry
- Parameters:
- clientGyro- The client session requesting the forward operation enabled state.
- Returns:
- Default nullmeaning enabled, otherwise the reason string for being disabled.
 
- performBackwardpublic String performBackward- (IClientSessionGyro clientGyro, IAppHistoryOperationCompleted completedCallback) Performs the backward operation for the client session in question.- Note: this operation may be lengthy and may not complete in the same thread. This means that the - completedCallbackcould be called from another thread.- Specified by:
- performBackwardin interface- IAppHistoryEntry
- Parameters:
- clientGyro- The client session requesting the backward operation execution.
- completedCallback- The callback is called when operation has completed, null for none.
- Returns:
- Default nullmeaning enabled and the operation has begun (perhaps not completed yet), otherwise the reason string for being disabled.
 
- performForwardpublic String performForward- (IClientSessionGyro clientGyro, IAppHistoryOperationCompleted completedCallback) Performs the forward operation for the client session in question.- Note: this operation may be lengthy and may not complete in the same thread. This means that the - completedCallbackcould be called from another thread.- Specified by:
- performForwardin interface- IAppHistoryEntry
- Parameters:
- clientGyro- The client session requesting the forward operation execution.
- completedCallback- The callback is called when operation has completed, null for none.
- Returns:
- Default nullmeaning enabled and the operation has begun (perhaps not completed yet), otherwise the reason string for being disabled.
 
- isBackwardFocusEnabledReturns if the focus to the backward UI component if possible, otherwise the VS component. This method is intended to be used for programmatic history operation that also includes a focus part that requires a call to- setBackwardFocus(IClientSessionGyro)- IAppHistoryBackward.isBackwardEnabled(IAppHistoryEntry, IClientSessionGyro)- Specified by:
- isBackwardFocusEnabledin interface- IAppHistoryEntry
- Parameters:
- clientGyro- The client session requesting the forward operation execution.
- Returns:
- Failure string, i.e. null for success, otherwise an error message.
 
- isForwardFocusEnabledReturns if the focus to the forward UI component if possible, otherwise the VS component. This method is intended to be used for programmatic history operation that also includes a focus part that requires a call to- setForwardFocus(IClientSessionGyro)- IAppHistoryForward.isForwardEnabled(IAppHistoryEntry, IClientSessionGyro)- Specified by:
- isForwardFocusEnabledin interface- IAppHistoryEntry
- Parameters:
- clientGyro- The client session requesting the forward operation execution.
- Returns:
- Failure string, i.e. null for success, otherwise an error message.
 
- setBackwardFocusSets the focus to the backward UI component if possible, otherwise the VS component.- Focus is set as: - If the UI component is defined, the currently open panels will be used to verify if this reference matches, and if so, that component will be focused. If it didn't match, or in case the request focus operation failed, the UI component will not be used for focusing, rather step 2 below.
- If the VS component is specified, it will be used to set the focus, and perhaps virtualized a VirtualSpace and/or panel(s).
 - This method is intended to be used if the programmatic operations instance needs to set the focus from the data saved in this history entry. - Specified by:
- setBackwardFocusin interface- IAppHistoryEntry
- Parameters:
- clientGyro- The client session requesting the forward operation execution.
- Returns:
- Failure string, i.e. null for success, otherwise an error message.
 
- setForwardFocusSets the focus to the forward UI component if possible, otherwise the VS component.- Focus is set as: - If the UI component is defined, the currently open panels will be used to verify if this reference matches, and if so, that component will be focused. If it didn't match, or in case the request focus operation failed, the UI component will not be used for focusing, rather step 2 below.
- If the VS component is specified, it will be used to set the focus, and perhaps virtualized a VirtualSpace and/or panel(s).
 - This method is intended to be used if the programmatic operations instance needs to set the focus from the data saved in this history entry. - Specified by:
- setForwardFocusin interface- IAppHistoryEntry
- Parameters:
- clientGyro- The client session requesting the forward operation execution.
- Returns:
- Failure string, i.e. null for success, otherwise an error message.
 
- equalsChecks if another history entry is equal with this one.
- hashCodepublic int hashCode()Gets the hash code.