|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.isti.util.BaseProperties com.isti.util.AppletProperties
public class AppletProperties
Class AppletProperties manages a table of configuration property items. For use with applets. The 'load()' method reads parameters from the HTML file that launched the applet and enters them into property items. Each item has a name, a value, a default value, a loaded-flag (set true if the item has been "loaded" from the HTML file), and a required-flag (set true if the item must be loaded from the HTML file). A vector or array of 'CfgPropItem' objects may be used to define a set of property names and default-value objects; or they be added individually. The default-value objects determine the data types for the items.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from class com.isti.util.BaseProperties |
---|
errMsgSetFlag, errorMessage, loadedCfgFname, SEPARATOR_STRING, SPECIAL_CHARS_STR |
Constructor Summary | |
---|---|
AppletProperties()
Creates an empty table of items. |
|
AppletProperties(BaseProperties basePropObj)
Creates a properties object that uses the same table of items as the given properties object. |
|
AppletProperties(CfgPropItem[] itemsArr)
Creates a table of items using the given array of 'CfgPropItem' objects. |
|
AppletProperties(java.util.Vector vec)
Creates a table of items using the given Vector of 'CfgPropItem' objects. |
Method Summary | |
---|---|
boolean |
processAppletParams(java.applet.Applet appletObj)
Attempts to read property items as parameters in the HTML document from which the given applet (or JApplet) was launched. |
boolean |
processAppletParams(java.applet.Applet appletObj,
java.lang.String cfgFnParam,
java.lang.String defCfgFnStr)
Attempts to read property items as parameters in the HTML document from which the given applet (or JApplet) was launched. |
boolean |
processQueryString(java.applet.Applet appletObj)
Process the query string. |
boolean |
processQueryString(java.net.URL urlObj)
Process the query string. |
Methods inherited from class com.isti.util.BaseProperties |
---|
add, add, add, clear, containsKey, containsKey, containsValue, elements, entrySet, equals, get, get, getDisplayString, getDisplayString, getErrorMessage, getLoadedCfgFname, hashCode, insertQuoteChars, isEmpty, keys, keySet, load, load, load, load, put, putAll, remove, remove, remove, setAllToDefaults, setErrorMessage, setIllegalCharMsg, setLoadedFlags, setUnexpectedEOFMsg, size, store, store, store, store, values |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AppletProperties()
public AppletProperties(java.util.Vector vec)
vec
- vector of itemspublic AppletProperties(CfgPropItem[] itemsArr)
itemsArr
- array of itemspublic AppletProperties(BaseProperties basePropObj)
basePropObj
- base property objectMethod Detail |
---|
public boolean processQueryString(java.applet.Applet appletObj)
appletObj
- the Applet (or JApplet) object.
public boolean processQueryString(java.net.URL urlObj)
urlObj
- the URL object.
public boolean processAppletParams(java.applet.Applet appletObj, java.lang.String cfgFnParam, java.lang.String defCfgFnStr)
appletObj
- the Applet (or JApplet) object used to fetch HTML
parameters.cfgFnParam
- a parameter name that may be used to specify a
configuration filename in the applet params (or null for none).
The configuration file is loaded before any other applet parameters
are processed.defCfgFnStr
- a default configuration filename, used if no
other configuration file name is specified in the applet params (or
null for none). This configuration file is loaded before any other
applet parameters are processed. If the file cannot be found, no
error is flagged.
public boolean processAppletParams(java.applet.Applet appletObj)
appletObj
- the Applet (or JApplet) object used to fetch HTML
parameters.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |