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

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

public class EnumComboBoxBinder
extends ComboBoxBinder

Author:
Oliver Hutchison

Field Summary
 
Fields inherited from class org.springframework.richclient.form.binding.swing.ComboBoxBinder
EDITOR_KEY, EMPTY_SELECTION_VALUE, RENDERER_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
EnumComboBoxBinder()
           
 
Method Summary
protected  void applyContext(AbstractListBinding binding, Map context)
          Applies any context or preset value.
protected  Collection createEnumSelectableItemsHolder(FormModel formModel, String formPropertyPath)
           
protected  AbstractListBinding createListBinding(JComponent control, FormModel formModel, String formPropertyPath)
          Called to create the binding instance
 LabeledEnumResolver getLabeledEnumResolver()
           
 void setEnumResolver(LabeledEnumResolver enumResolver)
           
 
Methods inherited from class org.springframework.richclient.form.binding.swing.ComboBoxBinder
createControl, getEmptySelectionValue, setEditor, setEditorClosure, setEmptySelectionValue, setRenderer, setRendererClosure
 
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
 

Constructor Detail

EnumComboBoxBinder

public EnumComboBoxBinder()
Method Detail

createListBinding

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

Overrides:
createListBinding in class ComboBoxBinder
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 ComboBoxBinder
Parameters:
binding - the binding to apply the values
context - contains context dependent values

createEnumSelectableItemsHolder

protected Collection createEnumSelectableItemsHolder(FormModel formModel,
                                                     String formPropertyPath)

getLabeledEnumResolver

public LabeledEnumResolver getLabeledEnumResolver()

setEnumResolver

public void setEnumResolver(LabeledEnumResolver enumResolver)


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