Implemented by
- @mozilla.org/editor/editorcontroller;1
- @mozilla.org/dom/window-controller;1
- @mozilla.org/embedcomp/base-command-controller;1
- @mozilla.org/editor/editordocstatecontroller;1
- @mozilla.org/editor/htmleditorcontroller;1
[scriptable, uuid(47b82b60-a36f-4167-8072-6f421151ed50)]
interface nsIControllerContext : nsISupports
Methods
Init the controller, optionally passing a controller
command table.
@param aCommandTable a command table, used internally
by this controller. May be null, in
which case the controller will create
a new, empty table.
void
init(in nsIControllerCommandTable aCommandTable)
Set a context on this controller, which is passed
to commands to give them some context when they execute.
@param aCommandContext the context passed to commands.
Note that this is *not* addreffed by the
controller, and so needs to outlive it,
or be nulled out.
void
setCommandContext(in nsISupports aCommandContext)
Compare to: