|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.claudio.trainer.Settings
public abstract class Settings
Store settings which should be preserved over invocations.
Copyright (C) 2006-2008 Claudio Nieder <private@claudio.ch>, CH-8610 Uster
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Constructor Summary | |
---|---|
Settings()
|
Method Summary | |
---|---|
static java.lang.String |
getAddwordLanguage()
Return the AddWords language code. |
static java.lang.String |
getLanguage(int n)
Return language n. |
static java.lang.String |
getLearningLanguage()
Return the number of the language the user wants to train. |
static int |
getSelectedTab()
Return the number of the selected tab. |
static java.awt.Rectangle |
getWindowPosition()
Return the last size of the window. |
static void |
main(java.lang.String[] args)
Print license. |
static void |
setAddwordLanguage(java.lang.String code)
Remember the language last used in AddWords. |
static void |
setLanguage(java.lang.String code,
int n)
Store language n. |
static void |
setLearningLanguage(java.lang.String index)
Store the index of the language the user wants to train. |
static void |
setSelectedTab(int index)
Store the index of the selected tab. |
static void |
setWindowPosition(java.awt.Rectangle r)
Store the position and size of the window. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Settings()
Method Detail |
---|
public static int getSelectedTab()
public static void setSelectedTab(int index)
index
- public static java.lang.String getAddwordLanguage()
public static void setAddwordLanguage(java.lang.String code)
code
- public static java.lang.String getLanguage(int n)
n
-
public static void setLanguage(java.lang.String code, int n)
code
- n
- public static java.lang.String getLearningLanguage()
public static void setLearningLanguage(java.lang.String index)
index
- public static java.awt.Rectangle getWindowPosition()
public static void setWindowPosition(java.awt.Rectangle r)
r
- public static void main(java.lang.String[] args)
args
- ignored
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |