Package com.iizix.prop.vs
Class VSActionAdapter
- java.lang.Object
- com.iizix.prop.vs.VSActionAdapter
 
- All Implemented Interfaces:
- IVSActionListener,- IVSComponentListener,- IVSComponentState
 - public class VSActionAdapter extends java.lang.Object implements IVSActionListener Adapter for interface used to listen to VS action events.- Author:
- Christopher Mindus
 
- Nested Class Summary- Nested classes/interfaces inherited from interface com.iizix.prop.vs.IVSComponentState- IVSComponentState.State
 
 - Constructor Summary- Constructors - Constructor - Description - VSActionAdapter()
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - void- onActionCompleted(VSAction action, VSActionTXProcess process, java.lang.Throwable exception)Called after the action completes the TXP processing i.e.- void- onActionInvoked(VSAction action, VSActionTXProcess process)Called before the action invokes the Action Actors.- void- onBroken(VSRelativeReference<?> reference, VSAction action)Called when the property reference has been broken, i.e.- void- onParentStateChanged(IVSComponent parent, IVSComponentState.State state, boolean on)Called when the column changes state.- void- onResolved(VSRelativeReference<?> reference, VSAction action)Called when the property reference has been resolved.- void- onStateChanged(VSAction action, IVSComponentState.State state, boolean on)Called when the field changes state.
 
- Method Detail- onResolved- public void onResolved(VSRelativeReference<?> reference, VSAction action) Called when the property reference has been resolved. UI components use this method to set its state according to the field.- Specified by:
- onResolvedin interface- IVSActionListener
- Parameters:
- reference- The VSRelativeReference instance holding the reference.
- action- The target reference.
 
 - onBroken- public void onBroken(VSRelativeReference<?> reference, VSAction action) Called when the property reference has been broken, i.e. unresolved.- Specified by:
- onBrokenin interface- IVSActionListener
- Parameters:
- reference- The VSRelativeReference instance holding the reference.
- action- The target reference.
 
 - onStateChanged- public void onStateChanged(VSAction action, IVSComponentState.State state, boolean on) Called when the field changes state.- Specified by:
- onStateChangedin interface- IVSActionListener
- Parameters:
- action- The VS action.
- state- The state change.
- on- New state.
 
 - onParentStateChanged- public void onParentStateChanged(IVSComponent parent, IVSComponentState.State state, boolean on) Called when the column changes state.- Specified by:
- onParentStateChangedin interface- IVSComponentListener
- Parameters:
- parent- The parent who's state was changed.
- state- The state change, possible values PARENT_ENABLED, PARENT_READONLY, PARENT_VISIBLE.
- on- New state.
 
 - onActionInvoked- public void onActionInvoked(VSAction action, VSActionTXProcess process) Called before the action invokes the Action Actors.- This method is called in the execution trigger thread. - Specified by:
- onActionInvokedin interface- IVSActionListener
- Parameters:
- action- The VS action.
- process- The initialized process.
 
 - onActionCompleted- public void onActionCompleted(VSAction action, VSActionTXProcess process, java.lang.Throwable exception) Called after the action completes the TXP processing i.e. all its Action Actor calls. This method is called regardless of success or failures. It can be used to check the state of the process.- This method is called from the thread that executed the TX action process. - Specified by:
- onActionCompletedin interface- IVSActionListener
- Parameters:
- action- The VS action.
- process- The completed process.
- exception- Potential exception in TX process, null for none.