dwv.tool. RunFilterCommand

new RunFilterCommand(filter, app)

Run filter command.

Parameters:
NameTypeDescription
filterobject

The filter to run.

appdwv.App

The associated application.

Methods

execute()

Execute the command.

getName() → {string}

Get the command name.

Returns:

The command name.

Type: 
string

onExecute(_event)

Handle an execute event.

Parameters:
NameTypeDescription
_eventobject

The execute event with type and id.

onUndo(_event)

Handle an undo event.

Parameters:
NameTypeDescription
_eventobject

The undo event with type and id.

undo()

Undo the command.

Events

filterrun

Filter run event.

Type:
  • object
Properties
NameTypeDescription
typestring

The event type: filterrun.

idnumber

The id of the run command.

filterundo

Filter undo event.

Type:
  • object
Properties
NameTypeDescription
typestring

The event type: filterundo.

idnumber

The id of the undone run command.