org.springframework.richclient.command
Interface GuardedActionCommandExecutor

All Superinterfaces:
ActionCommandExecutor, Guarded
All Known Implementing Classes:
AboutCommand, AbstractActionCommandExecutor, AbstractCommand, AbstractReporterForm.StateSynchronizingToggleCommand, ActionCommand, AdjustFontSizeCommand, ApplicationWindowAwareCommand, CascadeCommand, CommandGroup, DialogCommand, ExclusiveCommandGroup, ExitCommand, HelpContentsCommand, HibernateExceptionHandlerCommand, JXErrorDialogExceptionHandlerCommand, LoginCommand, LogoutCommand, MessagesDialogExceptionHandlerCommand, MinimizeAllCommand, NewWindowCommand, PreferenceCommand, ShowFrameCommand, ShowPageCommand, ShowPageMenu, ShowViewCommand, ShowViewMenu, SortTableCommand, TargetableActionCommand, TileCommand, TitleBarTimeStampCommand, ToggleCommand

public interface GuardedActionCommandExecutor
extends Guarded, ActionCommandExecutor

An ActionCommandExecutor that can be enabled or disabled, with optional listeners for these state changes.

Author:
Keith Donald

Method Summary
 void addEnabledListener(PropertyChangeListener listener)
          Adds the given listener to the collection of listeners that will be notified when the command executor's enabled state changes.
 void removeEnabledListener(PropertyChangeListener listener)
          Removes the given listener from the collection of listeners that will be notified when the command executor's enabled state changes.
 
Methods inherited from interface org.springframework.richclient.core.Guarded
isEnabled, setEnabled
 
Methods inherited from interface org.springframework.richclient.command.ActionCommandExecutor
execute
 

Method Detail

addEnabledListener

void addEnabledListener(PropertyChangeListener listener)
Adds the given listener to the collection of listeners that will be notified when the command executor's enabled state changes.

Parameters:
listener - The listener to be added.

removeEnabledListener

void removeEnabledListener(PropertyChangeListener listener)
Removes the given listener from the collection of listeners that will be notified when the command executor's enabled state changes.

Parameters:
listener - The listener to be removed.


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.