org.pietschy.command.demo

Class DemoPanel

Implemented Interfaces:
DelegateContainer
Known Direct Subclasses:
AbstractDemoPanel, FileDemoPanel, WelcomePanel

public abstract class DemoPanel
extends JPanel
implements DelegateContainer

GUI Commands Copyright 2004 Andrew Pietsch Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. $Id: DemoPanel.java,v 1.12 2007/01/11 08:28:39 pietschy Exp $

Constructor Summary

DemoPanel(String name, String selectorId, String commandsUrl)
Creates a new JPanel with a double buffer and a flow layout.

Method Summary

ActionCommandExecutor
getCommandExecutor(String commandId)
JComponent
getCommandFileViewer()
abstract CommandGroup[]
getMenuGroups()
PageSelectCommand
getSelector()
abstract CommandGroup
getToolbarGroup()
protected void
registerDelegate(String id, ActionCommandExecutor delegate)
protected void
registerDelegate(CommandDelegate delegate)

Constructor Details

DemoPanel

public DemoPanel(String name,
                 String selectorId,
                 String commandsUrl)
Creates a new JPanel with a double buffer and a flow layout.

Method Details

getCommandExecutor

public ActionCommandExecutor getCommandExecutor(String commandId)
Specified by:
getCommandExecutor in interface DelegateContainer

getCommandFileViewer

public JComponent getCommandFileViewer()

getMenuGroups

public abstract CommandGroup[] getMenuGroups()

getSelector

public PageSelectCommand getSelector()

getToolbarGroup

public abstract CommandGroup getToolbarGroup()

registerDelegate

protected void registerDelegate(String id,
                                ActionCommandExecutor delegate)

registerDelegate

protected void registerDelegate(CommandDelegate delegate)