Merge commit '77d3a60869e7a780c6ae069e51530e1eacece5e2'
[fanfix.git] / src / jexer / backend / TSessionInfo.java
index bc32175398ddc8c77d91a08deb4c7824710baa30..ccddce4c9ecc87059b4b7999e5d32af2e85db12e 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"),
@@ -32,7 +32,11 @@ package jexer.backend;
  * TSessionInfo provides a default session implementation.  The username is
  * blank, language is "en_US", with a 80x24 text window.
  */
-public final class TSessionInfo implements SessionInfo {
+public class TSessionInfo implements SessionInfo {
+
+    // ------------------------------------------------------------------------
+    // Variables --------------------------------------------------------------
+    // ------------------------------------------------------------------------
 
     /**
      * User name.
@@ -54,6 +58,32 @@ public final class TSessionInfo implements SessionInfo {
      */
     private int windowHeight = 24;
 
+    // ------------------------------------------------------------------------
+    // Constructors -----------------------------------------------------------
+    // ------------------------------------------------------------------------
+
+    /**
+     * Public constructor.
+     */
+    public TSessionInfo() {
+        this(80, 24);
+    }
+
+    /**
+     * Public constructor.
+     *
+     * @param width the number of columns
+     * @param height the number of rows
+     */
+    public TSessionInfo(final int width, final int height) {
+        this.windowWidth        = width;
+        this.windowHeight       = height;
+    }
+
+    // ------------------------------------------------------------------------
+    // SessionInfo ------------------------------------------------------------
+    // ------------------------------------------------------------------------
+
     /**
      * Username getter.
      *
@@ -115,22 +145,4 @@ public final class TSessionInfo implements SessionInfo {
         // NOP
     }
 
-    /**
-     * Public constructor.
-     */
-    public TSessionInfo() {
-        this(80, 24);
-    }
-
-    /**
-     * Public constructor.
-     *
-     * @param width the number of columns
-     * @param height the number of rows
-     */
-    public TSessionInfo(final int width, final int height) {
-        this.windowWidth        = width;
-        this.windowHeight       = height;
-    }
-
 }