tmozIContextBar Interface Reference

Context bar. More...

List of all members.

Public Member Functions

void addProfile (in AString name)
 Add new profile.
void removeProfile (in AString name)
 Remove profile.
void addButton (in AString profileName, in AString buttonId, in AString buttonText)
 Add button.
void addSeparator (in AString profileName)
 Add separator.

Public Attributes

attribute AString activeProfile
 Active profile.


Detailed Description

Context bar.

Context bar contains context sensitive icons. Icons are organized in the profiles. Each profile has to have unique name. Profiles can be managed using addProfile, removeProfile.

Active profile is set in the variable activeProfile. It is possible to change active profile setting this variable to the name of the profile.

Profile contains list of buttons. New button can be add using addButton or addSeparator.


Member Function Documentation

void addButton ( in AString  profileName,
in AString  buttonId,
in AString  buttonText 
)

Add button.

Add new button to the existing profile.

Parameters:
profileName Name of the profile
buttonId Button id.
buttonText Button text.

void addProfile ( in AString  name  ) 

Add new profile.

Each profile has to have unique name.

Parameters:
name Profile name

void addSeparator ( in AString  profileName  ) 

Add separator.

Add new separator to the profile.

Parameters:
profileName Name of the profile.

void removeProfile ( in AString  name  ) 

Remove profile.

Remove existing profile.

Parameters:
name Profile name


Member Data Documentation

attribute AString activeProfile

Active profile.

Setting this variable to the new value will change active profile.


Generated on Thu Aug 27 12:37:06 2009 for Tahiti XPCOM API