Command

Command is an interface for extending the toolbar with your own commands. You must supply the Editor.addCommand method with an object that implements these methods. Note that you only need to implement that methods you need, since Xopus internally extends a base class with the object you supply.


Command object

methods

Command.configure( scope : Scope)
Command.execute( scope : Scope)
Command.getAvailable( scope : Scope) : Boolean
Command.getChecked( scope : Scope) : Boolean
Command.getEnabled( scope : Scope) : Boolean
Command.getLabel( scope : Scope) : String
Command.getShortcuts( scope : Scope) : Array of Strings