Package adams.gui.application
Class AbstractInitialization
- java.lang.Object
-
- adams.gui.application.AbstractInitialization
-
- All Implemented Interfaces:
Initialization
,Serializable
- Direct Known Subclasses:
DatabaseConnections
,Fonts
,LocaleHelper
,ProxyHelper
,RegisterEditors
,SMBHelper
,SSLHelper
,TimeZoneHelper
,WekaPluginManagerExtensions
,WekaSystemProperties
public abstract class AbstractInitialization extends Object implements Initialization
Ancestor for initialization applets.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractInitialization()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract boolean
doInitialize(AbstractApplicationFrame parent)
Performs the initialization.static Initialization
forName(String classname, String[] options)
Instantiates the initialization applet with the (optional) options.static String[]
getInitializations()
Returns a list with classnames of initialization applets.abstract String
getTitle()
The title of the initialization.static boolean
initAll()
Runs all the initialization applets.static boolean
initAll(AbstractApplicationFrame parent)
Runs all the initialization applets.boolean
initialize(AbstractApplicationFrame parent)
Performs the initialization.
-
-
-
Method Detail
-
getTitle
public abstract String getTitle()
The title of the initialization.- Specified by:
getTitle
in interfaceInitialization
- Returns:
- the title
-
doInitialize
protected abstract boolean doInitialize(AbstractApplicationFrame parent)
Performs the initialization.- Parameters:
parent
- the application this initialization is for- Returns:
- true if successful
-
initialize
public boolean initialize(AbstractApplicationFrame parent)
Performs the initialization.- Specified by:
initialize
in interfaceInitialization
- Parameters:
parent
- the application this initialization is for- Returns:
- true if successful
-
initAll
public static boolean initAll()
Runs all the initialization applets.- Returns:
- true if all successful
-
initAll
public static boolean initAll(AbstractApplicationFrame parent)
Runs all the initialization applets.- Parameters:
parent
- the application this initialization is for, can be null- Returns:
- true if all successful
-
getInitializations
public static String[] getInitializations()
Returns a list with classnames of initialization applets.- Returns:
- the initialization applet classnames
-
forName
public static Initialization forName(String classname, String[] options)
Instantiates the initialization applet with the (optional) options.- Parameters:
classname
- the classname of the initialization applet to instantiateoptions
- the options for the initialization applet- Returns:
- the instantiated initialization applet or null if an error occurred
-
-