Package jexer.event
Class TMenuEvent
- java.lang.Object
-
- jexer.event.TInputEvent
-
- jexer.event.TMenuEvent
-
public class TMenuEvent extends TInputEvent
This class encapsulates a menu selection event. TApplication.getMenuItem(id) can be used to obtain the TMenuItem itself, say for setting enabled/disabled/checked/etc.
-
-
Constructor Summary
Constructors Constructor Description TMenuEvent(Backend backend, int id)
Public contructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getId()
Get the MenuItem ID.java.lang.String
toString()
Make human-readable description of this TMenuEvent.-
Methods inherited from class jexer.event.TInputEvent
getBackend, getTime
-
-
-
-
Constructor Detail
-
TMenuEvent
public TMenuEvent(Backend backend, int id)
Public contructor.- Parameters:
backend
- the backend that generated this eventid
- the MenuItem ID
-
-