org.springframework.richclient.form.binding.swing
Class AbstractListBinding
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
- All Implemented Interfaces:
- ControlFactory, Binding
- Direct Known Subclasses:
- ComboBoxBinding, ListBinding
public abstract class AbstractListBinding
- extends AbstractBinding
- Author:
- Mathias Broekelmann
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 |
AbstractListBinding
public AbstractListBinding(JComponent component,
FormModel formModel,
String formPropertyPath,
Class requiredSourceClass)
enabledChanged
protected void enabledChanged()
- Description copied from class:
AbstractBinding
- Called when the enabled state of the bound property changes.
- Specified by:
enabledChanged
in class AbstractBinding
- See Also:
FormPropertyState
readOnlyChanged
protected void readOnlyChanged()
- Description copied from class:
AbstractBinding
- Called when the read only state of the bound property changes.
- Specified by:
readOnlyChanged
in class AbstractBinding
- See Also:
FormPropertyState
getSelectableItems
public Object getSelectableItems()
getComponent
public JComponent getComponent()
setSelectableItems
public final void setSelectableItems(Object selectableItems)
setComparator
public final void setComparator(Comparator comparator)
getComparator
public Comparator getComparator()
setFilter
public final void setFilter(Constraint filter)
doBindControl
protected final JComponent doBindControl()
- Specified by:
doBindControl
in class AbstractBinding
doBindControl
protected abstract void doBindControl(ListModel bindingModel)
selectableItemsChanged
protected void selectableItemsChanged()
createModel
protected ListModel createModel()
getFilteredModel
protected AbstractFilteredListModel getFilteredModel()
getBindingModel
protected ListModel getBindingModel()
createSortedListModel
protected ListModel createSortedListModel(ListModel listModel,
Comparator comparator)
createFilteredModel
protected AbstractFilteredListModel createFilteredModel(ListModel model,
Constraint constraint)
convertValue
protected Object convertValue(Object value,
Class targetClass)
throws org.springframework.binding.convert.ConversionException
- Converts the given object value into the given targetClass
- Parameters:
value
- the value to converttargetClass
- the target class to convert the value to
- Returns:
- the converted value
- Throws:
org.springframework.binding.convert.ConversionException
- if the value can not be converted
getDefaultModel
protected abstract ListModel getDefaultModel()
getFilter
public Constraint getFilter()
Copyright © 2004-2008 The Spring Framework. All Rights Reserved.