|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gridsystems.config.app.UI
public abstract class UI
Root class and provider for user interface delegation. Each subclass is specialized in a specific type of user interface environment.
Field Summary | |
---|---|
protected static Configurator[] |
configurators
The list of discovered configurators. |
static int |
CONSOLE
Specified the Console UI. |
static int |
NONE
Specifies the Null UI. |
static int |
SWING
Specifies the Swing UI. |
Constructor Summary | |
---|---|
UI()
Default constructor. |
Method Summary | |
---|---|
abstract boolean |
execute()
UI specific execution. |
static Configurator[] |
getConfigurators()
Builds the list of Configutator implementations in the classpath through inspection of "configurator.txt" resources found via ClassLoader. |
static java.lang.String |
getString(java.lang.String key)
Gets the message corresponding to the specified key in the "base" bundle. |
static boolean |
isExpertMode()
Gets if the configurator is running in "expert mode". |
static void |
main(java.lang.String[] args)
Performs the execution of the appropriate UI implementation, according to the passed command-line arguments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NONE
public static final int SWING
public static final int CONSOLE
protected static Configurator[] configurators
Constructor Detail |
---|
public UI()
Method Detail |
---|
public abstract boolean execute()
public static java.lang.String getString(java.lang.String key)
This method is here to give easy access to the base bundle without knowledge of the bundle name or location.
key
- The key of the message to retrieve
public static boolean isExpertMode()
true
if the configurator is in expert modepublic static Configurator[] getConfigurators()
Each "configurator.txt" resource is expected to contain a list of Configurator classes.
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- The command-line arguments
java.lang.Exception
- In case of an unhandled error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |