Class mozile.util
Object
|
+--mozile.Module
|
+--mozile.util
- class
mozile.util
- extends mozile.Module
Method Summary |
<static> Object
|
capitalize(<String> string)
Makes the first character of each word in the given string uppercase and returns the new string.
|
<static> Object
|
debug(details, level, message)
Mozile Debug -
A basic debugging tool.
|
<static> String
|
dumpKeys(<Object> obj)
Output all an object's property and method names as a comma-separated string.
|
<static> String
|
dumpValues(<Object> obj)
Output all an object's keys and values as a newline separated string.
|
<static> Object
|
pad(<String> string, <Integer> length, <Boolean> left)
Pads a string with spaces.
|
messages
<static> Object messages
capitalize
<static> Object capitalize(<String> string)
Makes the first character of each word in the given string uppercase and returns the new string.
Parameters:
string
- The string to capitalize.
debug
<static> Object debug(details, level, message)
Mozile Debug -
A basic debugging tool. It logs messages to the mozileDebugArray, but only if their level exceeds the Mozile.getDebugLevel() setting, or they are marked "Status Message".
Parameters:
details
- An array of information. The first two fields are "File", and "Function" (usually a function name). Fancier debugging functions might use more fields.
level
- An integer describing the importance of the debugging message. 4="critical", 3="very important", 2="important", 1="normal", 0="not important".
message
- A string containing the debugging message.
dumpKeys
<static> String dumpKeys(<Object> obj)
Output all an object's property and method names as a comma-separated string.
dumpValues
<static> String dumpValues(<Object> obj)
Output all an object's keys and values as a newline separated string.
pad
<static> Object pad(<String> string, <Integer> length, <Boolean> left)
Pads a string with spaces.
Uses a crude caching technique.
Parameters:
string
- The string to pad.
length
- The desired length.
left
- Optional. When true the spaces are added to the beginning of the string.
Documentation generated by
JSDoc on Wed Aug 23 18:45:51 2006