Expand all

ve.ui.CommandRegistry

Extends

Constructor

new ve.ui.CommandRegistry() #

Command registry.

Methods

getCommandForNode(node) → {ve.ui.Command} #

Returns the primary command for for node.

Parameters:

Name Type Description
node ve.ce.FocusableNode

Node to get command for

Source:

Returns:

Type
ve.ui.Command
Returns the primary command for for node.

getDeleteCommandForNode(node) → {ve.ui.Command} #

Returns the delete command for for node.

Parameters:

Name Type Description
node ve.ce.FocusableNode

Node to get command for

Source:

Returns:

Type
ve.ui.Command
Returns the delete command for for node.

getNames() → {Array.<string>} #

Get a list of registered command names.

Source:

Returns:

Type
Array.<string>
Get a list of registered command names.

register(command) #

Register a command with the factory.

Parameters:

Name Type Description
command ve.ui.Command
Source:

Throws:

If command is not an instance of ve.ui.Command

Type
Error
Register a command with the factory.