org.jdesktop.binding.metadata
Class SelectionInListMetaData

java.lang.Object
  extended by org.jdesktop.binding.metadata.MetaData
      extended by org.jdesktop.binding.metadata.SelectionInListMetaData

public class SelectionInListMetaData
extends MetaData

MetaData for declaring binding a ComboBox to dynamic drop-down data. NOTE: this is experimental.

Author:
Jeanette Winzenburg

Field Summary
 
Fields inherited from class org.jdesktop.binding.metadata.MetaData
converter, customProps, decodeFormat, displayWidth, encodeFormat, klass, label, maxValueCount, minValueCount, name, pcs, readOnly, validators
 
Constructor Summary
SelectionInListMetaData()
           
SelectionInListMetaData(java.lang.String name)
           
SelectionInListMetaData(java.lang.String name, java.lang.Class elementType)
           
SelectionInListMetaData(java.lang.String name, java.lang.String label, java.lang.String sourceFieldName)
           
 
Method Summary
 int getBoundColumnIndex()
           
 java.lang.String[] getDisplayFieldNames()
           
 TabularDataModel getSourceDataModel()
          returns the model for the drop-down.
 java.lang.String getSourceFieldName()
          returns bound column in the drop-down.
 void setDisplayFieldNames(java.lang.String[] displayFieldNames)
           
 void setSourceDataModel(TabularDataModel sourceDataModel)
          sets the model for the drop-down.
 void setSourceFieldName(java.lang.String sourceFieldName)
          sets the bound column in the drop-down.
 
Methods inherited from class org.jdesktop.binding.metadata.MetaData
addPropertyChangeListener, addValidator, firePropertyChange, firePropertyChange, firePropertyChange, getConverter, getCustomProperty, getCustomProperty, getCustomPropertyKeys, getDecodeFormat, getDisplayWidth, getElementClass, getEncodeFormat, getLabel, getMaxValueCount, getMinValueCount, getName, getPropertyChangeListeners, getValidators, isReadOnly, isRequired, removeCustomProperty, removePropertyChangeListener, removeValidator, setConverter, setCustomProperty, setDecodeFormat, setDisplayWidth, setElementClass, setEncodeFormat, setLabel, setMaxValueCount, setMinValueCount, setName, setReadOnly, setRequired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionInListMetaData

public SelectionInListMetaData()

SelectionInListMetaData

public SelectionInListMetaData(java.lang.String name)

SelectionInListMetaData

public SelectionInListMetaData(java.lang.String name,
                               java.lang.Class elementType)

SelectionInListMetaData

public SelectionInListMetaData(java.lang.String name,
                               java.lang.String label,
                               java.lang.String sourceFieldName)
Method Detail

setSourceFieldName

public void setSourceFieldName(java.lang.String sourceFieldName)
sets the bound column in the drop-down.

Parameters:
sourceFieldName -

getSourceFieldName

public java.lang.String getSourceFieldName()
returns bound column in the drop-down.

Returns:

getSourceDataModel

public TabularDataModel getSourceDataModel()
returns the model for the drop-down.

Returns:

setSourceDataModel

public void setSourceDataModel(TabularDataModel sourceDataModel)
sets the model for the drop-down.

Parameters:
sourceDataModel -

getDisplayFieldNames

public java.lang.String[] getDisplayFieldNames()

setDisplayFieldNames

public void setDisplayFieldNames(java.lang.String[] displayFieldNames)

getBoundColumnIndex

public int getBoundColumnIndex()


Copyright © 2005 Sun Microsystems All Rights Reserved.