|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kemet.lf.tools.PreferencesManager
public class PreferencesManager
PreferencesManager : manage user preferences.
Constructor Summary | |
---|---|
PreferencesManager()
create or load the preferences file. |
Method Summary | |
---|---|
static void |
addPrefToList(java.lang.String key,
java.lang.String value)
add one preference to the list of preferences. |
static int |
getHeightFromMainWindow()
return the height of the main window. |
static void |
getLocationAndSizeByDefaultForMainWindow()
initialize location and size by default for main window. |
static void |
getLocationAndSizeForMainWindow()
initialize location and size for main window. |
static java.util.HashMap |
getPrefsList()
return the list of preferences. |
static int |
getSaveSidePref()
In preferences : "save whished side when toolbars move" preference is available ? |
static int |
getWidthFromMainWindow()
return the width of the main window. |
static boolean |
isSaveLocationAndSizeWindowsPref()
In preferences : "save location and size of windows" preference is available ? |
static void |
saveLocationAndSizeForMainWindow(javax.swing.JFrame mainWindow)
save location and size for main window. |
static void |
saveLocationAndSizeForToolbars()
save location and size for toolbars. |
static void |
saveSide(int side)
save whished side when toolbars move. |
static void |
setPrefsList(java.util.HashMap prefsList)
set the list of preferences. |
void |
updateFile()
update the preferences file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreferencesManager() throws ExceptionManager
create or load the preferences file.
ExceptionManager
Method Detail |
---|
public static java.util.HashMap getPrefsList()
return the list of preferences.
public static void setPrefsList(java.util.HashMap prefsList)
set the list of preferences.
prefsList
- the list of preferences to setpublic static void addPrefToList(java.lang.String key, java.lang.String value)
add one preference to the list of preferences.
key
- key of preferencevalue
- value of preferencepublic void updateFile() throws javax.xml.transform.TransformerException, javax.xml.parsers.ParserConfigurationException, ExceptionManager
update the preferences file.
javax.xml.parsers.ParserConfigurationException
javax.xml.transform.TransformerException
ExceptionManager
public static boolean isSaveLocationAndSizeWindowsPref()
In preferences : "save location and size of windows" preference is available ?
public static int getSaveSidePref()
In preferences : "save whished side when toolbars move" preference is available ?
public static void getLocationAndSizeForMainWindow() throws ExceptionManager
initialize location and size for main window.
ExceptionManager
public static int getWidthFromMainWindow()
return the width of the main window.
public static int getHeightFromMainWindow()
return the height of the main window.
public static void getLocationAndSizeByDefaultForMainWindow() throws ExceptionManager
initialize location and size by default for main window.
ExceptionManager
public static void saveLocationAndSizeForMainWindow(javax.swing.JFrame mainWindow)
save location and size for main window.
mainWindow
- JFrame assciated to the main windowpublic static void saveSide(int side)
save whished side when toolbars move.
side
- whished sidepublic static void saveLocationAndSizeForToolbars() throws ExceptionManager
save location and size for toolbars.
ExceptionManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |