X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fevent%2FTMenuEvent.java;h=5117846580f7c13142f955081c30dedf215ce25a;hb=615a0d99fd0aa4437116dd083147f9150d5e6527;hp=ea75e40685bb4b2cc4817e133991ee9e5c588fde;hpb=a2018e9964f6c58742cd1e6dd0a0c63e244a89d6;p=nikiroo-utils.git diff --git a/src/jexer/event/TMenuEvent.java b/src/jexer/event/TMenuEvent.java index ea75e40..5117846 100644 --- a/src/jexer/event/TMenuEvent.java +++ b/src/jexer/event/TMenuEvent.java @@ -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; + } + }