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 Detail

      • UIValueChangeEvent

        public UIValueChangeEvent​(UIComp source)
        Constructs the event for a value change without a trigger source.
        Parameters:
        source - The source.
        Throws:
        java.lang.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 Detail

      • 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.