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

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.AbstractListBinder
              extended by org.springframework.richclient.form.binding.swing.ListBinder
All Implemented Interfaces:
Binder

public class ListBinder
extends AbstractListBinder

Author:
Oliver Hutchison

Field Summary
static String RENDERER_KEY
           
static String SELECTION_MODE_KEY
           
 
Fields inherited from class org.springframework.richclient.form.binding.swing.AbstractListBinder
COMPARATOR_KEY, FILTER_KEY, SELECTABLE_ITEMS_KEY
 
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
ListBinder()
           
ListBinder(Class requiredSourceClass, String[] supportedContextKeys)
           
ListBinder(String[] supportedContextKeys)
           
 
Method Summary
protected  void applyContext(AbstractListBinding binding, Map context)
          Applies any context or preset value.
protected  void applyContext(ListBinding binding, Map context)
           
protected  JComponent createControl(Map context)
           
protected  AbstractListBinding createListBinding(JComponent control, FormModel formModel, String formPropertyPath)
          Called to create the binding instance
 ListCellRenderer getRenderer()
           
 Integer getSelectionMode()
           
 void setRenderer(ListCellRenderer renderer)
           
 void setSelectionMode(Integer selectionMode)
           
 
Methods inherited from class org.springframework.richclient.form.binding.swing.AbstractListBinder
decorate, doBind, getComparator, getFilter, getSelectableItems, setComparator, setFilter, setSelectableItems
 
Methods inherited from class org.springframework.richclient.form.binding.support.AbstractBinder
bind, bind, getPropertyType, getRequiredSourceClass, validateContextKeys
 
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
 

Field Detail

RENDERER_KEY

public static final String RENDERER_KEY
See Also:
Constant Field Values

SELECTION_MODE_KEY

public static final String SELECTION_MODE_KEY
See Also:
Constant Field Values
Constructor Detail

ListBinder

public ListBinder()

ListBinder

public ListBinder(String[] supportedContextKeys)

ListBinder

public ListBinder(Class requiredSourceClass,
                  String[] supportedContextKeys)
Method Detail

createListBinding

protected AbstractListBinding createListBinding(JComponent control,
                                                FormModel formModel,
                                                String formPropertyPath)
Description copied from class: AbstractListBinder
Called to create the binding instance

Specified by:
createListBinding in class AbstractListBinder
Parameters:
control - the control to bind
formModel - the formmodel with the value of the formPropertyPath field
formPropertyPath - the field path to bind
Returns:
the binding instance. Must not be null

applyContext

protected void applyContext(AbstractListBinding binding,
                            Map context)
Description copied from class: AbstractListBinder
Applies any context or preset value.

Overrides:
applyContext in class AbstractListBinder
Parameters:
binding - the binding to apply the values
context - contains context dependent values

applyContext

protected void applyContext(ListBinding binding,
                            Map context)

createControl

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

getRenderer

public ListCellRenderer getRenderer()

setRenderer

public void setRenderer(ListCellRenderer renderer)

getSelectionMode

public Integer getSelectionMode()

setSelectionMode

public void setSelectionMode(Integer selectionMode)


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