|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--MozileCommand | +--MozileCommandList
Defined in interface.js
Field Summary | |
<static> Object |
superclass
|
Fields inherited from class MozileCommand |
type, id, label, tooltip, image, accesskey, accelerator, namespace, debugLevel, button, menuitem
|
Constructor Summary | |
MozileCommandList
()
|
Method Summary | |
Object
|
createBox()
Mozile Command List - Create Box - Creates an XUL box to hold the buttons fro this command list. |
Object
|
createButton()
Mozile Command List - Create Button - Creates an XUL button for this command list. |
Object
|
createCommand(configString)
Mozile Command List - Create Command - Creates a new command object from a configuration string, registers it with the "mozile" object, and attaches it to this MozileCommandList. |
Object
|
createMenu()
Mozile Command List - Create Menu - Creates an XUL menu element for this command. |
Object
|
registerCommand(command, buttonPosition, menuPosition)
Mozile Command List - Register Command - Registers a command with this command list object and the "mozile" object. |
Object
|
unregisterCommand(id)
Mozile Command List - Unregister Command - Removes a command from the local and global commandLists, as well as the buttonList and menuList. |
Object
|
updateBox()
Mozile Command List - Update Box - Updates the state of all the buttons for this command. |
Object
|
updateMenu()
Mozile Command List - Update Menu - Updates the state of the menu for this command. |
Methods inherited from class MozileCommand |
init, debug, createMenuitem, isActive, update, command
|
Field Detail |
<static> Object superclass
Constructor Detail |
MozileCommandList()
Method Detail |
Object createBox()
Object createButton()
Object createCommand(configString)
configString
- A configuration string which describes the command to be created.
Object createMenu()
Object registerCommand(command, buttonPosition, menuPosition)
buttonPosition
- An integer indicating the index in the buttonList where this command's button should be added. If none is given, it is added to the end of the list.
menuPosition
- An integer indicating the index in the menuList where this command's menuitem should be added. If none is given, it is added to the end of the list.
commadn
- The command object to be registered.
Object unregisterCommand(id)
id
- The id of the command to be removed.
Object updateBox()
Object updateMenu()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |