Class UIValueChangeEvent

All Implemented Interfaces:
IMessageBox

public class UIValueChangeEvent extends UIBaseEvent<UIComp>
The UI Value Change Event is fired when the UI value changes for a component, or when connected to the panel, for every child item in it.
Author:
Christopher Mindus
  • Constructor Details

    • UIValueChangeEvent

      public UIValueChangeEvent(UIComp source)
      Constructs the event for a value change without a trigger source.
      Parameters:
      source - The source.
      Throws:
      NullPointerException - If the source is null.
    • UIValueChangeEvent

      public UIValueChangeEvent(UIComp source, GProp<?> trigger)
      Constructs the event for a value change event with a property being the trigger source, e.g. an UISpinner or UISlider or a VS component.
      Parameters:
      source - The source.
      trigger - The trigger property.
  • Method Details

    • getTrigger

      public GProp<?> getTrigger()
      Gets the trigger property being the source of the event.
      Returns:
      The triggering property or null if the trigger is not a property.
    • getSource

      public UIComp getSource()
      Gets the UI component that is the source of the event, i.e. the item who's value was changed.
      Overrides:
      getSource in class BaseEvent<UIComp>
      Returns:
      The UIComp that caused the value event.
    • paramString

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