FUEL/0.1/API: Difference between revisions

From MozillaWiki
< FUEL‎ | 0.1
Jump to navigation Jump to search
(Added id and name properties)
Line 86: Line 86:


'''Properties:'''
'''Properties:'''
* <code>'''id'''</code> is the id of the extension [readonly]
* <code>'''id'''</code> is a <code>String</code> [readonly]
* <code>'''name'''</code> is the name of the extension [readonly]
* <code>'''name'''</code> is a <code>String</code> [readonly]
* <code>'''toolbars'''</code> is a <code>Toolbars</code>
* <code>'''toolbars'''</code> is a <code>Toolbars</code>
* <code>'''widgets'''</code> is an <code>Array&lt;Widget&gt;</code>
* <code>'''widgets'''</code> is an <code>Array&lt;Widget&gt;</code>

Revision as of 05:50, 12 January 2007

< FUEL/0.1

Application

Properties:

  • toolbars is a Toolbars
  • extensions is an Extensions
  • events is an Events
  • prefs is a Preferences

Methods:

  • hasToolbar( String|Toolbar ) returns a Boolean
  • getToolbar( String ) returns a Toolbar
  • insertToolbar( Toolbar, Toolbar )
  • appendToolbar( Toolbar )
  • addExtension( Extension )
  • removeExtension( Extension )
  • addEvent( String, Function )
  • removeEvent( String, Function )
  • hasPref( String ) returns a Boolean
  • getPref( String, Object ) returns an Object
  • setPref( String, Object )

Events

Methods:

  • add( String, Function )
  • remove( String, Function )

Toolbars

Methods:

  • find( Object ) returns an Array<Toolbar>
  • has( String|Toolbar ) returns a Boolean
  • get( String ) returns a Toolbar
  • insert( Toolbar, Toolbar )
  • append( Toolbar )

Toolbar( String )

Properties:

  • id is a String
  • creator is an Application|Extension
  • widgets is an Array<Widget>
  • events is an Events
  • prefs is a Preferences

Methods:

  • has( String|Widget ) returns a Boolean
  • get( String ) returns a Widget
  • insert( Widget, Widget )
  • append( Widget )
  • addEvent( String, Function )
  • removeEvent( String, Function )
  • hasPref( String ) returns a Boolean
  • getPref( String, Object ) returns an Object
  • setPref( String, Object )

Widget

Properties:

  • id is a String
  • creator returns a Application|Extension
  • container returns a Toolbar

ToolbarButton( String ) inherits from Widget

Properties:

  • id is a String
  • creator returns a Application|Extension
  • container returns a Toolbar

Extensions

Methods:

  • find( Object ) returns an Array<Extension>
  • has( String|Extension ) returns a Boolean
  • get( String ) returns an Extension
  • add( Extension )

Extension( String )

Properties:

  • id is a String [readonly]
  • name is a String [readonly]
  • toolbars is a Toolbars
  • widgets is an Array<Widget>
  • events is a Events
  • prefs is a Preferences

Methods:

  • addEvent( String, Function )
  • removeEvent( String, Function )
  • hasPref( String ) returns a Boolean
  • getPref( String, Object ) returns an Object
  • setPref( String, Object )

Preferences

Properties:

  • events is an Events

Methods:

  • find( Object ) returns an Array<Object>
  • has( String ) returns a Boolean
  • get( String, Object ) returns an Object
  • set( String, Object )
  • reset( String )
  • addEvent( String, Function )
  • removeEvent( String, Function )