|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pscode.xui.param.Parameter
public class Parameter
A class to store information on, and determine the defined value of, parameters for running an application. The Parameter might be used by an application configured either from runtime properties, or Applet parameters.
| Constructor Summary | |
|---|---|
Parameter(Applet applet,
String name,
String type,
String description)
A minimally specified Parameter. |
|
Parameter(Applet applet,
String name,
String type,
String description,
String defaultValue)
|
|
Parameter(Applet applet,
String name,
String type,
String description,
String defaultValue,
String minValue,
String maxValue)
|
|
Parameter(String name,
String type,
String description,
String defaultValue,
String minValue,
String maxValue)
Fully specified parameter. |
|
| Method Summary | |
|---|---|
void |
configurePropertiesFromArguments(String[] args)
Sets System properties from a String[] of argument name/value pairs. |
Boolean |
getBooleanValue()
|
Color |
getColorValue()
|
Object |
getDefaultValue()
|
String |
getDescription()
|
Double |
getDoubleValue()
|
Float |
getFloatValue()
|
Integer |
getIntegerValue()
|
String |
getLongDescription()
The description, combined with default and range, if appropriate. |
Long |
getLongValue()
|
Object |
getMaxValue()
|
Object |
getMinValue()
|
String |
getName()
|
String |
getStringValue()
|
String |
getType()
|
Object |
getValue()
|
String |
getValue(Applet applet)
Provides a parameter value from the applet, or if the applet is null, the system properties. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Parameter(String name,
String type,
String description,
String defaultValue,
String minValue,
String maxValue)
throws IllegalArgumentException
IllegalArgumentException
public Parameter(Applet applet,
String name,
String type,
String description)
throws IllegalArgumentException
IllegalArgumentException
public Parameter(Applet applet,
String name,
String type,
String description,
String defaultValue)
throws IllegalArgumentException
IllegalArgumentException
public Parameter(Applet applet,
String name,
String type,
String description,
String defaultValue,
String minValue,
String maxValue)
throws IllegalArgumentException
IllegalArgumentException - If parameters are not logical and internally consistent.| Method Detail |
|---|
public String getName()
public String getDescription()
public String getLongDescription()
public String getType()
public String getValue(Applet applet)
public Object getValue()
public Color getColorValue()
public String getStringValue()
public Boolean getBooleanValue()
public Integer getIntegerValue()
public Long getLongValue()
public Float getFloatValue()
public Double getDoubleValue()
public Object getDefaultValue()
public Object getMinValue()
public Object getMaxValue()
public String toString()
toString in class Objectpublic void configurePropertiesFromArguments(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||