FreeHEP API
Version current

org.freehep.util.commanddispatcher
Class CommandProcessor.BooleanTarget

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

protected class CommandProcessor.BooleanTarget
extends Object
implements BooleanCommandTarget

Boolean target is an implementation of CommandTarget for command targets which can be swithced on/off. (Typically corresponding to JCheckBoxMenuItem or JRadioButtonMenuItem).

Source Code:
CommandProcessor.BooleanTarget.java

Method Summary
 void doCommand(boolean arg)
           
 void enable(CommandState state)
          Called to determine if CommandTarget is enabled or disabled.
 CommandGroup getGroup()
          Gets the CommandGroup associated with this CommandTarget.
 void invoke(boolean arg)
          Called when the on/off state changes (i.e. when the comamnd is invoked).
 
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(boolean arg)
               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(boolean arg)
Description copied from interface: BooleanCommandTarget
Called when the on/off state changes (i.e. when the comamnd is invoked).

Specified by:
invoke in interface BooleanCommandTarget

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.