org.fuin.utils4swing.appstarter
Class AppStarterConfig

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

public class AppStarterConfig
extends java.lang.Object

Configuration for the "AppStarter".


Constructor Summary
AppStarterConfig()
          Constructor with no arguments.
 
Method Summary
 void addArgument(java.lang.String arg)
          Adds a command line argument.
 void addClasspathEntry(ClasspathEntry entry)
          Adds a single classpath entry to the list.
 java.util.List<java.lang.String> getArguments()
          Returns a list of arguments to use for the application.
 java.util.List<ClasspathEntry> getClassPath()
          Returns a list of entries to inject into the classpath.
 java.lang.String getFrameTitle()
          Returns the title of the frame.
 java.lang.String getMainClass()
          Returns the class to start.
 StartType getStartType()
          Returns the type of application to start.
 void setArguments(java.lang.String args)
          Set one or more arguments for the application.
 void setClassPath(java.lang.String cp)
          Returns a list of entries to inject into the classpath.
 void setFrameTitle(java.lang.String frameTitle)
          Sets the title of the frame.
 void setMainClass(java.lang.String mainClass)
          Sets the class to start.
 void setStartType(StartType startType)
          Sets the type of application to start.
 void setStartType(java.lang.String startType)
          Sets the type of application to start.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppStarterConfig

public AppStarterConfig()
Constructor with no arguments.

Method Detail

getArguments

public final java.util.List<java.lang.String> getArguments()
Returns a list of arguments to use for the application.

Returns:
Argument list.

setArguments

public final void setArguments(java.lang.String args)
Set one or more arguments for the application.

Parameters:
args - Arguments separated by comma.

addArgument

public final void addArgument(java.lang.String arg)
Adds a command line argument.

Parameters:
arg - Argument to add.

getClassPath

public final java.util.List<ClasspathEntry> getClassPath()
Returns a list of entries to inject into the classpath.

Returns:
List of classpath entries.

addClasspathEntry

public final void addClasspathEntry(ClasspathEntry entry)
Adds a single classpath entry to the list.

Parameters:
entry - Entry to add.

setClassPath

public final void setClassPath(java.lang.String cp)
Returns a list of entries to inject into the classpath.

Parameters:
cp - Classpath entries separated by a comma and with format 'TYPE|VALUE'. Valid types are: CLASSES_DIR, JAR_FILE and JARS_DIR.

getMainClass

public final java.lang.String getMainClass()
Returns the class to start.

Returns:
Full qualified class name (Applet or class with main method).

setMainClass

public final void setMainClass(java.lang.String mainClass)
Sets the class to start.

Parameters:
mainClass - Full qualified class name (Applet or class with main method).

getStartType

public final StartType getStartType()
Returns the type of application to start.

Returns:
Applet or Application.

setStartType

public final void setStartType(java.lang.String startType)
Sets the type of application to start.

Parameters:
startType - Applet or Application.

setStartType

public final void setStartType(StartType startType)
Sets the type of application to start.

Parameters:
startType - Applet or Application.

getFrameTitle

public final java.lang.String getFrameTitle()
Returns the title of the frame.

Returns:
Frame title.

setFrameTitle

public final void setFrameTitle(java.lang.String frameTitle)
Sets the title of the frame.

Parameters:
frameTitle - Frame title.


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