Package jexer.event

Class 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TMenuEvent

        public TMenuEvent​(Backend backend,
                          int id)
        Public contructor.
        Parameters:
        backend - the backend that generated this event
        id - the MenuItem ID
    • Method Detail

      • toString

        public java.lang.String toString()
        Make human-readable description of this TMenuEvent.
        Overrides:
        toString in class java.lang.Object
        Returns:
        displayable String
      • getId

        public int getId()
        Get the MenuItem ID.
        Returns:
        the ID