org.fuin.utils4swing.appstarter
Class StartType

java.lang.Object
  extended by org.fuin.utils4swing.appstarter.StartType

public final class StartType
extends Object

Types of applications that can be started.


Field Summary
static StartType APPLET
          Applet.
static StartType APPLICATION
          Application with "main" method.
static StartType[] INSTANCES
          Array of known types.
 
Method Summary
static StartType forName(String name)
          Returns an instance for the given name.
 String getName()
          Returns the name of the type.
static boolean isValid(String name)
          Checks if a given name is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPLICATION

public static final StartType APPLICATION
Application with "main" method.


APPLET

public static final StartType APPLET
Applet.


INSTANCES

public static final StartType[] INSTANCES
Array of known types.

Method Detail

getName

public final String getName()
Returns the name of the type.

Returns:
Name of the type to be used in the UI.

isValid

public static boolean isValid(String name)
Checks if a given name is valid.

Parameters:
name - Name to check.
Returns:
If the name is known TRUE else FALSE.

forName

public static StartType forName(String name)
Returns an instance for the given name.

Parameters:
name - Name to get an instance for.
Returns:
Type.


Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.