FUEL/0.2/API
From MozillaWiki
< FUEL/0.2
Official FUEL documentation is here, on Mozilla Developer Center
Application
Properties:
-
activeBrowser
is aBrowser
-
browsers
is anArray<Browser>
-
bookmarks
is aBookmarkFolder
Browser
Properties:
-
tabs
is anArray<Tab>
-
events
is anEvents
-
activeTab
is aTab
Methods:
-
insertBefore( Tab, Tab )
-
append( Tab )
-
open( String )
returns aTab
Tab
Properties:
-
browser
is aBrowser
-
events
is anEvents
-
document
is aDOMDocument
-
window
is aDOMWindow
-
active
is aBoolean
-
next
is aTab
(Getter/Setter) -
prev
is aTab
(Getter/Setter) -
url
is aString
(Getter/Setter) -
index
is aNumber
(Getter/Setter)
Methods:
-
query( String )
returns anArray<DOMElement>
-
focus()
-
close()
Annotations
Methods:
-
has( String )
returns boolean -
get( String )
returns value of annotation (string, boolean or number) -
set( String, String, Integer )
sets value of annotation -
remove( String )
removes the named annotation
BookmarkFolder
Properties:
-
title
is aString
(Getter/Setter) -
type
is aString
(Getter) -
description
is aString
(Getter/Setter) -
parent
is aBookmarkFolder
(Getter) -
all
is anArray<Bookmark|BookmarkFolder>
(Getter) -
annotations
is anAnnotations
(Getter) -
events
is anEvent
(Getter)
Methods:
-
addBookmark( String, String )
returns aBookmark
-
addLivemark( String, String )
returns aBookmark
-
addFolder( String )
returns aBookmarkFolder
-
remove()
removes this folder
Bookmark
Properties:
-
title
is aString
(Getter/Setter) -
type
is aString
(livemark|bookmark|separator) (Getter) -
uri
is aString
(Getter/Setter) -
description
is aString
(Getter/Setter) -
keyword
is aString
(Getter/Setter) -
parent
is aBookmarkFolder
(Getter) -
annotations
is anAnnotations
(Getter) -
events
is anEvent
(Getter)
Methods:
-
remove()