Package com.dassault_systemes.catweb.base.catlet

   
Class CommandSelector

 
Class Hierarchy
java.lang.Object
  |
  +-com.dassault_systemes.catweb.base.catlet.CommandSelector
Class Location

Framework : PortalBase

Module : PLBbase

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
void commandSelected(CommandEvent evt)
void commandUnselected(CommandEvent evt)
void setDefaultHeader(CmdHeader defaultHeader)
CmdHeader getDefaultHeader()
void start()
void stop()
Command getActiveCommand()


Field Detail

Constructor Detail

CommandSelector

    CommandSelector()


Method Detail

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