|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.geeboss.model.settings.SettingsFactory
public class SettingsFactory
Old settings management class This should all be moved to the settings class
Constructor Summary | |
---|---|
SettingsFactory()
Instantiate a new SettingsFactory |
|
SettingsFactory(org.w3c.dom.Document document)
Instantiate a new SettingsFactory with a Document |
Method Summary | |
---|---|
boolean |
getBoolean(java.lang.String element,
boolean init)
Get the state of a value from the user.xml |
java.lang.String |
getValue(java.lang.String element,
java.lang.String attribute)
Load a value from the XML settings document |
java.lang.String |
getValue(java.lang.String element,
java.lang.String attribute,
java.lang.String init)
Load a value from the XML settings document |
java.lang.String |
getValue(java.lang.String element,
java.lang.String attribute,
java.lang.String init,
boolean trim)
Load a value from the XML settings document |
static boolean |
isValidUserXML(org.w3c.dom.Document document)
Check if the given document is a valid "user.xml" |
static boolean |
isValidUserXML(java.io.InputStream inputStream)
Check if the file at the given inputstream is a valid "user.xml" |
static boolean |
isValidUserXML(java.lang.String path)
Check if the file at the given path is a valid "user.xml" |
void |
loadHotKeys()
Load the hotkeys |
java.util.HashMap<java.lang.String,int[]> |
loadSashWeights()
Load weights of the SashForms |
java.util.HashMap<java.lang.String,java.lang.Object> |
loadShellBounds()
Load the bounds of the shell |
static void |
saveUserSettings(java.util.Hashtable sashWeights,
java.util.Hashtable shellBounds)
Save the user settings |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SettingsFactory()
public SettingsFactory(org.w3c.dom.Document document)
document
- The configuration XMLMethod Detail |
---|
public static boolean isValidUserXML(org.w3c.dom.Document document)
document
- The document to check for valid user xml
public static boolean isValidUserXML(java.io.InputStream inputStream)
inputStream
- InputStream holding the contents of the XML
public static boolean isValidUserXML(java.lang.String path)
path
- Path to the import file
public static void saveUserSettings(java.util.Hashtable sashWeights, java.util.Hashtable shellBounds)
sashWeights
- The sash weightsshellBounds
- The shell boundspublic boolean getBoolean(java.lang.String element, boolean init)
element
- The Name of the Elementinit
- Initial value
public java.lang.String getValue(java.lang.String element, java.lang.String attribute)
element
- The element's nameattribute
- The attribute's name
public java.lang.String getValue(java.lang.String element, java.lang.String attribute, java.lang.String init)
element
- The element's nameattribute
- The attribute's nameinit
- The initial value if attribute is not found
public java.lang.String getValue(java.lang.String element, java.lang.String attribute, java.lang.String init, boolean trim)
element
- The element's nameattribute
- The attribute's nameinit
- The initial value if attribute is not foundtrim
- If true the text is trimmed
public void loadHotKeys()
public java.util.HashMap<java.lang.String,int[]> loadSashWeights()
public java.util.HashMap<java.lang.String,java.lang.Object> loadShellBounds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |