org.springframework.richclient.command.support
Class WidgetViewCommand

Show UML class diagram
java.lang.Object
  extended by org.springframework.binding.value.support.AbstractPropertyChangePublisher
      extended by org.springframework.richclient.command.AbstractCommand
          extended by org.springframework.richclient.command.ActionCommand
              extended by org.springframework.richclient.command.support.ApplicationWindowAwareCommand
                  extended by org.springframework.richclient.command.support.AbstractWidgetCommand
                      extended by org.springframework.richclient.command.support.WidgetViewCommand
All Implemented Interfaces:
BeanNameAware, InitializingBean, PropertyChangePublisher, ApplicationContextAware, ApplicationWindowAware, ActionCommandExecutor, GuardedActionCommandExecutor, ParameterizableActionCommandExecutor, Authorizable, Guarded, SecurityControllable
Direct Known Subclasses:
DataEditorWidgetViewCommand

public class WidgetViewCommand
extends AbstractWidgetCommand

Widget command that shows a widget in a view


Field Summary
protected  WidgetViewDescriptor widgetViewDescriptor
           
protected  String widgetViewDescriptorId
           
 
Fields inherited from class org.springframework.richclient.command.ActionCommand
ACTION_COMMAND_PARAMETER_KEY, ACTION_COMMAND_PROPERTY, ACTION_EVENT_PARAMETER_KEY, MODIFIERS_PARAMETER_KEY
 
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
WidgetViewCommand()
           
 
Method Summary
protected  WidgetViewDescriptor createWidgetViewDescriptor()
           
protected  void doExecuteCommand()
          Shows the widget in the view
 void setAuthorized(boolean authorized)
          Set the authorized state.
 void setWidgetViewDescriptorId(String widgetViewDescriptorId)
           
 
Methods inherited from class org.springframework.richclient.command.support.AbstractWidgetCommand
getApplicationContext, getWidget, getWidgetBeanId, getWidgetComponent, setApplicationContext, setWidget, setWidgetBeanId
 
Methods inherited from class org.springframework.richclient.command.support.ApplicationWindowAwareCommand
getApplicationWindow, getParentWindowControl, setApplicationWindow
 
Methods inherited from class org.springframework.richclient.command.ActionCommand
addCommandInterceptor, addParameter, execute, execute, getActionAdapter, getActionCommand, getModifiers, getParameter, getParameter, getParameters, isAltDown, isControlDown, isDisplaysInputDialog, isMetaDown, isShiftDown, onButtonAttached, onPostExecute, onPreExecute, removeCommandInterceptor, setActionCommand, setDefaultButton, setDefaultButtonIn, setDisplaysInputDialog
 
Methods inherited from class org.springframework.richclient.command.AbstractCommand
addEnabledListener, afterPropertiesSet, attach, attach, attach, buttonIterator, createButton, createButton, createButton, createButton, createButton, createButton, createMenuItem, 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, onButtonDetached, removeEnabledListener, requestFocusIn, setBackground, setBeanName, setCaption, setCommandServices, setDefaultFaceDescriptorId, setEnabled, setFaceDescriptor, setFaceDescriptor, setFaceDescriptorRegistry, setFaceDescriptors, setForeground, setIcon, setIconInfo, setId, setLabel, setLabel, setSecurityControllerId, setVisible, 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

widgetViewDescriptor

protected WidgetViewDescriptor widgetViewDescriptor

widgetViewDescriptorId

protected String widgetViewDescriptorId
Constructor Detail

WidgetViewCommand

public WidgetViewCommand()
Method Detail

doExecuteCommand

protected void doExecuteCommand()
Shows the widget in the view

Specified by:
doExecuteCommand in class ActionCommand

setWidgetViewDescriptorId

public void setWidgetViewDescriptorId(String widgetViewDescriptorId)

createWidgetViewDescriptor

protected WidgetViewDescriptor createWidgetViewDescriptor()

setAuthorized

public void setAuthorized(boolean authorized)
Description copied from class: AbstractCommand
Set the authorized state. Setting authorized to false will override any call to AbstractCommand.setEnabled(boolean). As long as this object is unauthorized, it can not be enabled.

Specified by:
setAuthorized in interface Authorizable
Overrides:
setAuthorized in class AbstractCommand
Parameters:
authorized - Pass true if the object is to be authorized


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