X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fevent%2FTMenuEvent.java;h=e2ff7c74b6a1125a19e91e15685f9f5b3b408452;hb=12b90437b5f22c2ae6e9b9b14c3b62b60f6143e5;hp=491a735c888202684843333f5e983423b3b4b9ca;hpb=051e29138b18fb4b731a72f8727475b10e4c74e4;p=fanfix.git diff --git a/src/jexer/event/TMenuEvent.java b/src/jexer/event/TMenuEvent.java index 491a735..e2ff7c7 100644 --- a/src/jexer/event/TMenuEvent.java +++ b/src/jexer/event/TMenuEvent.java @@ -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"), @@ -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; + } + }