Drag[en]gine Script Module DragonScript Script API  1.0
RunCommandActionListener Class Reference

Action listener running a command. More...

Inheritance diagram for RunCommandActionListener:
DefaultActionListener 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 DefaultActionListener
DefaultActionListener new ()
 Create default action listener. More...
 
void onAction (ActionEvent event)
 Run action. More...
 

Detailed Description

Action listener running a command.

Author
Roland Pl├╝ss
Version
1.0
Date
2015

Member Function Documentation

§ new()

RunCommandActionListener new ( CommandManager  manager,
String  command 
)

Create action listener.

§ onAction()

void 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.

Implements ActionListener.


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