PMD code sweep, #6 don't add MyWindow twice to MyApplication
[fanfix.git] / src / jexer / TLabel.java
index d5bb24cd3f180f2fe5985f6dce80ef56c4aff6c5..2eeea915793e0568db485f82cccc89efb9f2ae8a 100644 (file)
@@ -35,34 +35,24 @@ import jexer.bits.CellAttributes;
  */
 public final class TLabel extends TWidget {
 
+    // ------------------------------------------------------------------------
+    // Variables --------------------------------------------------------------
+    // ------------------------------------------------------------------------
+
     /**
      * Label text.
      */
     private String label = "";
 
-    /**
-     * Get label text.
-     *
-     * @return label text
-     */
-    public String getLabel() {
-        return label;
-    }
-
-    /**
-     * Set label text.
-     *
-     * @param label new label text
-     */
-    public void setLabel(final String label) {
-        this.label = label;
-    }
-
     /**
      * Label color.
      */
     private String colorKey;
 
+    // ------------------------------------------------------------------------
+    // Constructors -----------------------------------------------------------
+    // ------------------------------------------------------------------------
+
     /**
      * Public constructor, using the default "tlabel" for colorKey.
      *
@@ -96,6 +86,10 @@ public final class TLabel extends TWidget {
         this.colorKey = colorKey;
     }
 
+    // ------------------------------------------------------------------------
+    // TWidget ----------------------------------------------------------------
+    // ------------------------------------------------------------------------
+
     /**
      * Draw a static label.
      */
@@ -110,4 +104,26 @@ public final class TLabel extends TWidget {
         getScreen().putStringXY(0, 0, label, color);
     }
 
+    // ------------------------------------------------------------------------
+    // TLabel -----------------------------------------------------------------
+    // ------------------------------------------------------------------------
+
+    /**
+     * Get label text.
+     *
+     * @return label text
+     */
+    public String getLabel() {
+        return label;
+    }
+
+    /**
+     * Set label text.
+     *
+     * @param label new label text
+     */
+    public void setLabel(final String label) {
+        this.label = label;
+    }
+
 }