|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.utils4swing.appletviewer.SimpleAppletViewerConfig
public final class SimpleAppletViewerConfig
Configuration for the applet viewer.
| Constructor Summary | |
|---|---|
SimpleAppletViewerConfig()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addArgument(String arg)
Adds an argument to the applet. |
void |
addArgument(String key,
String value)
Adds an argument to the applet. |
Applet |
getApplet()
Returns the applet to show in the viewer. |
List<String> |
getArguments()
Returns command line arguments. |
String |
getBaseDir()
Returns the base directory name for the applet. |
URL |
getBaseUrl()
Returns the base directory as URL. |
int |
getHeight()
Returns the height of the viewer frame. |
String |
getLookAndFeel()
Returns the name of the look and feel. |
String |
getName()
Returns the name of the applet. |
Map<String,String> |
getParams()
Parses the list of arguments for entries in format <key>=<value> and returns them in a map. |
String |
getTitle()
Returns the title of the viewer frame. |
int |
getWidth()
Returns the width of the viewer frame. |
void |
setApplet(Applet applet)
Sets the applet to show in the viewer. |
void |
setApplet(String applet)
Sets the applet by creating a new instance. |
void |
setArguments(List<String> arguments)
Sets the rest of the command line arguments. |
void |
setBaseDir(String baseDir)
Sets the base directory for the applet. |
void |
setHeight(int height)
Sets the height of the viewer frame. |
void |
setLookAndFeel(String lookAndFeel)
Sets the name of the look and feel. |
void |
setName(String name)
Sets the name of the applet. |
void |
setTitle(String title)
Sets the title of the viewer frame. |
void |
setWidth(int width)
Sets the width of the viewer frame. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleAppletViewerConfig()
| Method Detail |
|---|
public final int getHeight()
public final void setHeight(int height)
height - Height.public final int getWidth()
public final void setWidth(int width)
width - Width.public final String getName()
public final void setName(String name)
name - Name.public final String getTitle()
public final void setTitle(String title)
title - Frame title.public final String getLookAndFeel()
public final void setLookAndFeel(String lookAndFeel)
lookAndFeel - Full qualified class name.public final String getBaseDir()
public final void setBaseDir(String baseDir)
baseDir - Base directory.public final List<String> getArguments()
public final void setArguments(List<String> arguments)
arguments - Other command line parameters than options.public final URL getBaseUrl()
public final Applet getApplet()
public final void setApplet(Applet applet)
applet - Applet.public final void setApplet(String applet)
applet - Full qualified applet class name.public final Map<String,String> getParams()
public final void addArgument(String arg)
arg - Parameter as <key>=<value> string.
public final void addArgument(String key,
String value)
key - Key of the parameter.value - Value of the parameter.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||