org.springframework.richclient.application.mdi.contextmenu
Class DefaultDesktopCommandGroupFactory

java.lang.Object
  extended by 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:

Author:
Peter De Bruycker

Constructor Summary
DefaultDesktopCommandGroupFactory()
           
 
Method Summary
 CommandGroup createContextMenuCommandGroup(CommandManager commandManager, JDesktopPane desktop)
          Create a desktop pane context menu CommandGroup.
 CommandGroup createWindowMenuCommandGroup(CommandManager commandManager, JDesktopPane desktopPane)
          Create a window menu CommandGroup
 void setCascadeOffset(int offset)
           
 void setCascadeResizesFrames(boolean resizeFrames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDesktopCommandGroupFactory

public DefaultDesktopCommandGroupFactory()
Method Detail

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.