org.springframework.richclient.samples.petclinic.exceptionhandling
Class ExceptionHandlingView

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.petclinic.exceptionhandling.ExceptionHandlingView
All Implemented Interfaces:
PropertyChangePublisher, PageComponent, View, DescribedElement, VisualizedElement, ControlFactory

public class ExceptionHandlingView
extends AbstractView

Author:
Geoffrey De Smet

Nested Class Summary
static class ExceptionHandlingView.ValidPerson
           
 
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
ExceptionHandlingView()
           
 
Method Summary
protected  JComponent createControl()
          IMPORTANT: This code isn't a good example of how to write a view.
 
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, registerLocalCommandExecutors, 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

ExceptionHandlingView

public ExceptionHandlingView()
Method Detail

createControl

protected JComponent createControl()
IMPORTANT: This code isn't a good example of how to write a view. It's just here to prove how the exception handlers work. Take a look at the application context to see how the exception handler(s) are configured.

Specified by:
createControl in class AbstractView
Returns:
The newly created control, never null.


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