FUEL/0.2/API: Difference between revisions
Jump to navigation
Jump to search
MarkFinkle (talk | contribs) No edit summary |
MarkFinkle (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
< [[FUEL/0.2]] | < [[FUEL/0.2]] | ||
__NOTOC__ | __NOTOC__ | ||
<div class="note">Official FUEL documentation is [http://developer.mozilla.org/en/docs/FUEL here], on [http://developer.mozilla.org Mozilla Developer Center]</div> | |||
=== <code>Application</code> === | === <code>Application</code> === | ||
Latest revision as of 02:20, 22 August 2007
< FUEL/0.2
Official FUEL documentation is here, on Mozilla Developer Center
Application
Properties:
activeBrowseris aBrowserbrowsersis anArray<Browser>bookmarksis aBookmarkFolder
Browser
Properties:
tabsis anArray<Tab>eventsis anEventsactiveTabis aTab
Methods:
insertBefore( Tab, Tab )append( Tab )open( String )returns aTab
Tab
Properties:
browseris aBrowsereventsis anEventsdocumentis aDOMDocumentwindowis aDOMWindowactiveis aBooleannextis aTab(Getter/Setter)previs aTab(Getter/Setter)urlis aString(Getter/Setter)indexis aNumber(Getter/Setter)
Methods:
query( String )returns anArray<DOMElement>focus()close()
Annotations
Methods:
has( String )returns booleanget( String )returns value of annotation (string, boolean or number)set( String, String, Integer )sets value of annotationremove( String )removes the named annotation
BookmarkFolder
Properties:
titleis aString(Getter/Setter)typeis aString(Getter)descriptionis aString(Getter/Setter)parentis aBookmarkFolder(Getter)allis anArray<Bookmark|BookmarkFolder>(Getter)annotationsis anAnnotations(Getter)eventsis anEvent(Getter)
Methods:
addBookmark( String, String )returns aBookmarkaddLivemark( String, String )returns aBookmarkaddFolder( String )returns aBookmarkFolderremove()removes this folder
Bookmark
Properties:
titleis aString(Getter/Setter)typeis aString(livemark|bookmark|separator) (Getter)uriis aString(Getter/Setter)descriptionis aString(Getter/Setter)keywordis aString(Getter/Setter)parentis aBookmarkFolder(Getter)annotationsis anAnnotations(Getter)eventsis anEvent(Getter)
Methods:
remove()