MOA 12.03
Real Time Analytics for Data Streams
moa.gui.GUIDefaults Class Reference

This class offers get methods for the default GUI settings in the props file moa/gui/GUI.props. More...

Inheritance diagram for moa.gui.GUIDefaults:
Collaboration diagram for moa.gui.GUIDefaults:

List of all members.

Static Public Member Functions

static String get (String property, String defaultValue)
 returns the value for the specified property, if non-existent then the default value.
static final 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 String getInitialDirectory ()
 Returns the initial directory for the file chooser used for opening datasets.
static void main (String[] args)
 only for testing - prints the content of the props file.

Static Public Attributes

static final String PROPERTY_FILE = "moa/gui/GUI.props"
 The name of the properties file.

Static Protected Member Functions

static Object getObject (String property, String defaultValue)
 Tries to instantiate the class stored for this property, optional options will be set as well.
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 Protected Attributes

static Properties PROPERTIES
 Properties associated with the GUI options.

Static Package Functions

 [static initializer]

Detailed Description

This class offers get methods for the default GUI settings in the props file moa/gui/GUI.props.

Author:
FracPete (fracpete at waikato dot ac dot nz)
Version:
Revision:
6103

Definition at line 39 of file GUIDefaults.java.


Member Function Documentation

moa.gui.GUIDefaults.[static initializer] ( ) [static, package]
static String moa.gui.GUIDefaults.get ( String  property,
String  defaultValue 
) [static]

returns the value for the specified property, if non-existent then the default value.

Parameters:
propertythe property to retrieve the value for
defaultValuethe default value for the property
Returns:
the value of the specified property

Definition at line 69 of file GUIDefaults.java.

static String moa.gui.GUIDefaults.getInitialDirectory ( ) [static]

Returns the initial directory for the file chooser used for opening datasets.

The following placeholders are recognized:

   t - the temp directory
   h - the user's home directory
   c - the current directory
   %% - gets replaced by a single percentage sign
 
Returns:
the default directory

Definition at line 159 of file GUIDefaults.java.

static Object moa.gui.GUIDefaults.getObject ( String  property,
String  defaultValue 
) [static, protected]

Tries to instantiate the class stored for this property, optional options will be set as well.

Returns null if unsuccessful.

Parameters:
propertythe property to get the object for
defaultValuethe default object spec string
Returns:
if successful the fully configured object, null otherwise

Definition at line 91 of file GUIDefaults.java.

static Object moa.gui.GUIDefaults.getObject ( String  property,
String  defaultValue,
Class  cls 
) [static, protected]

Tries to instantiate the class stored for this property, optional options will be set as well.

Returns null if unsuccessful.

Parameters:
propertythe property to get the object for
defaultValuethe default object spec string
clsthe class the object must be derived from
Returns:
if successful the fully configured object, null otherwise

Definition at line 105 of file GUIDefaults.java.

static final Properties moa.gui.GUIDefaults.getProperties ( ) [static]

returns the associated properties file.

Returns:
the props file

Definition at line 78 of file GUIDefaults.java.

static String [] moa.gui.GUIDefaults.getTabs ( ) [static]

returns an array with the classnames of all the additional panels to display as tabs in the GUI.

Returns:
the classnames

Definition at line 134 of file GUIDefaults.java.

static void moa.gui.GUIDefaults.main ( String[]  args) [static]

only for testing - prints the content of the props file.

Parameters:
argscommandline parameters - ignored

Definition at line 176 of file GUIDefaults.java.


Member Data Documentation

Properties moa.gui.GUIDefaults.PROPERTIES [static, protected]

Properties associated with the GUI options.

Definition at line 49 of file GUIDefaults.java.

Referenced by moa.gui.GUIDefaults.get(), moa.gui.GUIDefaults.getProperties(), and moa.gui.GUIDefaults.main().

final String moa.gui.GUIDefaults.PROPERTY_FILE = "moa/gui/GUI.props" [static]

The name of the properties file.

Definition at line 46 of file GUIDefaults.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations