net.sourceforge.spark.framework
Interface CommandHolder

All Known Implementing Classes:
Widget

public interface CommandHolder

Part of the Command design pattern.

The CommandHolder interface allows the implementing class to have Command's added to it the execute them after a given circumstance.

Generally, a class that implements the CommandHolder interface initiates some sort of business logic that must be performed. A use case for example.

$Source: /cvsroot/spark/spark/source/java/net/sourceforge/spark/framework/CommandHolder.java,v $
 $Log: CommandHolder.java,v $
 Revision 1.2  2005/07/24 04:03:28  afettes
 no message

 Revision 1.1  2005/07/24 03:55:32  afettes
 Initial commit to CVS.
 

Version:
$Revision: 1.2 $ - $Date: 2005/07/24 04:03:28 $
Author:
$Author: afettes $, Alastair Fettes
See Also:
Command

Method Summary
 void addCommand(Command in_command)
          Add a command to this widget to be executed.
 void removeCommand(Command in_command)
          Remove a command from this Widget.
 

Method Detail

addCommand

public void addCommand(Command in_command)
Add a command to this widget to be executed.

Parameters:
in_command - The Command to add.

removeCommand

public void removeCommand(Command in_command)
Remove a command from this Widget.

Parameters:
in_command - The Command to remove.