|
|
|||||
| Package com.dassault_systemes.catweb.base.catlet |
Class CommandSelector
|
| Class Hierarchy |
java.lang.Object | +-com.dassault_systemes.catweb.base.catlet.CommandSelector
| Class Location |
| Class Description |
public class CommandSelector
the command selector object role is to manage the life cycle of commands attached to a CATlet When starting, commands fire events to the command selector which suspend or stop previous running command depending on the activation mode of the new command then start the new command On the other side, when stopping, commands fire events to the command selector which stop the command then resume an old command if any
All Implemented Interfaces: CommandListener
| Field Summary |
| Constructor Summary |
| CommandSelector()
|
| Method Summary |
| public void | commandSelected(CommandEvent evt)
Called when a command ask to be started |
| public void | commandUnselected(CommandEvent evt)
called when a command ask to be stopped |
| public Command | getActiveCommand()
Return the active command for this Command Selector. |
| public CmdHeader | getDefaultHeader()
Return the default header of this command selector |
| public void | setDefaultHeader(CmdHeader defaultHeader)
set the default header for this command selector. |
| public void | start()
|
| public void | stop()
|
| Field Detail |
| Constructor Detail |
CommandSelector()
| Method Detail |
public void commandSelected(CommandEvent evt)
Called when a command ask to be started
public void commandUnselected(CommandEvent evt)
called when a command ask to be stopped
public Command getActiveCommand()
Return the active command for this Command Selector.
public CmdHeader getDefaultHeader()
Return the default header of this command selector
public void setDefaultHeader(CmdHeader defaultHeader)
set the default header for this command selector.
The default header is the header which command to start when there is no more eligible command to start
public void start()
public void stop()