Class UITextChangeEvent

  • All Implemented Interfaces:
    IMessageBox

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

      • UITextChangeEvent

        public UITextChangeEvent​(UIComp source)
        Constructs the event for a text change without a trigger source.
        Parameters:
        source - The source.
        Throws:
        java.lang.NullPointerException - If the source is null.
      • UITextChangeEvent

        public UITextChangeEvent​(UIComp source,
                                 GProp<?> trigger)
        Constructs the event for a text change event with a property being the trigger source, e.g. an UIButton or UICheckBox.
        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 text was changed.
        Overrides:
        getSource in class BaseEvent<UIComp>
        Returns:
        The UIComp that caused the text event.