Interface IVSActionListener

All Superinterfaces:
IVSComponentListener, IVSComponentState
All Known Subinterfaces:
IVSActionLinkEnabler, IVSActionListenerAsActor
All Known Implementing Classes:
AbstractUIAction, ActionsPanel, EditorScreenActionProp, EMLItemProp, EUIButton, EUIImage, EUIMenuItem, MLItemProp, ScreenActionProp, UIButton, UIImage, UIMenuItem, VSActionAdapter

public interface IVSActionListener extends IVSComponentListener
Interface used to listen to VS action events.
Author:
Christopher Mindus
  • Method Details

    • onResolved

      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.
      Parameters:
      reference - The VSRelativeReference instance holding the reference.
      action - The target reference.
    • onBroken

      void onBroken(VSRelativeReference<?> reference, VSAction action)
      Called when the property reference has been broken, i.e. unresolved.
      Parameters:
      reference - The VSRelativeReference instance holding the reference.
      action - The target reference.
    • onStateChanged

      void onStateChanged(VSAction action, IVSComponentState.State state, boolean on)
      Called when the field changes state.
      Parameters:
      action - The VS action.
      state - The state change.
      on - New state.
    • onActionInvoked

      void onActionInvoked(VSAction action, VSActionTXProcess process)
      Called before the action invokes the Action Actors.

      This method is called in the execution trigger thread.

      Parameters:
      action - The VS action.
      process - The initialized process.
    • onActionCompleted

      void onActionCompleted(VSAction action, VSActionTXProcess process, 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.

      Parameters:
      action - The VS action.
      process - The completed process.
      exception - Potential exception in TX process, null for none.