X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fevent%2FTMenuEvent.java;h=5117846580f7c13142f955081c30dedf215ce25a;hb=615a0d99fd0aa4437116dd083147f9150d5e6527;hp=491a735c888202684843333f5e983423b3b4b9ca;hpb=7d922e0dfd9a6da42b84e01d52adeec6fff10025;p=fanfix.git diff --git a/src/jexer/event/TMenuEvent.java b/src/jexer/event/TMenuEvent.java index 491a735..5117846 100644 --- a/src/jexer/event/TMenuEvent.java +++ b/src/jexer/event/TMenuEvent.java @@ -35,19 +35,18 @@ package jexer.event; */ 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 class TMenuEvent extends TInputEvent { this.id = id; } + // ------------------------------------------------------------------------ + // TInputEvent ------------------------------------------------------------ + // ------------------------------------------------------------------------ + /** * Make human-readable description of this TMenuEvent. * @@ -67,4 +70,18 @@ public 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; + } + }