org.jdesktop.swing.binding
Class ComboBoxBinding
java.lang.Object
org.jdesktop.swing.binding.AbstractBinding
org.jdesktop.swing.binding.ComboBoxBinding
- All Implemented Interfaces:
- Binding
- public class ComboBoxBinding
- extends AbstractBinding
Class which binds a component that supports setting a one-of-many
value (JComboBox) to a data model field which is may be an arbitrary type.
| Methods inherited from class org.jdesktop.swing.binding.AbstractBinding |
addError, addPropertyChangeListener, clearValidationErrors, convertFromModelType, convertToModelType, executeValidators, getDataModel, getFieldName, getPropertyChangeListeners, getValidationErrors, getValidationPolicy, getValidState, isModified, isValid, pull, push, removePropertyChangeListener, setModified, setValidationPolicy |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComboBoxBinding
public ComboBoxBinding(JComboBox combobox,
DataModel dataModel,
String fieldName)
getComponent
public JComponent getComponent()
- Specified by:
getComponent in interface Binding- Specified by:
getComponent in class AbstractBinding
setComponent
protected void setComponent(JComponent component)
- Specified by:
setComponent in class AbstractBinding
getComponentValue
protected Object getComponentValue()
- Specified by:
getComponentValue in class AbstractBinding
setComponentValue
protected void setComponentValue(Object value)
- Specified by:
setComponentValue in class AbstractBinding
Copyright 2004 by Sun Microsystems, Inc. All Rights Reserved.