|
BioLegato 0.7.0 Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
org.biolegato.core.properties.BLProperties
public class BLProperties
Stores the properties for BioLegato. The current properties registered are:
| Property | Used internally | Description |
|---|---|---|
| debug | Yes | determines whether or not to display debug information |
| plugins | Yes | sets the plugin directory |
| temp | Yes | sets the temporary files directory |
| font.size | Yes | determines the default font size for objects in BioLegato |
| font.type | Yes | determines the default font type for objects in BioLegato |
| shell.name | Yes | determines the shell to execute |
| shell.parameter | Yes | determines the parameter for directing the shell to execute a command |
| pwd.properties | Yes | determines whether or not to read the properties file located in the current working directory |
| user.properties | Yes | determines whether or not to read the user's propery files (located in the user's home directory |
| user.plugins | Yes | determines whether or not to read the user's plugin files (located in the user's home directory |
| default.canvas | Yes | determines the default canvas to show on startup |
| default.fileformat | Yes | determines the default file format for open/save dialogs |
| GDE.menu | No | determines whether or not to read the GDE menu files (backwards compatibility mode) |
| GDE.help.viewer | No | determines which file to feed the help file to |
| GDE.help.path | No | the location to search for the help files |
| undo | No | whether or not to enable undo support |
| undo.size | No | whether or not to enable undo support |
| Field Summary |
|---|
| Fields inherited from class java.util.Properties |
|---|
defaults |
| Constructor Summary | |
|---|---|
BLProperties()
Create a new BLProperties instance |
|
| Method Summary | |
|---|---|
void |
addExtension(PropertiesExtension extension)
Adds a properties extension to the properties registry. |
void |
addPropertiesListener(java.lang.String key,
PropertiesListener listener)
Adds a listener for property changes NOTE: this method allows filtering based on which property changed |
java.lang.String |
getProperty(java.lang.String key)
Obtains a property from the BLProperties object. |
java.lang.Object |
setProperty(java.lang.String key,
java.lang.String value)
Changes a property within the BLProperties object |
void |
showPropertiesWindow(javax.swing.JFrame window)
Displays the properties window for this instance of BioLegato |
| Methods inherited from class java.util.Properties |
|---|
getProperty, list, list, load, loadFromXML, propertyNames, save, store, storeToXML, storeToXML |
| Methods inherited from class java.util.Hashtable |
|---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BLProperties()
| Method Detail |
|---|
public java.lang.Object setProperty(java.lang.String key,
java.lang.String value)
setProperty in class java.util.Propertieskey - the key of the property to alter.value - the new value of the property.
public java.lang.String getProperty(java.lang.String key)
getProperty in class java.util.Propertieskey - the key of the property.
public void addPropertiesListener(java.lang.String key,
PropertiesListener listener)
key - the property key to listen for.listener - the listener to register.public void showPropertiesWindow(javax.swing.JFrame window)
window - the main program window to display the properties.public void addExtension(PropertiesExtension extension)
extension - the properties extension to add.
|
BioLegato 0.7.0 Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||