Class WidgetTransition<E,​T>


  • public abstract class WidgetTransition<E,​T>
    extends Transition<E>
    This transition must be used to use a widget within an interaction.
    Author:
    Arnaud BLOUIN
    • Field Detail

      • widget

        protected T widget
        The pressed button.
    • Constructor Detail

      • WidgetTransition

        public WidgetTransition​(OutputState<E> srcState,
                                InputState<E> tgtState)
        Creates the transition.
        Parameters:
        srcState - The source state of the transition.
        tgtState - The output state of the transition.
        Throws:
        IllegalArgumentException - If one of the states is null.
    • Method Detail

      • getWidget

        public T getWidget()
        Returns:
        The widget used.
      • setWidget

        public void setWidget​(T widget)
        Sets the widget.
        Parameters:
        widget - The widget to set. Nothing done if null.