Package jexer

Class TAction


  • public abstract class TAction
    extends java.lang.Object
    A TAction represents a simple action to perform in response to the user.
    See Also:
    TButton
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Object data
      An optional bit of data associated with this action.
      TWidget source
      The widget that called this action's DO() method.
    • Constructor Summary

      Constructors 
      Constructor Description
      TAction()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract void DO()
      Various classes will call DO() when they are clicked/selected.
      void DO​(TWidget source)
      Call DO() with source widget set.
      void DO​(TWidget source, java.lang.Object data)
      Call DO() with source widget and data set.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • source

        public TWidget source
        The widget that called this action's DO() method. Note that this field could be null, for example if executed as a timer action.
      • data

        public java.lang.Object data
        An optional bit of data associated with this action.
    • Constructor Detail

      • TAction

        public TAction()
    • Method Detail

      • DO

        public final void DO​(TWidget source)
        Call DO() with source widget set.
        Parameters:
        source - the source widget
      • DO

        public final void DO​(TWidget source,
                             java.lang.Object data)
        Call DO() with source widget and data set.
        Parameters:
        source - the source widget
        data - the data
      • DO

        public abstract void DO()
        Various classes will call DO() when they are clicked/selected.