Merge commit '77d3a60869e7a780c6ae069e51530e1eacece5e2'
[fanfix.git] / src / jexer / event / TCommandEvent.java
index 749e3f7eb99e790d97b5ef32a602b825c8fe3a72..60f6385343889a74ce7d77a593ad9ae5775235f5 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"),
@@ -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;
+    }
+
 }