| java.util.Properties snow.utils.storage.AppProperties
AppProperties | public class AppProperties extends Properties (Code) | | Customized properties (some getters/setters) should remain compatible with Properties.
Is stored in XML format, in a file.
|
Method Summary | |
public void | createFromVectorRepresentation(List<Object> v, boolean clearRep) | public List<String> | getArrayProperty(String key, List<String> defaults) | public List<String> | getArrayProperty(String key) a modifiable list. | public List<String> | getArrayProperty(String key, String[] defaults) | public boolean | getBoolean(String key, boolean def) | public Color | getColor(String key, Color def) | public double | getDouble(String key, double def) | public Font | getFont(String key, Font def) | public int | getInteger(String key, int def) | public long | getLong(String key, long def) | public String | getStringLCK(String key, String def) | public StorageVector | getVectorRepresentation() | final public void | loadFromStoredVectorRepresentation(File file) | public void | load_XML(File f) | public synchronized void | saveComponentLocationInINIFile(Component comp, String key) | public synchronized void | saveComponentSizeInINIFile(Component comp, String key) | public void | save_XML(File f) | public void | setArrayProperty(String key, List<String> values) | public void | setArrayProperty(String key, String[] values) | public void | setBoolean(String key, boolean val) | public void | setColor(String key, Color val) | public synchronized void | setComponentLocationFromINIFile(Component comp, String key, int defPosX, int defPosY) | public synchronized void | setComponentSizeFromINIFile(Component comp, String key, int defWidth, int defHeight, int defPosX, int defPosY) | public void | setDouble(String key, double val) | public void | setFont(String key, Font font) | public void | setInteger(String key, int val) | public void | setLong(String key, long val) | public void | setStringLCK(String key, String val) | final public void | storeToFileAsVectorRepresentation(File file) |
AppProperties | public AppProperties()(Code) | | |
createFromVectorRepresentation | public void createFromVectorRepresentation(List<Object> v, boolean clearRep)(Code) | | clears and recreate from the passed vector
|
getBoolean | public boolean getBoolean(String key, boolean def)(Code) | | |
getDouble | public double getDouble(String key, double def)(Code) | | |
loadFromStoredVectorRepresentation | final public void loadFromStoredVectorRepresentation(File file)(Code) | | |
saveComponentLocationInINIFile | public synchronized void saveComponentLocationInINIFile(Component comp, String key)(Code) | | save the component location
|
saveComponentSizeInINIFile | public synchronized void saveComponentSizeInINIFile(Component comp, String key)(Code) | | save the component size and location
|
setBoolean | public void setBoolean(String key, boolean val)(Code) | | |
setComponentLocationFromINIFile | public synchronized void setComponentLocationFromINIFile(Component comp, String key, int defPosX, int defPosY)(Code) | | set the component location
|
setComponentSizeFromINIFile | public synchronized void setComponentSizeFromINIFile(Component comp, String key, int defWidth, int defHeight, int defPosX, int defPosY)(Code) | | set the component size and location
|
setDouble | public void setDouble(String key, double val)(Code) | | |
storeToFileAsVectorRepresentation | final public void storeToFileAsVectorRepresentation(File file)(Code) | | |
|
|