siouxsie.desktop.commands.impl
Class AbstractToggleCommand

java.lang.Object
  extended by siouxsie.desktop.commands.impl.AbstractToggleCommand
All Implemented Interfaces:
ICommand, IToggleCommand

public abstract class AbstractToggleCommand
extends java.lang.Object
implements IToggleCommand

Convenient class for command.

Version:
$Id: AbstractToggleCommand.java 114 2008-02-22 15:04:46Z acogo $
Author:
Arnaud Cogoluegnes

Field Summary
 
Fields inherited from interface siouxsie.desktop.commands.ICommand
COMMAND_EXIT, PROPERTY_ENABLED
 
Constructor Summary
AbstractToggleCommand()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener lst)
          Add a listener interested in the command changes.
 void execute()
          Execution
 boolean isEnabled()
          Is the command enabled?
 void removePropertyChangeListener(java.beans.PropertyChangeListener lst)
          Remove a listener.
 void setEnabled(boolean enable)
          Enable/disable the action, thus all its dependant widgets.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface siouxsie.desktop.commands.IToggleCommand
execute
 

Constructor Detail

AbstractToggleCommand

public AbstractToggleCommand()
Method Detail

isEnabled

public boolean isEnabled()
Description copied from interface: ICommand
Is the command enabled?

Specified by:
isEnabled in interface ICommand
Returns:

setEnabled

public void setEnabled(boolean enable)
Description copied from interface: ICommand
Enable/disable the action, thus all its dependant widgets.

Specified by:
setEnabled in interface ICommand

execute

public void execute()
Description copied from interface: ICommand
Execution

Specified by:
execute in interface ICommand

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener lst)
Description copied from interface: ICommand
Add a listener interested in the command changes.

Specified by:
addPropertyChangeListener in interface ICommand

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener lst)
Description copied from interface: ICommand
Remove a listener.

Specified by:
removePropertyChangeListener in interface ICommand


Copyright © 2006-2008 null. All Rights Reserved.