siouxsie.desktop.commands
Interface ICommand

All Known Subinterfaces:
IToggleCommand
All Known Implementing Classes:
AbstractCommand, AbstractToggleCommand, ExitCommand, PreferencesCommand

public interface ICommand

Interface for command (i.e. Swing actions)

Version:
$Id$
Author:
Arnaud Cogoluegnes

Field Summary
static java.lang.String COMMAND_EXIT
           
static java.lang.String PROPERTY_ENABLED
           
 
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.
 

Field Detail

COMMAND_EXIT

static final java.lang.String COMMAND_EXIT
See Also:
Constant Field Values

PROPERTY_ENABLED

static final java.lang.String PROPERTY_ENABLED
See Also:
Constant Field Values
Method Detail

setEnabled

void setEnabled(boolean enable)
Enable/disable the action, thus all its dependant widgets.

Parameters:
enable -

isEnabled

boolean isEnabled()
Is the command enabled?

Returns:

execute

void execute()
Execution


addPropertyChangeListener

void addPropertyChangeListener(java.beans.PropertyChangeListener lst)
Add a listener interested in the command changes.

Parameters:
lst -

removePropertyChangeListener

void removePropertyChangeListener(java.beans.PropertyChangeListener lst)
Remove a listener.

Parameters:
lst -


Copyright © 2006-2008 null. All Rights Reserved.