make Windows look like X11, why does this work
[fanfix.git] / src / jexer / session / TSessionInfo.java
CommitLineData
df8de03f
KL
1/**
2 * Jexer - Java Text User Interface
3 *
df8de03f
KL
4 * License: LGPLv3 or later
5 *
7b5261bc
KL
6 * This module is licensed under the GNU Lesser General Public License
7 * Version 3. Please see the file "COPYING" in this directory for more
8 * information about the GNU Lesser General Public License Version 3.
df8de03f
KL
9 *
10 * Copyright (C) 2015 Kevin Lamonte
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public License
14 * as published by the Free Software Foundation; either version 3 of
15 * the License, or (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this program; if not, see
24 * http://www.gnu.org/licenses/, or write to the Free Software
25 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
26 * 02110-1301 USA
7b5261bc
KL
27 *
28 * @author Kevin Lamonte [kevin.lamonte@gmail.com]
29 * @version 1
df8de03f
KL
30 */
31package jexer.session;
32
33/**
34 * TSessionInfo provides a default session implementation. The username is
35 * blank, language is "en_US", with a 80x24 text window.
36 */
7b5261bc 37public final class TSessionInfo implements SessionInfo {
df8de03f
KL
38
39 /**
7b5261bc 40 * User name.
df8de03f
KL
41 */
42 private String username = "";
43
44 /**
7b5261bc 45 * Language.
df8de03f
KL
46 */
47 private String language = "en_US";
48
49 /**
7b5261bc 50 * Text window width.
df8de03f
KL
51 */
52 private int windowWidth = 80;
53
54 /**
7b5261bc 55 * Text window height.
df8de03f
KL
56 */
57 private int windowHeight = 24;
58
59 /**
7b5261bc 60 * Username getter.
df8de03f
KL
61 *
62 * @return the username
63 */
64 public String getUsername() {
7b5261bc 65 return this.username;
df8de03f
KL
66 }
67
68 /**
7b5261bc 69 * Username setter.
df8de03f
KL
70 *
71 * @param username the value
72 */
7b5261bc
KL
73 public void setUsername(final String username) {
74 this.username = username;
df8de03f
KL
75 }
76
77 /**
7b5261bc 78 * Language getter.
df8de03f
KL
79 *
80 * @return the language
81 */
82 public String getLanguage() {
7b5261bc 83 return this.language;
df8de03f
KL
84 }
85
86 /**
7b5261bc 87 * Language setter.
df8de03f
KL
88 *
89 * @param language the value
90 */
7b5261bc
KL
91 public void setLanguage(final String language) {
92 this.language = language;
df8de03f
KL
93 }
94
95 /**
7b5261bc 96 * Text window width getter.
c8496dac
KL
97 *
98 * @return the window width
df8de03f
KL
99 */
100 public int getWindowWidth() {
7b5261bc 101 return windowWidth;
df8de03f
KL
102 }
103
104 /**
7b5261bc 105 * Text window height getter.
c8496dac
KL
106 *
107 * @return the window height
df8de03f
KL
108 */
109 public int getWindowHeight() {
7b5261bc 110 return windowHeight;
df8de03f 111 }
c8496dac
KL
112
113 /**
7b5261bc 114 * Re-query the text window size.
c8496dac
KL
115 */
116 public void queryWindowSize() {
7b5261bc 117 // NOP
c8496dac
KL
118 }
119
df8de03f 120}