org.springframework.richclient.form.binding.swing
Class ComboBoxBinding
java.lang.Object
org.springframework.richclient.application.support.ApplicationServicesAccessor
org.springframework.richclient.factory.AbstractControlFactory
org.springframework.richclient.form.binding.support.AbstractBinding
org.springframework.richclient.form.binding.swing.AbstractListBinding
org.springframework.richclient.form.binding.swing.ComboBoxBinding
- All Implemented Interfaces:
- ControlFactory, Binding
- Direct Known Subclasses:
- EnumComboBoxBinding
public class ComboBoxBinding
- extends AbstractListBinding
TODO: support for filters
- Author:
- Oliver Hutchison
Methods inherited from class org.springframework.richclient.form.binding.swing.AbstractListBinding |
convertValue, createFilteredModel, createModel, createSortedListModel, doBindControl, enabledChanged, getBindingModel, getComparator, getComponent, getFilter, getFilteredModel, getSelectableItems, readOnlyChanged, selectableItemsChanged, setComparator, setFilter, setSelectableItems |
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 |
Methods inherited from interface org.springframework.richclient.form.binding.Binding |
getControl |
ComboBoxBinding
public ComboBoxBinding(FormModel formModel,
String formPropertyPath)
ComboBoxBinding
public ComboBoxBinding(JComboBox comboBox,
FormModel formModel,
String formPropertyPath)
ComboBoxBinding
public ComboBoxBinding(JComboBox comboBox,
FormModel formModel,
String formPropertyPath,
Class requiredSourceClass)
doBindControl
protected void doBindControl(ListModel bindingModel)
- Specified by:
doBindControl
in class AbstractListBinding
getDefaultModel
protected ListModel getDefaultModel()
- Specified by:
getDefaultModel
in class AbstractListBinding
getRenderer
public ListCellRenderer getRenderer()
getComboBox
public JComboBox getComboBox()
setRenderer
public void setRenderer(ListCellRenderer renderer)
setEditor
public void setEditor(ComboBoxEditor comboBoxEditor)
getEditor
public ComboBoxEditor getEditor()
setEmptySelectionValue
public void setEmptySelectionValue(Object value)
- Parameters:
value
-
getEmptySelectionValue
public Object getEmptySelectionValue()
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.