|
||||||||||
| 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(java.lang.String arg)
Adds an argument to the applet. |
void |
addArgument(java.lang.String key,
java.lang.String value)
Adds an argument to the applet. |
java.applet.Applet |
getApplet()
Returns the applet to show in the viewer. |
java.util.List<java.lang.String> |
getArguments()
Returns command line arguments. |
java.lang.String |
getBaseDir()
Returns the base directory name for the applet. |
java.net.URL |
getBaseUrl()
Returns the base directory as URL. |
int |
getHeight()
Returns the height of the viewer frame. |
java.lang.String |
getLookAndFeel()
Returns the name of the look and feel. |
java.lang.String |
getName()
Returns the name of the applet. |
java.util.Map<java.lang.String,java.lang.String> |
getParams()
Parses the list of arguments for entries in format <key>=<value> and returns them in a map. |
java.lang.String |
getTitle()
Returns the title of the viewer frame. |
int |
getWidth()
Returns the width of the viewer frame. |
void |
setApplet(java.applet.Applet applet)
Sets the applet to show in the viewer. |
void |
setApplet(java.lang.String applet)
Sets the applet by creating a new instance. |
void |
setArguments(java.util.List<java.lang.String> arguments)
Sets the rest of the command line arguments. |
void |
setBaseDir(java.lang.String baseDir)
Sets the base directory for the applet. |
void |
setHeight(int height)
Sets the height of the viewer frame. |
void |
setLookAndFeel(java.lang.String lookAndFeel)
Sets the name of the look and feel. |
void |
setName(java.lang.String name)
Sets the name of the applet. |
void |
setTitle(java.lang.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 java.lang.String getName()
public final void setName(java.lang.String name)
name - Name.public final java.lang.String getTitle()
public final void setTitle(java.lang.String title)
title - Frame title.public final java.lang.String getLookAndFeel()
public final void setLookAndFeel(java.lang.String lookAndFeel)
lookAndFeel - Full qualified class name.public final java.lang.String getBaseDir()
public final void setBaseDir(java.lang.String baseDir)
baseDir - Base directory.public final java.util.List<java.lang.String> getArguments()
public final void setArguments(java.util.List<java.lang.String> arguments)
arguments - Other command line parameters than options.public final java.net.URL getBaseUrl()
public final java.applet.Applet getApplet()
public final void setApplet(java.applet.Applet applet)
applet - Applet.public final void setApplet(java.lang.String applet)
applet - Full qualified applet class name.public final java.util.Map<java.lang.String,java.lang.String> getParams()
public final void addArgument(java.lang.String arg)
arg - Parameter as <key>=<value> string.
public final void addArgument(java.lang.String key,
java.lang.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 | |||||||||