|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--MozileComponent | +--MozileInterface
Defined in interface.js
Constructor Summary | |
MozileInterface
(elementOrPath, <String> configString)
Subclass of MozileComponent designed for manipulating interfaces (e.g. |
Method Summary | |
Element
|
getElement()
Gets the root element for the interface. |
Element
|
getParent()
Returns the parent of the interface's root element, finding it if necessary. |
Void
|
hide()
Hide the interface. |
Void
|
init()
Initialize the interface. |
Void
|
reposition()
Center the interface in the window. |
Void
|
show()
Reveal the interface. |
Methods inherited from class MozileComponent |
toString, getName, getConfigString, getOptions, getOption, setOption, _cleanOption
|
Constructor Detail |
MozileInterface(elementOrPath, <String> configString)
elementOrPath
- Either the root element for the interface or a string with the path to an external XML document. In the latter case the documentElement of the external document will become the element for this interface.
configString
- A properly formatted configuration string.
Method Detail |
Element getElement()
If the interface was created with an element, that element will be returned. If the interface was created with a URL, then we try to load the URL and get the documentElement. If this script was injected by the Mozile Extension, then we require a bit of a hack: the Extension will have also injected the interface, so instead of fetching it we look for its id instead.
Element getParent()
Void hide()
Void init()
Void reposition()
Void show()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |