nsIControllerCommandTable
An interface via which a controller can maintain a series of commands,
and efficiently dispatch commands to their respective handlers.
Controllers that use an nsIControllerCommandTable should support
nsIInterfaceRequestor, and be able to return an interface to their
controller command table via getInterface().
Make this command table immutable, so that commands cannot
be registered or unregistered. Some command tables are made
mutable after command registration so that they can be
used as singletons.
Register and unregister commands with the command table.
aCommandName | the name of the command under which to register or unregister the given command handler. |
aCommand | the handler for this command. |
Find the command handler which has been registered to handle the named command.
aCommandName | the name of the command to find the handler for. |
Get whether the named command is enabled.
aCommandName | the name of the command to test |
aCommandRefCon | the command context data |
Tell the command to update its state (if it is a state updating command)
aCommandName | the name of the command to update |
aCommandRefCon | the command context data |
Get whether the named command is supported.
aCommandName | the name of the command to test |
aCommandRefCon | the command context data |
Execute the named command.
aCommandName | the name of the command to execute |
aCommandRefCon | the command context data |