diff options
author | Stephan Schwaer | 2015-09-29 17:00:55 +0200 |
---|---|---|
committer | Stephan Schwaer | 2015-09-29 17:00:55 +0200 |
commit | 33d2497255fda16f5eec00b9d3d6d04ba9f4402b (patch) | |
tree | 95fbf59143728aa72e8c880f40ba05147fc60c59 /dozentenmodul/src/main/java/org/openslx/dozmod/Config.java | |
parent | [client] Disable buttons and options if user is student and can't see imageDe... (diff) | |
parent | [client] Remember last satellite used; support doubleclick on sat to connect ... (diff) | |
download | tutor-module-33d2497255fda16f5eec00b9d3d6d04ba9f4402b.tar.gz tutor-module-33d2497255fda16f5eec00b9d3d6d04ba9f4402b.tar.xz tutor-module-33d2497255fda16f5eec00b9d3d6d04ba9f4402b.zip |
Merge branch 'v1.1' of git.openslx.org:openslx-ng/tutor-module into v1.1
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/Config.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/Config.java | 38 |
1 files changed, 27 insertions, 11 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/Config.java b/dozentenmodul/src/main/java/org/openslx/dozmod/Config.java index 78124376..1066ff9b 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/Config.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/Config.java @@ -39,7 +39,7 @@ public class Config { public static final int FONT_SCALING_MIN = 75; public static final int FONT_SCALING_MAX = 175; public static final int FONT_SCALING_STEP = 5; - + /** * Out property holder with all the setting keys */ @@ -347,22 +347,37 @@ public class Config { return null; return session; } - + + /** + * Set satellite used last time. + */ + public static void setLastSatellite(String value) { + setString("session.last-satellite", value); + } + + /** + * Get satellite last used. + */ + public static String getLastSatellite() { + return getString("session.last-satellite", ""); + } + /** * Sets the scaling for font rendering (in percent, 100% = no scaling) - * + * * @param percent to set the font scaling to */ public static void setFontScaling(int percent) { setInteger("gui.fontscaling", percent); } - + /** * Get scaling for font rendering (in percent, 100% = no scaling) * If the saved value is not within the declared boundary, it will be * reseted to 100. * - * @return the saved value of 'gui.fontscaling' if within boundaries, 100 otherwise + * @return the saved value of 'gui.fontscaling' if within boundaries, 100 + * otherwise */ public static int getFontScaling() { int savedFontScaling = getInteger("gui.fontscaling", 100); @@ -372,19 +387,19 @@ public class Config { } return savedFontScaling; } - + /** * Set the mode in which the proxy server is configured. - * + * * @param mode */ public static void setProxyMode(ProxyMode mode) { setString("proxy.mode", mode.toString()); } - + /** * Get the mode in which the proxy server is configured - * + * * @return the saved proxy mode, ProxyMode.AUTO otherwise */ public static ProxyMode getProxyMode() { @@ -466,7 +481,8 @@ public class Config { } /** - * Helper class to represent a saved session composed of the satellite adress, + * Helper class to represent a saved session composed of the satellite + * adress, * the satellite and master tokens */ public static class SavedSession { @@ -480,7 +496,7 @@ public class Config { this.masterToken = masterToken; } } - + /** * Enum representing the proxy mode */ |