org.springframework.richclient.samples.showcase.view
Class ViewWithInput

Show UML class diagram
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.showcase.view.ViewWithInput
All Implemented Interfaces:
PropertyChangePublisher, PageComponent, View, DescribedElement, VisualizedElement, ControlFactory

public class ViewWithInput
extends AbstractView

Author:
Peter De Bruycker

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
ViewWithInput()
           
 
Method Summary
protected  JComponent createControl()
          Subclasses must override this method to create a new instance of the control that this factory produces.
 void setInput(Object input)
          Sets the input for this 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

ViewWithInput

public ViewWithInput()
Method Detail

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.

setInput

public void setInput(Object input)
Description copied from class: AbstractView
Sets the input for this View. This method may be implemented so this View can update it's own state (ui) when this method is called.

Normally this method is called from ApplicationPage.showView(String, Object), but may also be called directly. This implementation does nothing.

Specified by:
setInput in interface View
Overrides:
setInput in class AbstractView
Parameters:
input - the input, can be null


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