Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICommandable

An interface for commandable objects, which are part of the command design pattern. The commandable object exposes its functonality as commands and events groupped into a CommandSet.

This interface is typically implemented by controllers and is used to auto generate external interfaces.

see

CommandSet

Example

export class MyDataController implements ICommandable, IMyDataController {
  private _commandSet : MyDataCommandSet;

  public getCommandSet(): CommandSet {
    if (this._commandSet == null)
      this._commandSet = new MyDataCommandSet(this);
    return this._commandSet;
  }

  ...
}
see

CommandSet examples

Hierarchy

  • ICommandable

Index

Methods

Methods

getCommandSet

  • Gets a command set with all supported commands and events.

    see

    CommandSet

    Returns CommandSet

    a command set with commands and events.

Generated using TypeDoc