org.springframework.richclient.command.support
Class ShowViewMenu

java.lang.Object
  extended by org.springframework.binding.value.support.AbstractPropertyChangePublisher
      extended by org.springframework.richclient.command.AbstractCommand
          extended by org.springframework.richclient.command.CommandGroup
              extended by org.springframework.richclient.command.support.ShowViewMenu
All Implemented Interfaces:
BeanNameAware, InitializingBean, PropertyChangePublisher, ApplicationWindowAware, ActionCommandExecutor, GuardedActionCommandExecutor, Authorizable, Guarded, SecurityControllable

public class ShowViewMenu
extends CommandGroup
implements ApplicationWindowAware

A menu containing a collection of sub-menu items that each display a given view.

Author:
Keith Donald

Field Summary
static String ID
          The identifier of this command.
 
Fields inherited from class org.springframework.richclient.command.AbstractCommand
ENABLED_PROPERTY_NAME, VISIBLE_PROPERTY_NAME
 
Fields inherited from class org.springframework.binding.value.support.AbstractPropertyChangePublisher
logger
 
Fields inherited from interface org.springframework.richclient.core.Authorizable
AUTHORIZED_PROPERTY
 
Constructor Summary
ShowViewMenu()
          Creates a new ShowViewMenu with an id of "showViewMenu".
 
Method Summary
 void afterPropertiesSet()
          Called after dependencies have been set, populates this menu with action command objects that will each show a given view when executed.
 void setApplicationWindow(ApplicationWindow window)
          Sets the reference to the application window that this object was created within.
 
Methods inherited from class org.springframework.richclient.command.CommandGroup
add, add, add, add, addCommandsToGroupContainer, addComponentInternal, addGlue, addGlue, addGlueInternal, addGroupListener, addInternal, addLazyInternal, addSeparator, addSeparator, addSeparatorInternal, contains, createButton, createButton, createButton, createButton, createButton, createButtonBar, createButtonBar, createButtonBar, createButtonBar, createButtonBar, createButtonStack, createButtonStack, createButtonStack, createButtonStack, createButtonStack, createCommandGroup, createCommandGroup, createCommandGroup, createCommandGroup, createExclusiveCommandGroup, createExclusiveCommandGroup, createExclusiveCommandGroup, createMenuBar, createMenuBar, createMenuItem, createPopupMenu, createPopupMenu, createToolBar, createToolBar, execute, find, fireMembersChanged, getCommandRegistry, getMemberCount, getMemberList, getPullDownMenuButtonConfigurer, isAllowedMember, memberIterator, rebuildAllControls, remove, remove, remove, remove, removeGroupListener, reset, setCommandRegistry, setEnabled, setVisible, size
 
Methods inherited from class org.springframework.richclient.command.AbstractCommand
addEnabledListener, attach, attach, attach, buttonIterator, createButton, createButton, createButton, createButton, createButton, createMenuItem, createMenuItem, createMenuItem, createMenuItem, createMenuItem, defaultButtonIterator, detach, getAccelerator, getButtonFactory, getButtonIn, getCommandServices, getComponentFactory, getDefaultButtonConfigurer, getDefaultFaceDescriptorId, getFaceDescriptor, getFaceDescriptorRegistry, getIcon, getId, getMenuFactory, getMenuItemButtonConfigurer, getMnemonic, getMnemonicIndex, getSecurityControllerId, getText, getToolBarButtonConfigurer, getToolBarButtonFactory, isAnonymous, isAttached, isAuthorized, isEnabled, isFaceConfigured, isVisible, onButtonAttached, onButtonDetached, removeEnabledListener, requestFocusIn, setAuthorized, setBeanName, setCaption, setCommandServices, setDefaultFaceDescriptorId, setFaceDescriptor, setFaceDescriptor, setFaceDescriptorRegistry, setFaceDescriptors, setIcon, setIconInfo, setId, setLabel, setLabel, setSecurityControllerId, toString, updatedEnabledState, updatedVisibleState
 
Methods inherited from class org.springframework.binding.value.support.AbstractPropertyChangePublisher
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, firePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasChanged, hasChanged, hasChanged, hasChanged, hasChanged, hasChanged, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final String ID
The identifier of this command.

See Also:
Constant Field Values
Constructor Detail

ShowViewMenu

public ShowViewMenu()
Creates a new ShowViewMenu with an id of "showViewMenu".

Method Detail

setApplicationWindow

public void setApplicationWindow(ApplicationWindow window)
Sets the reference to the application window that this object was created within.

Specified by:
setApplicationWindow in interface ApplicationWindowAware
Parameters:
window - The application window containing this component.

afterPropertiesSet

public void afterPropertiesSet()
Called after dependencies have been set, populates this menu with action command objects that will each show a given view when executed. The collection of 'show view' commands will be determined by querying the ViewDescriptorRegistry retrieved from ApplicationServices.

Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class AbstractCommand


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