|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--mozile
| Nested Class Summary | |
<static class> |
mozile.Module |
| Field Summary | |
<static> Object |
about
Other Mozile information. |
<static> Object |
acknowledgements
|
<static> String |
alternateSpace
Specify a non-breaking space character to be used throughout. |
<static> Object |
browser
Tools for dealing with the browser. |
<static> Object |
copyright
|
<static> Object |
credits
|
<static> Object |
debug
Tools for debugging Mozile. |
<static> String |
defaultNS
The default namespace is null. |
<static> Array |
deferrals
An array of modules which have been required but had loading deferred. |
<static> Boolean |
deferRequirements
Indicates whether module requirements should be deferred until mozile.loadDeferred() is called. |
<static> Object |
document
|
<static> Object |
dom
A collection of DOM classes and methods. |
<static> Object |
edit
Editing tools. |
<static> String |
emptyToken
The empty token is used when there is a text node which is only a place-holder inside an empty element. |
<static> Object |
enhance
Mozilla enhancement tools. |
<static> Object |
event
Tools for dealing with browser events. |
<static> Object |
filesep
|
<static> Object |
gui
Tools for displaying a graphical user interface. |
<static> String |
help
When true, designMode will be used by Mozile in browsers that support it. |
<static> Object |
homepage
|
<static> Object |
license
|
<static> Object |
linesep
|
<static> Object |
locale
|
<static> Object |
os
Tools for dealing with the operating system. |
<static> Boolean |
precompiled
Indicates whether Mozile has been "compiled" into a single file. |
<static> Object |
rng
Tools for parsing RelaxNG schemas and validating XML documents. |
<static> Object |
root
|
<static> Object |
save
Tools for saving Mozile results. |
<static> Integer |
updateInterval
The default update interval in milliseconds. |
<static> Boolean |
useDesignMode
When true, designMode will be used by Mozile in browsers that support it. |
<static> Object |
util
A collection of utility functions. |
<static> Object |
version
Set the version number. |
<static> Object |
window
|
<static> Object |
xml
A collection of XML functions. |
<static> Object |
xpath
A collection of XPath functions. |
| Method Summary | |
<static> Object
|
_nullFunction()
|
<static> Void
|
alert(<String> message)
Informs the user about a problem. |
<static> String
|
dumpError(object)
Dumps information from error objects. |
<static> Void
|
editDocument(<Document> doc)
Makes the whole document editable. |
<static> Void
|
editElement(elementOrId)
Makes a single element editable. |
<static> Void
|
editElements(listOrValue, name)
Makes a set of elements editable. |
<static> Void
|
enableEditing(<Boolean> rich)
Makes all text nodes inside editable elements editable by adding default commands to mozile.edit. |
<static> mozile.edit.State
|
execCommand(<String> name, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
Executes the named command with the given arguments. |
<static> Object
|
findModule(<String> moduleName)
Finds an object in the "mozile" hierarchy, if it exists. |
<static> String
|
findRoot()
Searches for a script tag with src like "mozile.js". |
<static> String
|
getAbsolutePath(<String> path, <String> root)
Ensures that a path is absolute. |
<static> String
|
getDirectory(<String> path)
Gets a directory from a path. |
<static> Object
|
getLocalization(<String> moduleName, bundleName, <String> locale)
Loads a localization object for the given module, bundle, and locale. |
<static> String
|
getPath(<String> url)
Strips non-path information from a URL. |
<static> Boolean
|
isPathAbsolute(<String> path)
Determines whether a path is absolute. |
<static> String
|
joinPaths()
Concatenates any number of strings using the mozile.filesep character. |
<static> String
|
load(<String> uri)
A cross-browser compatible loading method. |
<static> Void
|
loadDeferred()
Uses require() to load each module on the deferrals list. |
<static> Boolean
|
loadModule(<String> moduleName)
Tries to load a module of code. |
<static> String
|
prompt(title, message, value, fn, scope, multiline)
Ensures that a path is absolute. |
<static> Boolean
|
protectElement(elementOrId)
Prevents a single element from editing. |
<static> Void
|
protectElements(listOrValue, name)
Protects a set of elements from editing. |
<static> Void
|
provide()
This function is used by modules to indicate what properties, methods, and classes they provide. |
<static> Boolean
|
require(<String> moduleName)
Loads a module if it has not already been loaded. |
<static> Void
|
setTarget(win)
Sets the moziel.window and mozile.document propeties based on a given window object. |
<static> Boolean
|
useSchema(<String> target, localeBundle)
Load the target RNG schema and use it as the schema for this document. |
| Field Detail |
<static> Object about
<static> Object acknowledgements
<static> String alternateSpace
<static> Object browser
<static> Object copyright
<static> Object credits
<static> Object debug
<static> String defaultNS
<static> Array deferrals
<static> Boolean deferRequirements
<static> Object document
<static> Object dom
<static> Object edit
<static> String emptyToken
<static> Object enhance
<static> Object event
<static> Object filesep
<static> Object gui
<static> String help
<static> Object homepage
<static> Object license
<static> Object linesep
<static> Object locale
<static> Object os
<static> Boolean precompiled
<static> Object rng
<static> Object root
<static> Object save
<static> Integer updateInterval
<static> Boolean useDesignMode
<static> Object util
<static> Object version
<static> Object window
<static> Object xml
<static> Object xpath
| Method Detail |
<static> Object _nullFunction()
<static> Void alert(<String> message)
message -
<static> String dumpError(object)
object - The error object or object that the error is attached to.
<static> Void editDocument(<Document> doc)
doc - Optional. The document to make editable. Defaults to the current document.
<static> Void editElement(elementOrId)
elementOrId - Either a DOM element or the id of an element.
<static> Void editElements(listOrValue, name)
listOrValue - Either an array (or nodeList) of DOM elements or the value of an attribute (defaults to the "class" attribute).
attribute - Optional. The name of an attribute to search for. Defaults to "class". If the value is "local name" then the local name of the element is used (lowercase).
<static> Void enableEditing(<Boolean> rich)
rich - Optional. When true rich editing commands are included.
<static> mozile.edit.State execCommand(<String> name, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
name - The name of the command to be executed
a - * Other optional arguments, which will be sent to the prepare() method.
<static> Object findModule(<String> moduleName)
moduleName - A module name of the form "mozile.foo" or "mozile.foo.Bar".
<static> String findRoot()
<static> String getAbsolutePath(<String> path, <String> root)
path - The path to convert.
root - An absolute root URL. If none is given the document location is used.
<static> String getDirectory(<String> path)
path - The path to use.
<static> Object getLocalization(<String> moduleName, bundleName, <String> locale)
moduleName - The name of the module to find the localization in.
locale - Optional. The locale to use. Defaults to mozile.locale.
bindleName - The particular localization file to use.
<static> String getPath(<String> url)
url - The URL to strip.
<static> Boolean isPathAbsolute(<String> path)
path - The path to check.
<static> String joinPaths()
path - Paths to join. Accepts any number of string arguments.
<static> String load(<String> uri)
uri - The URI of the file to be loaded.
<static> Void loadDeferred()
<static> Boolean loadModule(<String> moduleName)
When a file is successfully loaded it is then evaluated using eval(). Note that it is evaluated in the context of this function, which will cause problems for any variables in the file which are declared outside the "mozile" hierarchy.
moduleName - A module name of the form "mozile.foo" or "mozile.foo.Bar".
<static> String prompt(title, message, value, fn, scope, multiline)
path - The path to convert.
root - An absolute root URL. If none is given the document location is used.
<static> Boolean protectElement(elementOrId)
elementOrId - Either a DOM element or the id of an element.
<static> Void protectElements(listOrValue, name)
listOrValue - Either an array (or nodeList) of DOM elements or the value of an attribute (defaults to the "class" attribute).
attribute - Optional. The name of an attribute to search for. Defaults to "class". If the value is "local name" then the local name of the element is used (lowercase).
<static> Void provide()
<static> Boolean require(<String> moduleName)
moduleName - A module name of the form "mozile.foo" or "mozile.foo.Bar".
<static> Void setTarget(win)
<static> Boolean useSchema(<String> target, localeBundle)
target - The desired schema. Can be any value accepted by mozile.rng.Schema.parse().
localeBund - Optional. The name of the localization bundle to use. If none is given, the method uses a name based on the target.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||