|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.timjohnstondev.unitconverter.logic.ConfigurationLogic
public final class ConfigurationLogic
Utility class that contains all of the logic for maintaining the user preferences.
| Method Summary | |
|---|---|
static int |
getFontSizePreference(int defaultFontSize)
Looks into the JVM preference storage location for the Font size. |
static int |
getPreferenceIndex(ListModel model,
String unitSeparator)
Returns the index of the item provided in the ListModel. |
static String |
getUnitSeparatorPreference()
Looks into the JVM preference storage location for the unit separator. |
static void |
setFontSizePreference(int fontSize)
Puts a font size preference into the JVM preference storage location. |
static void |
setUnitSeparatorPreference(String symbol)
Puts a unit separator symbol preference into the JVM preference storage location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int getPreferenceIndex(ListModel model,
String unitSeparator)
ListModel.
model - listunitSeparator - separator
public static String getUnitSeparatorPreference()
public static void setUnitSeparatorPreference(String symbol)
symbol - unit separator symbolpublic static int getFontSizePreference(int defaultFontSize)
Font size. If the Font size setting is
found, it is used, else the system default is used.
defaultFontSize - the default font size
Font size stored in the JVM preference storage or the system defaultpublic static void setFontSizePreference(int fontSize)
fontSize - the font size
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||