Package jexer.event
Class TCommandEvent
- java.lang.Object
-
- jexer.event.TInputEvent
-
- jexer.event.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.
-
-
Constructor Summary
Constructors Constructor Description TCommandEvent(Backend backend, TCommand cmd)
Public contructor.
-
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 jexer.event.TInputEvent
getBackend, getTime
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object rhs)
Comparison check. All fields must match to return true.- Overrides:
equals
in classjava.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 classjava.lang.Object
- Returns:
- the hash
-
toString
public java.lang.String toString()
Make human-readable description of this TCommandEvent.- Overrides:
toString
in classjava.lang.Object
- Returns:
- displayable String
-
getCmd
public TCommand getCmd()
Get TCommand.- Returns:
- the TCommand
-
-