Package com.dassault_systemes.catweb.base.catlet |
java.lang.Object
|
+-com.dassault_systemes.catweb.base.catlet.CommandSelector
Framework : PortalBase
Module : PLBbase
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
CommandSelector
CommandSelector()
commandSelected
void commandSelected(CommandEvent evt)
Called when a command ask to be started
commandUnselected
void commandUnselected(CommandEvent evt)
called when a command ask to be stopped
setDefaultHeader
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
getDefaultHeader
CmdHeader getDefaultHeader()
Return the default header of this command selector
start
void start()
stop
void stop()
getActiveCommand
Command getActiveCommand()
Return the active command for this Command Selector.
Copyright © 2000, Dassault Systèmes. All rights reserved