diff options
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 */ |