org.jdesktop.binding.swingx
Class DirectListBinding

java.lang.Object
  extended by org.jdesktop.binding.swingx.AbstractBinding
      extended by org.jdesktop.binding.swingx.DirectListBinding
All Implemented Interfaces:
Binding

public class DirectListBinding
extends AbstractBinding

This "Binding" happens to the given DataModel as a whole (as opposed to a single field of the model).

Author:
Richard Bair

Field Summary
 
Fields inherited from class org.jdesktop.binding.swingx.AbstractBinding
cachedValue, dataModel, errorList, fieldName, metaData, modified, pulling, pushing, validState
 
Fields inherited from interface org.jdesktop.binding.swingx.Binding
AUTO_VALIDATE, AUTO_VALIDATE_NONE, AUTO_VALIDATE_STRICT, INVALID, UNVALIDATED, VALID
 
Constructor Summary
DirectListBinding(javax.swing.JList list, TabularDataModel model, java.lang.String displayFieldName, SelectionModel sm)
           
 
Method Summary
 javax.swing.JComponent getComponent()
           
protected  java.lang.Object getComponentValue()
           
 boolean isModified()
           
 boolean isValid()
           
protected  void setComponent(javax.swing.JComponent component)
          set component and configures metaData dependent logic/constraint state.
protected  void setComponentValue(java.lang.Object value)
           
 
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, installMetaDataListener, 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
 

Constructor Detail

DirectListBinding

public DirectListBinding(javax.swing.JList list,
                         TabularDataModel model,
                         java.lang.String displayFieldName,
                         SelectionModel sm)
Method Detail

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

getComponent

public javax.swing.JComponent getComponent()

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

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


Copyright © 2005 Sun Microsystems All Rights Reserved.