org.pietschy.command.delegate
Interface DelegateContainer
- AbstractDemoPanel, DemoPanel, FaceDemoPanel, FileDemoPanel, GroupDemoPanel, ScriptDemoPanel, ToggleDemoPanel, UndoDemoPanel, WelcomePanel
public interface DelegateContainer
The DelgateContainer interface marks a JComponent as being a provider of
CommandDelegate
s.
The
DelegateManager
tracks focus changes and searches up the components heirarchy to locate
the first container implementing this interface.
DelegatingCommand
s use the
DelegateManager
to automatically bind to their associated delegates when the focus changes.
getCommandExecutor
public ActionCommandExecutor getCommandExecutor(String commandId)
Gets the specifed command from this container. If the command isn't registered with this
container then the request is delegated to the containers parent.
commandId
- the commands id.
- the command with the specified id, or null if it hasn't been registered
with this container of one of its parents.