Interface nsIControllerCommandType

nsIControllerCommand

A generic command interface. You can register an nsIControllerCommand with the nsIControllerCommandTable.

Hierarchy

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Execute the name command.

    Parameters

    • aCommandName: string

      the name of the command to execute.

    • aCommandContext: nsISupports

      a cookie held by the nsIControllerCommandTable, allowing the command to get some context information. The contents of this cookie are implementation-defined.

    Returns void

  • Parameters

    • aCommandName: string
    • aParams: nsICommandParams
    • aCommandContext: nsISupports

    Returns void

  • Parameters

    • aCommandName: string
    • aParams: nsICommandParams
    • aCommandContext: nsISupports

    Returns void

  • Returns true if the command is currently enabled. An nsIControllerCommand can implement more than one commands; say, a group of related commands (e.g. delete left/delete right). Because of this, the command name is passed to each method.

    Parameters

    • aCommandName: string

      the name of the command for which we want the enabled state.

    • aCommandContext: nsISupports

      a cookie held by the nsIControllerCommandTable, allowing the command to get some context information. The contents of this cookie are implementation-defined.

    Returns boolean

Generated using TypeDoc