org.springframework.richclient.form.binding.swing
Class ScrollPaneBinder
java.lang.Object
org.springframework.richclient.application.support.ApplicationServicesAccessor
org.springframework.richclient.form.binding.support.AbstractBinder
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
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 |
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
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.