Class VSActionEvent

All Implemented Interfaces:
IMessageBox

public class VSActionEvent extends VSBaseEventWithTrigger<VSAction>
The VirtualSpace Action Event.
Author:
Christopher Mindus
  • Constructor Details

    • VSActionEvent

      public VSActionEvent(VSAction source, GProp<?> trigger, UIComp contextComponent)
      Constructs the event for an action with a property being the trigger source, e.g. an UIButton or UICheckBox.
      Parameters:
      source - The action.
      trigger - The trigger property.
      contextComponent - The context component causing the event, used for context menus.
  • Method Details

    • getSource

      public VSAction getSource()
      Gets the VirtualSpace Action that is the source of the event.
      Overrides:
      getSource in class BaseEvent<VSAction>
      Returns:
      The source VSAction instance.
    • getContextComponent

      public UIComp getContextComponent()
      The context UI component that caused the event, when the event is generated from a context menu.
      Returns:
      The UI component, null if not originating from a context menu.
    • paramString

      protected String paramString()
      Gets the parameter string.
      Overrides:
      paramString in class VSBaseEventWithTrigger<VSAction>