org.springframework.richclient.form.binding.swing
Class EnumComboBoxBinder
java.lang.Object
org.springframework.richclient.application.support.ApplicationServicesAccessor
org.springframework.richclient.form.binding.support.AbstractBinder
org.springframework.richclient.form.binding.swing.AbstractListBinder
org.springframework.richclient.form.binding.swing.ComboBoxBinder
org.springframework.richclient.form.binding.swing.EnumComboBoxBinder
- All Implemented Interfaces:
- Binder
public class EnumComboBoxBinder
- extends ComboBoxBinder
- 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 |
EnumComboBoxBinder
public EnumComboBoxBinder()
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 bindformModel
- the formmodel with the value of the formPropertyPath
fieldformPropertyPath
- 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 valuescontext
- 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.