org.springframework.richclient.samples.petclinic.ui
Class OwnerManagerView
java.lang.Object
org.springframework.richclient.application.support.ApplicationServicesAccessor
org.springframework.richclient.factory.AbstractControlFactory
org.springframework.richclient.application.support.AbstractView
org.springframework.richclient.samples.petclinic.ui.OwnerManagerView
- All Implemented Interfaces:
- EventListener, PropertyChangePublisher, ApplicationListener, PageComponent, View, DescribedElement, VisualizedElement, ControlFactory
public class OwnerManagerView
- extends AbstractView
- implements ApplicationListener
Shows the owners and their pets in a tree structure.
Several dialogs are used to show detail information or messages. Notice that we're explicitly
setting CloseAction
s to either dispose or hide the dialog as an example. Check out the default behavior of
the dialog type that you use to determine if you need to specify this as well.
- Author:
- Keith Donald, Jan Hoskens
Methods inherited from class org.springframework.richclient.application.support.AbstractView |
addPropertyChangeListener, addPropertyChangeListener, canClose, close, dispose, getCaption, getContext, getDescription, getDescriptor, getDisplayName, getIcon, getId, getImage, getStatusBar, getWindowCommandManager, getWindowControl, removePropertyChangeListener, removePropertyChangeListener, setContext, setDescriptor |
Methods inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor |
getActiveWindow, getApplication, getApplicationContext, getApplicationName, getApplicationServices, getCommandConfigurer, getComponentFactory, getConversionService, getIconSource, getImageSource, getMessage, getMessage, getMessage, getMessage, getMessages, getMessageSource, getObjectConfigurer, getService |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OwnerManagerView
public OwnerManagerView()
setClinic
public void setClinic(org.springframework.samples.petclinic.Clinic clinic)
setLastNameToDisplay
public void setLastNameToDisplay(String ownerLastName)
registerLocalCommandExecutors
protected void registerLocalCommandExecutors(PageComponentContext context)
- Description copied from class:
AbstractView
- Template method called once when this view is initialized; allows
subclasses to register local executors for shared commands with the view
context.
- Overrides:
registerLocalCommandExecutors
in class AbstractView
- Parameters:
context
- the view context
createControl
protected JComponent createControl()
- Description copied from class:
AbstractControlFactory
- Subclasses must override this method to create a new instance of the
control that this factory produces.
- Specified by:
createControl
in class AbstractView
- Returns:
- The newly created control, never null.
getTreeCellRenderer
public TreeCellRenderer getTreeCellRenderer()
onApplicationEvent
public void onApplicationEvent(ApplicationEvent e)
- Specified by:
onApplicationEvent
in interface ApplicationListener
componentClosed
public void componentClosed()
- Specified by:
componentClosed
in interface PageComponent
- Overrides:
componentClosed
in class AbstractView
componentFocusGained
public void componentFocusGained()
- Specified by:
componentFocusGained
in interface PageComponent
- Overrides:
componentFocusGained
in class AbstractView
componentFocusLost
public void componentFocusLost()
- Specified by:
componentFocusLost
in interface PageComponent
- Overrides:
componentFocusLost
in class AbstractView
componentOpened
public void componentOpened()
- Specified by:
componentOpened
in interface PageComponent
- Overrides:
componentOpened
in class AbstractView
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.