|
Calendar Component v5.1 www.calendarcomponent.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.imagine.component.calendar.applet.util.ParameterReader
Utility class to read values of different types from an applet parameters.
| Constructor Summary | |
ParameterReader()
|
|
| Method Summary | |
static boolean |
getBoolean(javax.swing.JApplet source,
java.lang.String paramName,
boolean defaultValue)
Read a boolean value from the specified paramName. |
static java.awt.Color |
getColor(javax.swing.JApplet source,
java.lang.String paramName,
int defaultRGB)
Read a Color value from the specified paramName. |
static double |
getDoubleParam(javax.swing.JApplet source,
java.lang.String paramName,
double defaultValue)
Read a double value from the specified paramName. |
static java.awt.Font |
getFont(javax.swing.JApplet source,
java.lang.String paramName,
java.lang.String defaultName,
int defaultStyle,
int defaultSize)
Read a Font value from the specified paramName. |
static int[] |
getIntArray(javax.swing.JApplet source,
java.lang.String paramName,
int[] defaultValue)
Read an int array value from the specified paramName. |
static int |
getIntParam(javax.swing.JApplet source,
java.lang.String paramName,
int defaultValue)
Read an int value from the specified paramName. |
static int |
getIntParam(javax.swing.JApplet source,
java.lang.String paramName,
int base,
int defaultValue)
Read an int value from the specified paramName in the specified base. |
static java.lang.String |
getStringParameter(javax.swing.JApplet source,
java.lang.String paramName,
java.lang.String defaultValue)
Read a String value from the specified paramName. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ParameterReader()
| Method Detail |
public static int getIntParam(javax.swing.JApplet source,
java.lang.String paramName,
int defaultValue)
source - The source applet.paramName - The parameter from which the value is read.defaultValue - The default value returned in case the paramName is not found.
public static int getIntParam(javax.swing.JApplet source,
java.lang.String paramName,
int base,
int defaultValue)
source - The source applet.paramName - The parameter from which the value is read.base - The numeration base.defaultValue - The default value returned in case the paramName is not found.
public static double getDoubleParam(javax.swing.JApplet source,
java.lang.String paramName,
double defaultValue)
source - The source applet.paramName - The parameter from which the value is read.defaultValue - The default value returned in case the paramName is not found.
public static java.lang.String getStringParameter(javax.swing.JApplet source,
java.lang.String paramName,
java.lang.String defaultValue)
source - The source applet.paramName - The parameter from which the value is read.defaultValue - The default value returned in case the paramName is not found.
public static java.awt.Color getColor(javax.swing.JApplet source,
java.lang.String paramName,
int defaultRGB)
source - The source applet.paramName - The parameter from which the value is read.defaultRGB - The default value for color.
public static java.awt.Font getFont(javax.swing.JApplet source,
java.lang.String paramName,
java.lang.String defaultName,
int defaultStyle,
int defaultSize)
source - The source applet.paramName - The parameter from which the value is read.defaultName - The default font name.defaultStyle - The default font style.defaultSize - The default font size.
public static boolean getBoolean(javax.swing.JApplet source,
java.lang.String paramName,
boolean defaultValue)
source - The source applet.paramName - The parameter from which the value is read.defaultValue - The default value returned in case the paramName is not found.
public static int[] getIntArray(javax.swing.JApplet source,
java.lang.String paramName,
int[] defaultValue)
source - The source applet.paramName - The parameter from which the value is read.defaultValue - The default value returned in case the paramName is not found.
|
Calendar Component v5.1 www.calendarcomponent.com |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||