Merge branch 'master' of https://github.com/klamonte/jexer
[fanfix.git] / src / jexer / event / TMenuEvent.java
index 0cdca0ea31543d5f42a5712c4b2d549b83f15336..45c6b8aa9c98d438db037e193e71f70faeea7c2e 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Jexer - Java Text User Interface
  *
  * License: LGPLv3 or later
@@ -35,19 +35,19 @@ package jexer.event;
  * TApplication.getMenuItem(id) can be used to obtain the TMenuItem itself,
  * say for setting enabled/disabled/checked/etc.
  */
-public class TMenuEvent extends TInputEvent {
+public final class TMenuEvent extends TInputEvent {
 
     /**
      * MenuItem ID.
      */
-    private short id;
+    private int id;
 
     /**
      * Get the MenuItem ID.
      *
      * @return the ID
      */
-    public final short getId() {
+    public int getId() {
         return id;
     }
 
@@ -56,7 +56,7 @@ public class TMenuEvent extends TInputEvent {
      *
      * @param id the MenuItem ID
      */
-    public TMenuEvent(final short id) {
+    public TMenuEvent(final int id) {
         this.id = id;
     }
 
@@ -66,7 +66,7 @@ public class TMenuEvent extends TInputEvent {
      * @return displayable String
      */
     @Override
-    public final String toString() {
+    public String toString() {
         return String.format("MenuEvent: %d", id);
     }
 }