org.springframework.richclient.samples.simple.ui
Class ContactView
java.lang.Object
org.springframework.richclient.application.support.ApplicationServicesAccessor
org.springframework.richclient.factory.AbstractControlFactory
org.springframework.richclient.application.support.AbstractView
org.springframework.richclient.samples.simple.ui.ContactView
- All Implemented Interfaces:
- EventListener, PropertyChangePublisher, ApplicationListener, PageComponent, View, DescribedElement, VisualizedElement, ControlFactory
public class ContactView
- extends AbstractView
- implements ApplicationListener
This class provides the main view of the contacts. It provides a table showing the contact objects and a quick filter
field to narrow down the list of visible contacts. Several commands are tied to the selection of the contacts table
By implementing special tag interfaces, this component will be automatically wired in to certain events of interest.
- ApplicationListener - This component will be automatically registered as a listener for application
events.
- Author:
- Larry Streepy
Methods inherited from class org.springframework.richclient.application.support.AbstractView |
addPropertyChangeListener, addPropertyChangeListener, canClose, close, componentClosed, componentFocusGained, componentFocusLost, componentOpened, 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 |
ContactView
public ContactView()
- Default constructor.
getContactDataStore
protected ContactDataStore getContactDataStore()
- Returns:
- the contactDataStore
setContactDataStore
public void setContactDataStore(ContactDataStore contactDataStore)
- Parameters:
contactDataStore
- the contactDataStore to set
createControl
protected JComponent createControl()
- Create the control for this view. This method is called by the platform in order to obtain the control to add to
the surrounding window and page.
- Specified by:
createControl
in class AbstractView
- Returns:
- component holding this view
registerLocalCommandExecutors
protected void registerLocalCommandExecutors(PageComponentContext context)
- Register the local command executors to be associated with named commands. This is called by the platform prior
to making the view visible.
- Overrides:
registerLocalCommandExecutors
in class AbstractView
- Parameters:
context
- the view context
onApplicationEvent
public void onApplicationEvent(ApplicationEvent e)
- Handle an application event. This will notify us of object adds, deletes, and modifications. Forward to our
object table for handling.
- Specified by:
onApplicationEvent
in interface ApplicationListener
- Parameters:
e
- event to process
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.