Merge commit '77d3a60869e7a780c6ae069e51530e1eacece5e2'
[fanfix.git] / src / jexer / event / TMenuEvent.java
index ea75e40685bb4b2cc4817e133991ee9e5c588fde..e2ff7c74b6a1125a19e91e15685f9f5b3b408452 100644 (file)
@@ -3,7 +3,7 @@
  *
  * The MIT License (MIT)
  *
- * Copyright (C) 2017 Kevin Lamonte
+ * Copyright (C) 2019 Kevin Lamonte
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -33,21 +33,20 @@ package jexer.event;
  * TApplication.getMenuItem(id) can be used to obtain the TMenuItem itself,
  * say for setting enabled/disabled/checked/etc.
  */
-public final class TMenuEvent extends TInputEvent {
+public class TMenuEvent extends TInputEvent {
+
+    // ------------------------------------------------------------------------
+    // Variables --------------------------------------------------------------
+    // ------------------------------------------------------------------------
 
     /**
      * MenuItem ID.
      */
     private int id;
 
-    /**
-     * Get the MenuItem ID.
-     *
-     * @return the ID
-     */
-    public int getId() {
-        return id;
-    }
+    // ------------------------------------------------------------------------
+    // Constructors -----------------------------------------------------------
+    // ------------------------------------------------------------------------
 
     /**
      * Public contructor.
@@ -58,6 +57,10 @@ public final class TMenuEvent extends TInputEvent {
         this.id = id;
     }
 
+    // ------------------------------------------------------------------------
+    // TInputEvent ------------------------------------------------------------
+    // ------------------------------------------------------------------------
+
     /**
      * Make human-readable description of this TMenuEvent.
      *
@@ -67,4 +70,18 @@ public final class TMenuEvent extends TInputEvent {
     public String toString() {
         return String.format("MenuEvent: %d", id);
     }
+
+    // ------------------------------------------------------------------------
+    // TMenuEvent -------------------------------------------------------------
+    // ------------------------------------------------------------------------
+
+    /**
+     * Get the MenuItem ID.
+     *
+     * @return the ID
+     */
+    public int getId() {
+        return id;
+    }
+
 }