Package jexer.event

Class TCommandEvent


  • public class TCommandEvent
    extends TInputEvent
    This class encapsulates a user command event. User commands can be generated by menu actions, keyboard accelerators, and other UI elements. Commands can operate on both the application and individual widgets.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object rhs)
      Comparison check.
      TCommand getCmd()
      Get TCommand.
      int hashCode()
      Hashcode uses all fields in equals().
      java.lang.String toString()
      Make human-readable description of this TCommandEvent.
      • Methods inherited from class java.lang.Object

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

      • TCommandEvent

        public TCommandEvent​(Backend backend,
                             TCommand cmd)
        Public contructor.
        Parameters:
        backend - the backend that generated this event
        cmd - the TCommand dispatched
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object rhs)
        Comparison check. All fields must match to return true.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        rhs - another TCommandEvent or TCommand instance
        Returns:
        true if all fields are equal
      • hashCode

        public int hashCode()
        Hashcode uses all fields in equals().
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash
      • toString

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

        public TCommand getCmd()
        Get TCommand.
        Returns:
        the TCommand