X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fevent%2FTCommandEvent.java;h=60f6385343889a74ce7d77a593ad9ae5775235f5;hb=505be508ae7d3fb48122be548b310a238cfb91eb;hp=749e3f7eb99e790d97b5ef32a602b825c8fe3a72;hpb=051e29138b18fb4b731a72f8727475b10e4c74e4;p=fanfix.git diff --git a/src/jexer/event/TCommandEvent.java b/src/jexer/event/TCommandEvent.java index 749e3f7..60f6385 100644 --- a/src/jexer/event/TCommandEvent.java +++ b/src/jexer/event/TCommandEvent.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"), @@ -37,19 +37,18 @@ import jexer.TCommand; */ public class TCommandEvent extends TInputEvent { + // ------------------------------------------------------------------------ + // Variables -------------------------------------------------------------- + // ------------------------------------------------------------------------ + /** * Command dispatched. */ private TCommand cmd; - /** - * Get TCommand. - * - * @return the TCommand - */ - public TCommand getCmd() { - return cmd; - } + // ------------------------------------------------------------------------ + // Constructors ----------------------------------------------------------- + // ------------------------------------------------------------------------ /** * Public contructor. @@ -60,6 +59,10 @@ public class TCommandEvent extends TInputEvent { this.cmd = cmd; } + // ------------------------------------------------------------------------ + // TInputEvent ------------------------------------------------------------ + // ------------------------------------------------------------------------ + /** * Comparison check. All fields must match to return true. * @@ -108,4 +111,18 @@ public class TCommandEvent extends TInputEvent { public String toString() { return String.format("CommandEvent: %s", cmd.toString()); } + + // ------------------------------------------------------------------------ + // TCommandEvent ---------------------------------------------------------- + // ------------------------------------------------------------------------ + + /** + * Get TCommand. + * + * @return the TCommand + */ + public TCommand getCmd() { + return cmd; + } + }