immutable TKeypressEvent
[fanfix.git] / src / jexer / event / TCommandEvent.java
index 09304d3b5a3d27e6e5d08bf77f83b7a18ffd7e9d..cdb5e2d6a70140232fa006d9fc59d0ac15588f37 100644 (file)
@@ -37,7 +37,7 @@ import jexer.TCommand;
  * generated by menu actions, keyboard accelerators, and other UI elements.
  * Commands can operate on both the application and individual widgets.
  */
-public class TCommandEvent extends TInputEvent {
+public final class TCommandEvent extends TInputEvent {
 
     /**
      * Command dispatched.
@@ -49,7 +49,7 @@ public class TCommandEvent extends TInputEvent {
      *
      * @return the TCommand
      */
-    public final TCommand getCmd() {
+    public TCommand getCmd() {
         return cmd;
     }
 
@@ -68,7 +68,7 @@ public class TCommandEvent extends TInputEvent {
      * @return displayable String
      */
     @Override
-    public final String toString() {
+    public String toString() {
         return String.format("CommandEvent: %s", cmd.toString());
     }
 }