Class MozileComponent
Object
|
+--MozileComponent
-
Direct Known Subclasses:
-
MozileInterface, MozileCommand, MozileEditor, MozileMediator, MozileModule
- class
MozileComponent
Defined in core.js
Constructor Summary |
MozileComponent
(<String> configString)
Mozile Component -
Class defining Mozile components with subclasses for modules, commands, and the mediator.
|
Method Summary |
Object
|
_cleanOption(val)
Tries to convert a string into a number or boolean.
|
String
|
getConfigString()
|
String
|
getName()
Get the name from the config string.
|
String
|
getOption(<String> key, defaultValue)
Gets a value from the options for a given key
|
Object
|
getOptions()
|
Object
|
setOption(<String> key, value)
Gets a value from the options for a given key
|
MozileComponent
MozileComponent(<String> configString)
Mozile Component -
Class defining Mozile components with subclasses for modules, commands, and the mediator.
Configuration String format (some options may conflict): "root='path/to/mozile', mode=XHTML, namespace='http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd', keyboardShortcuts=true, toolbarPosition=fixed, toolbarUpdateFrequency=2, warnBeforeUnload=true, debugLevel=0". See the notes for "Mozile.parseConfig" for proper configuration string format.
Parameters:
configString
- A properly formatted configuration string.
_cleanOption
Object _cleanOption(val)
Tries to convert a string into a number or boolean.
getConfigString
String getConfigString()
Returns:
The configuration string.
getName
String getName()
Get the name from the config string. It will be the first word.
getOption
String getOption(<String> key, defaultValue)
Gets a value from the options for a given key
Parameters:
defaultValue
- Optional. If this is given and the key does not exist then defaultValue is assigned and returned.
Returns:
The value if found or the defaultValue if given. Otherwise undefined.
getOptions
Object getOptions()
Returns:
The options object -- treat as a named key-value array or a hash table.
setOption
Object setOption(<String> key, value)
Gets a value from the options for a given key
Documentation generated by
JSDoc on Thu Feb 16 20:20:37 2006