siouxsie.desktop.commands.impl
Class AbstractCommand

java.lang.Object
  extended by siouxsie.desktop.commands.impl.AbstractCommand
All Implemented Interfaces:
ICommand
Direct Known Subclasses:
ExitCommand, PreferencesCommand

public abstract class AbstractCommand
extends java.lang.Object
implements ICommand

Convenient class for command.

Version:
$Id: AbstractCommand.java 107 2008-01-09 16:05:50Z acogo $
Author:
Arnaud Cogoluegnes

Field Summary
 
Fields inherited from interface siouxsie.desktop.commands.ICommand
COMMAND_EXIT, PROPERTY_ENABLED
 
Constructor Summary
AbstractCommand()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener lst)
          Add a listener interested in the command changes.
 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.ICommand
execute
 

Constructor Detail

AbstractCommand

public AbstractCommand()
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

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.