org.springframework.richclient.samples.simple.ui
Class ContactView

java.lang.Object
  extended by org.springframework.richclient.application.support.ApplicationServicesAccessor
      extended by org.springframework.richclient.factory.AbstractControlFactory
          extended by org.springframework.richclient.application.support.AbstractView
              extended by 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.

Author:
Larry Streepy

Field Summary
 
Fields inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor
logger
 
Fields inherited from interface org.springframework.richclient.core.DescribedElement
CAPTION_PROPERTY, DESCRIPTION_PROPERTY, DISPLAY_NAME_PROPERTY
 
Constructor Summary
ContactView()
          Default constructor.
 
Method Summary
protected  JComponent createControl()
          Create the control for this view.
protected  ContactDataStore getContactDataStore()
           
 void onApplicationEvent(ApplicationEvent e)
          Handle an application event.
protected  void registerLocalCommandExecutors(PageComponentContext context)
          Register the local command executors to be associated with named commands.
 void setContactDataStore(ContactDataStore contactDataStore)
           
 
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.factory.AbstractControlFactory
createControlIfNecessary, getControl, isControlCreated, isSingleton, setSingleton
 
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
 
Methods inherited from interface org.springframework.richclient.factory.ControlFactory
getControl
 

Constructor Detail

ContactView

public ContactView()
Default constructor.

Method Detail

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.