org.springframework.richclient.form.binding.swing
Class ScrollPaneBinder

Show UML class diagram
java.lang.Object
  extended by org.springframework.richclient.application.support.ApplicationServicesAccessor
      extended by org.springframework.richclient.form.binding.support.AbstractBinder
          extended by org.springframework.richclient.form.binding.swing.ScrollPaneBinder
All Implemented Interfaces:
Binder

public class ScrollPaneBinder
extends AbstractBinder

A binder that binds a scroll pane and the scroll pane's view. If the scroll pane does not have a view a default binding will be created and set as the scroll pane's view.

Author:
Oliver Hutchison

Field Summary
 
Fields inherited from class org.springframework.richclient.form.binding.support.AbstractBinder
BINDING_CLIENT_PROPERTY_KEY, log
 
Fields inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor
logger
 
Constructor Summary
ScrollPaneBinder(BinderSelectionStrategy viewBinderSelectionStrategy, Class defaultViewType)
          Constructs a new ScrollPaneBinder
 
Method Summary
protected  JComponent createControl(Map context)
           
protected  Binding doBind(JComponent control, FormModel formModel, String formPropertyPath, Map context)
           
protected  Binding getViewBinding(JScrollPane scrollPane, FormModel formModel, String formPropertyPath, Map context)
           
protected  void validateContextKeys(Map context)
           
 
Methods inherited from class org.springframework.richclient.form.binding.support.AbstractBinder
bind, bind, getPropertyType, getRequiredSourceClass
 
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
 

Constructor Detail

ScrollPaneBinder

public ScrollPaneBinder(BinderSelectionStrategy viewBinderSelectionStrategy,
                        Class defaultViewType)
Constructs a new ScrollPaneBinder

Parameters:
viewBinderSelectionStrategy - the BinderSelectionStrategy which will be used to select a Binder for the scrollpane's view component.
defaultViewType - the type of the component that will be created and bound if the scroll pane does not already have a view
Method Detail

createControl

protected JComponent createControl(Map context)
Specified by:
createControl in class AbstractBinder

doBind

protected Binding doBind(JComponent control,
                         FormModel formModel,
                         String formPropertyPath,
                         Map context)
Specified by:
doBind in class AbstractBinder

getViewBinding

protected Binding getViewBinding(JScrollPane scrollPane,
                                 FormModel formModel,
                                 String formPropertyPath,
                                 Map context)

validateContextKeys

protected void validateContextKeys(Map context)
Overrides:
validateContextKeys in class AbstractBinder


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