Package jexer

Class TCommand


  • public class TCommand
    extends java.lang.Object
    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.
    • Constructor Detail

      • TCommand

        public TCommand​(int type)
        Public constructor.
        Parameters:
        type - the Type of command, one of EXIT, CASCADE, etc.
    • Method Detail

      • toString

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

        public final 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 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