FreeHEP API
Version current

org.freehep.util.commanddispatcher
Class CommandProcessor.SimpleTarget

java.lang.Object
  extended byorg.freehep.util.commanddispatcher.CommandProcessor.SimpleTarget
All Implemented Interfaces:
CommandTarget, SimpleCommandTarget
Enclosing class:
CommandProcessor

protected class CommandProcessor.SimpleTarget
extends Object
implements SimpleCommandTarget

A SimpleTarget is an implementation of CommandTarget

Source Code:
CommandProcessor.SimpleTarget.java

Method Summary
 void doCommand()
           
 void enable(CommandState state)
          Called to determine if CommandTarget is enabled or disabled.
 CommandGroup getGroup()
          Gets the CommandGroup associated with this CommandTarget.
 void invoke()
          The invoke method is called to actually perform the command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getGroup

public CommandGroup getGroup()
Description copied from interface: CommandTarget
Gets the CommandGroup associated with this CommandTarget.

Specified by:
getGroup in interface CommandTarget

doCommand

public void doCommand()
               throws CommandInvocationException
Throws:
CommandInvocationException

enable

public void enable(CommandState state)
Description copied from interface: CommandTarget
Called to determine if CommandTarget is enabled or disabled.

Specified by:
enable in interface CommandTarget

invoke

public void invoke()
Description copied from interface: SimpleCommandTarget
The invoke method is called to actually perform the command.

Specified by:
invoke in interface SimpleCommandTarget

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.