Package jexer
Class TAction
- java.lang.Object
-
- jexer.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
-
-
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.
-
-
-
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.
-
-
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 widgetdata
- the data
-
DO
public abstract void DO()
Various classes will call DO() when they are clicked/selected.
-
-