|
|||||||||
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> 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 |
event
Tools for dealing with browser events. |
<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 |
os
Tools for dealing with the operating system. |
<static> Boolean |
precompiled
This is set automatically by Mozile's build tools. |
<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 |
xml
A collection of XML functions. |
<static> Object |
xpath
A collection of XPath functions. |
Method Summary | |
<static> Void
|
alert(<String> message)
Informs the user about a problem. |
<static> String
|
dumpError(object)
Dumps information from error objects. |
<static> Void
|
editAllText(<Boolean> rich)
Makes all text nodes inside editable elements editable by adding default commands to mozile.edit. |
<static> Void
|
editDocument(<Document> doc)
Makes the whole document editable. |
<static> Void
|
editElement(elementOrId)
Makes a single element editable. |
<static> Void
|
editElements(listOrValue, name, <Boolean> single)
Makes a set of elements editable. |
<static> Object
|
findModule(<String> moduleName)
Finds an object in the "mozile" hierarchy, if it exists. |
<static> String
|
findRoot()
Detects the path to this file by searching for a script with src "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> String
|
getPath(<String> url)
Strips non-path information from a URL. |
<static> Boolean
|
isPathAbsolute(<String> path)
Determines whether a path is absolute. |
<static> String
|
load(<String> uri)
A cross-browser compatible loading method. |
<static> Boolean
|
loadModule(<String> moduleName)
Tries to load a module of code. |
<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> Boolean
|
useSchema(target)
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> Object dom
<static> Object edit
<static> String emptyToken
<static> Object event
<static> Object gui
<static> String help
<static> Object homepage
<static> Object license
<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 xml
<static> Object xpath
Method Detail |
<static> Void alert(<String> message)
message
-
<static> String dumpError(object)
object
- The error object or object that the error is attached to.
<static> Void editAllText(<Boolean> rich)
rich
- Optional. When true rich editing commands are included.
<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, <Boolean> single)
listOrValue
- Either an array (or nodeList) of DOM elements or the value of an attribute (defaults to "class").
single
- Optional. When true, only one item is added.
attribute
- Optional. The name of an attribute to search for. Defaults to "class". If the value is null then the local name of the element is used (lowercase).
<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> String getPath(<String> url)
url
- The URL to strip.
<static> Boolean isPathAbsolute(<String> path)
path
- The path to check.
<static> String load(<String> uri)
uri
- The URI of the file to be loaded.
<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> Void provide()
<static> Boolean require(<String> moduleName)
moduleName
- A module name of the form "mozile.foo" or "mozile.foo.Bar".
<static> Boolean useSchema(target)
target
- The desired schema. Can be any value accepted by mozile.rng.Schema.parse().
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |