org.springframework.richclient.application.mdi.contextmenu
Class DefaultDesktopCommandGroupFactory
java.lang.Object
org.springframework.richclient.application.mdi.contextmenu.DefaultDesktopCommandGroupFactory
- All Implemented Interfaces:
- DesktopCommandGroupFactory
public class DefaultDesktopCommandGroupFactory
- extends Object
- implements DesktopCommandGroupFactory
Helper class to create a context menu for a JDesktopPane
. The
context menu contains the following items:
- tile command
- cascade command
- minimze command
- a separator
- a "show" command for each frame in the desktop pane
- Author:
- Peter De Bruycker
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultDesktopCommandGroupFactory
public DefaultDesktopCommandGroupFactory()
createWindowMenuCommandGroup
public CommandGroup createWindowMenuCommandGroup(CommandManager commandManager,
JDesktopPane desktopPane)
- Create a window menu CommandGroup
- Specified by:
createWindowMenuCommandGroup
in interface DesktopCommandGroupFactory
- Returns:
- the window menu CommandGroup
createContextMenuCommandGroup
public CommandGroup createContextMenuCommandGroup(CommandManager commandManager,
JDesktopPane desktop)
- Create a desktop pane context menu CommandGroup.
- Specified by:
createContextMenuCommandGroup
in interface DesktopCommandGroupFactory
- Returns:
- the context menu CommandGroup
setCascadeResizesFrames
public void setCascadeResizesFrames(boolean resizeFrames)
setCascadeOffset
public void setCascadeOffset(int offset)
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.