public class GUIDefaults extends Object implements Serializable
moa/gui/GUI.props
.Modifier and Type | Field and Description |
---|---|
protected static Properties |
PROPERTIES
Properties associated with the GUI options.
|
static String |
PROPERTY_FILE
The name of the properties file.
|
Constructor and Description |
---|
GUIDefaults() |
Modifier and Type | Method and Description |
---|---|
static String |
get(String property,
String defaultValue)
returns the value for the specified property, if non-existent then the
default value.
|
static String |
getInitialDirectory()
Returns the initial directory for the file chooser used for opening
datasets.
|
protected static Object |
getObject(String property,
String defaultValue)
Tries to instantiate the class stored for this property, optional
options will be set as well.
|
protected static Object |
getObject(String property,
String defaultValue,
Class cls)
Tries to instantiate the class stored for this property, optional
options will be set as well.
|
static Properties |
getProperties()
returns the associated properties file.
|
static String[] |
getTabs()
returns an array with the classnames of all the additional panels to
display as tabs in the GUI.
|
static void |
main(String[] args)
only for testing - prints the content of the props file.
|
public static final String PROPERTY_FILE
protected static Properties PROPERTIES
public static String get(String property, String defaultValue)
property
- the property to retrieve the value fordefaultValue
- the default value for the propertypublic static final Properties getProperties()
protected static Object getObject(String property, String defaultValue)
property
- the property to get the object fordefaultValue
- the default object spec stringprotected static Object getObject(String property, String defaultValue, Class cls)
property
- the property to get the object fordefaultValue
- the default object spec stringcls
- the class the object must be derived frompublic static String[] getTabs()
public static String getInitialDirectory()
%t - the temp directory %h - the user's home directory %c - the current directory %% - gets replaced by a single percentage sign
public static void main(String[] args)
args
- commandline parameters - ignoredCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.