|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uni_paderborn.fujaba.preferences.PreferencesProperties
Singleton Class 'PreferencesProperties' handles the preferences for the Fujaba application.
Field Summary | |
static java.lang.String |
PROPERTY_DIR_PROPERTY
Key for the 'propertyDir' attribute that will be used by FujabaApp to store the propertyDir in a (property) file. |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Access method for an one to n association. |
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Access method for an one to n association. |
void |
firePropertyChange(java.beans.PropertyChangeEvent event)
No comment provided by developer, please add a comment to improve documentation. |
void |
firePropertyChange(java.lang.String propertyName,
boolean oldValue,
boolean newValue)
No comment provided by developer, please add a comment to improve documentation. |
void |
firePropertyChange(java.lang.String propertyName,
int oldValue,
int newValue)
No comment provided by developer, please add a comment to improve documentation. |
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
No comment provided by developer, please add a comment to improve documentation. |
static PreferencesProperties |
get()
Wrapper for the old singleton get() method. |
static PreferencesProperties |
get(java.lang.String fileName)
|
boolean |
getBoolSetting(java.lang.String key)
Get the boolSetting attribute of the PropertyOptions object |
boolean |
getBoolSetting(java.lang.String key,
boolean defaultValue)
Get the boolSetting attribute of the PropertyOptions object |
java.awt.Color |
getColorSetting(java.lang.String key,
java.awt.Color defaultValue)
Get the colorSetting attribute of the PropertyOptions object |
double |
getDoubleSetting(java.lang.String key)
Get the doubleSetting attribute of the PropertyOptions object |
double |
getDoubleSetting(java.lang.String key,
double defaultValue)
Get the doubleSetting attribute of the PropertyOptions object |
float |
getFloatSetting(java.lang.String key)
Get the floatSetting attribute of the PropertyOptions object |
float |
getFloatSetting(java.lang.String key,
float defaultValue)
Get the floatSetting attribute of the PropertyOptions object |
java.util.Hashtable |
getHashtableSetting(java.lang.String key,
java.lang.String name)
Get the hashtableSetting attribute of the PropertyOptions object |
int |
getIntSetting(java.lang.String key)
Get the intSetting attribute of the PropertyOptions object |
int |
getIntSetting(java.lang.String key,
int defaultValue)
Get the intSetting attribute of the PropertyOptions object |
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners()
Get the propertyChangeListeners attribute of the PreferencesProperties object |
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners(java.lang.String arg0)
Get the propertyChangeListeners attribute of the PreferencesProperties object |
static java.lang.String |
getPropertyDir()
Get the directory in which Fujaba properties are stored. |
static java.lang.String |
getProposedPropertyDir()
Get the default directory in which Fujaba properties should be stored. |
java.lang.String |
getSetting(java.lang.String key)
get a specified setting from the Properties |
java.lang.String |
getSetting(java.lang.String key,
java.lang.String defaultValue)
get a specified setting from the Properties |
java.util.Vector |
getVectorSetting(java.lang.String key)
Get a preferences vector. |
java.util.Vector |
getVectorSetting(java.lang.String key,
java.util.Vector defVector)
Get a preferences vector. |
boolean |
hasListeners(java.lang.String arg0)
No comment provided by developer, please add a comment to improve documentation. |
void |
putSetting(java.lang.String key,
boolean value)
No comment provided by developer, please add a comment to improve documentation. |
void |
putSetting(java.lang.String key,
java.awt.Color col)
No comment provided by developer, please add a comment to improve documentation. |
void |
putSetting(java.lang.String key,
double value)
No comment provided by developer, please add a comment to improve documentation. |
void |
putSetting(java.lang.String key,
float value)
No comment provided by developer, please add a comment to improve documentation. |
void |
putSetting(java.lang.String key,
int value)
No comment provided by developer, please add a comment to improve documentation. |
void |
putSetting(java.lang.String key,
java.util.List settings)
No comment provided by developer, please add a comment to improve documentation. |
void |
putSetting(java.lang.String key,
java.lang.String value)
No comment provided by developer, please add a comment to improve documentation. |
void |
putSetting(java.lang.String key,
java.lang.String name,
java.util.Hashtable settings)
No comment provided by developer, please add a comment to improve documentation. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
No comment provided by developer, please add a comment to improve documentation. |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
No comment provided by developer, please add a comment to improve documentation. |
void |
save()
Saves the options in separate file. |
static void |
saveAll()
Saves all PropertiesOptions including core and plugin options. |
static void |
setPropertyDir(java.lang.String value)
Set the directory in which Fujaba properties are stored. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PROPERTY_DIR_PROPERTY
Note: The key contains the fujaba base-directory (installation-directory) as keyword, so every fujaba installation may define its own propertyDir.
Method Detail |
public static PreferencesProperties get()
public static PreferencesProperties get(java.lang.String fileName)
public static void saveAll()
public void save()
public static java.lang.String getPropertyDir()
Note: the propertyDir ends with a file separator. Note: if the propertyDir has not been set, a call to this function will initialize the propertyDir with the proposedPropertyDir.
getProposedPropertyDir()
public static void setPropertyDir(java.lang.String value)
Note: do not change propertyDir during runtime, for now! Properties won't be adjusted, if the propertyDir changes. Use startup-parameter in class 'FujabaApp' to change the propertyDir during startup.
value
- FujabaApp.main(String[])
public static java.lang.String getProposedPropertyDir()
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The object added.public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- The object added.listener
- The object added.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- No description providedpublic void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- No description providedlistener
- No description providedpublic void firePropertyChange(java.beans.PropertyChangeEvent event)
event
- No description providedpublic void firePropertyChange(java.lang.String propertyName, boolean oldValue, boolean newValue)
propertyName
- No description providedoldValue
- No description providednewValue
- No description providedpublic void firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
propertyName
- No description providedoldValue
- No description providednewValue
- No description providedpublic void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
propertyName
- No description providedoldValue
- No description providednewValue
- No description providedpublic java.beans.PropertyChangeListener[] getPropertyChangeListeners()
public java.beans.PropertyChangeListener[] getPropertyChangeListeners(java.lang.String arg0)
arg0
- No description provided
public boolean hasListeners(java.lang.String arg0)
arg0
- No description provided
public java.lang.String getSetting(java.lang.String key)
key
- The settings key
public java.lang.String getSetting(java.lang.String key, java.lang.String defaultValue)
key
- The settings keydefaultValue
- No description provided
public boolean getBoolSetting(java.lang.String key)
key
- No description provided
public boolean getBoolSetting(java.lang.String key, boolean defaultValue)
key
- No description provideddefaultValue
- No description provided
public int getIntSetting(java.lang.String key) throws java.lang.NumberFormatException
key
- No description provided
java.lang.NumberFormatException
- Exception description not providedpublic int getIntSetting(java.lang.String key, int defaultValue) throws java.lang.NumberFormatException
key
- No description provideddefaultValue
- No description provided
java.lang.NumberFormatException
- Exception description not providedpublic float getFloatSetting(java.lang.String key) throws java.lang.NumberFormatException
key
- No description provided
java.lang.NumberFormatException
- Exception description not providedpublic float getFloatSetting(java.lang.String key, float defaultValue) throws java.lang.NumberFormatException
key
- No description provideddefaultValue
- No description provided
java.lang.NumberFormatException
- Exception description not providedpublic double getDoubleSetting(java.lang.String key) throws java.lang.NumberFormatException
key
- No description provided
java.lang.NumberFormatException
- Exception description not providedpublic double getDoubleSetting(java.lang.String key, double defaultValue) throws java.lang.NumberFormatException
key
- No description provideddefaultValue
- No description provided
java.lang.NumberFormatException
- Exception description not providedpublic java.util.Vector getVectorSetting(java.lang.String key)
key
- The property key
public java.util.Vector getVectorSetting(java.lang.String key, java.util.Vector defVector)
key
- The property keydefVector
- The default vector
public java.util.Hashtable getHashtableSetting(java.lang.String key, java.lang.String name)
key
- No description providedname
- No description provided
public java.awt.Color getColorSetting(java.lang.String key, java.awt.Color defaultValue)
key
- No description provideddefaultValue
- No description provided
public void putSetting(java.lang.String key, java.lang.String value)
key
- No description providedvalue
- No description providedpublic void putSetting(java.lang.String key, boolean value)
key
- No description providedvalue
- No description providedpublic void putSetting(java.lang.String key, int value)
key
- No description providedvalue
- No description providedpublic void putSetting(java.lang.String key, float value)
key
- No description providedvalue
- No description providedpublic void putSetting(java.lang.String key, double value)
key
- No description providedvalue
- No description providedpublic void putSetting(java.lang.String key, java.util.List settings)
key
- No description providedsettings
- No description providedpublic void putSetting(java.lang.String key, java.lang.String name, java.util.Hashtable settings)
key
- No description providedname
- No description providedsettings
- No description providedpublic void putSetting(java.lang.String key, java.awt.Color col)
key
- No description providedcol
- No description provided
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |