de.kleopatra.view.binding
Class ComboBoxBindingMetaData
java.lang.Object
de.kleopatra.view.binding.BindingMetaData
de.kleopatra.view.binding.ComboBoxBindingMetaData
- public class ComboBoxBindingMetaData
- extends BindingMetaData
BindingMetaData for use by combobox binding.
The property binding is to the selection of the combobox.
The list must be provided, either directly as List, ListModel,
Object[] or as a ValueModel wired to a list-like property.
- Version:
- $Revision: 1.4 $ - $Date: 2004/10/01 12:27:06 $
- Author:
- (C) 2004 Jeanette Winzenburg, Berlin
Methods inherited from class de.kleopatra.view.binding.BindingMetaData |
getComponentClass, getComponentName, getFocusLostTrigger, getPropertyName, getTargetClass, initDefaultCommit, isCommitOnFocusLost, setCommitOnFocusLost, setComponentClass, setComponentName, setFocusLostTrigger, setPropertyName, setTargetClass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComboBoxBindingMetaData
public ComboBoxBindingMetaData(java.lang.String componentName,
java.lang.Object model)
ComboBoxBindingMetaData
public ComboBoxBindingMetaData(java.lang.String componentName,
java.lang.String propertyName,
java.lang.Object model)
setModel
public void setModel(java.lang.Object model)
- sets the model to use for the list part of the combobox.
Must be of type List, ListModel, Object[] or ValueModel vending
one of those.
NOTE: It#s up to client code to guarantee the type returned by the
ValueModel - no way to check it here.
- Parameters:
model
-
- Throws:
java.lang.IllegalArgumentException
- if type not compatible.
getModel
public java.lang.Object getModel()
isEditable
public boolean isEditable()
setEditable
public void setEditable(boolean editable)
checkType
protected void checkType(java.lang.Object model)
- check for compatible model types.
- Throws:
java.lang.IllegalArgumentException
- if not compatible.
getDefaultEditability
protected boolean getDefaultEditability()
Copyright © 2003, 2004 SwingEmpire Jeanette Winzenburg. All Rights Reserved.