org.jdesktop.binding.swingx
Class TableBinding
java.lang.Object
org.jdesktop.binding.swingx.AbstractBinding
org.jdesktop.binding.swingx.TableBinding
- All Implemented Interfaces:
- Binding
public class TableBinding
- extends AbstractBinding
- implements Binding
Binding a JTable to a field in a DataModel. The field value must be
of type TabularDataModel.
PENDING: no buffering, no validation.
- Author:
- Jeanette Winzenburg
Constructor Summary |
protected |
TableBinding(javax.swing.JComponent component,
DataModel dataModel,
java.lang.String fieldName)
|
Methods inherited from class org.jdesktop.binding.swingx.AbstractBinding |
addError, addPropertyChangeListener, checkNull, checkRequired, clearValidationErrors, convertFromModelType, convertToModelType, executeValidators, firePropertyChange, getDataModel, getFieldName, getPropertyChangeListeners, getValidationErrors, getValidationPolicy, getValidState, installDataModel, installDataModelListener, installInputVerifier, isEmpty, pull, push, removePropertyChangeListener, setModified, setValidationPolicy, setValidState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableBinding
protected TableBinding(javax.swing.JComponent component,
DataModel dataModel,
java.lang.String fieldName)
isModified
public boolean isModified()
- Specified by:
isModified
in interface Binding
- Overrides:
isModified
in class AbstractBinding
- Returns:
- boolean indicating whether or not the value contained in
this binding's UI component has been modified since the
value was last pushed or pulled
isValid
public boolean isValid()
- Specified by:
isValid
in interface Binding
- Overrides:
isValid
in class AbstractBinding
- Returns:
- boolean indicating whether or not the value contained in
this binding's UI component is valid
setComponent
protected void setComponent(javax.swing.JComponent component)
- Description copied from class:
AbstractBinding
- set component and configures metaData dependent logic/constraint state.
- Specified by:
setComponent
in class AbstractBinding
installMetaDataListener
protected void installMetaDataListener()
- Description copied from class:
AbstractBinding
- here: does nothing
- Overrides:
installMetaDataListener
in class AbstractBinding
getComponentValue
protected java.lang.Object getComponentValue()
- Specified by:
getComponentValue
in class AbstractBinding
setComponentValue
protected void setComponentValue(java.lang.Object value)
- Specified by:
setComponentValue
in class AbstractBinding
getComponent
public javax.swing.JComponent getComponent()
- Specified by:
getComponent
in interface Binding
Copyright © 2005 Sun Microsystems All Rights Reserved.