Drag[en]gine Script Module DragonScript  1.21
Dragengine.Gui.RunCommandActionListener Class Reference

Action listener running a command. More...

Inheritance diagram for Dragengine.Gui.RunCommandActionListener:
Dragengine.Gui.Events.DefaultActionListener Dragengine.Gui.Events.ActionListener

Public Member Functions

RunCommandActionListener new (CommandManager manager, String command)
 Create action listener. More...
 
void onAction (ActionEvent event)
 Perform action. More...
 
- Public Member Functions inherited from Dragengine.Gui.Events.DefaultActionListener
DefaultActionListener new ()
 Create default action listener. More...
 

Detailed Description

Action listener running a command.

Member Function Documentation

◆ new()

RunCommandActionListener Dragengine.Gui.RunCommandActionListener.new ( CommandManager  manager,
String  command 
)

Create action listener.

◆ onAction()

void Dragengine.Gui.RunCommandActionListener.onAction ( ActionEvent  event)

Perform action.

Command is looked up in the command manager using a string identifier. If found the command Command.start() and Command.stop() is called in this order without delay. If not found nothing is done.

Reimplemented from Dragengine.Gui.Events.DefaultActionListener.


The documentation for this class was generated from the following file: