org.jdesktop.binding.metadata
Class TabularMetaData
java.lang.Object
org.jdesktop.binding.metadata.MetaData
org.jdesktop.binding.metadata.TabularMetaData
public class TabularMetaData
- extends MetaData
MetaData for declaring a field of type TabularDataModel.
- Author:
- Jeanette Winzenburg
Fields inherited from class org.jdesktop.binding.metadata.MetaData |
converter, customProps, decodeFormat, displayWidth, encodeFormat, klass, label, maxValueCount, minValueCount, name, pcs, readOnly, validators |
Method Summary |
java.lang.String[] |
getFieldNames()
returns subset of fields to show in the asociated tabular
structure. |
java.lang.String |
getLabel()
Gets the meta-data's "label" property, which provides
a label for the associated data field. |
void |
setFieldNames(java.lang.String[] fieldNames)
sets subset of fields to show. |
Methods inherited from class org.jdesktop.binding.metadata.MetaData |
addPropertyChangeListener, addValidator, firePropertyChange, firePropertyChange, firePropertyChange, getConverter, getCustomProperty, getCustomProperty, getCustomPropertyKeys, getDecodeFormat, getDisplayWidth, getElementClass, getEncodeFormat, 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 |
TabularMetaData
public TabularMetaData()
TabularMetaData
public TabularMetaData(java.lang.String name)
TabularMetaData
public TabularMetaData(java.lang.String name,
java.lang.String label,
java.lang.String[] fieldNames)
setFieldNames
public void setFieldNames(java.lang.String[] fieldNames)
- sets subset of fields to show. null means all.
- Parameters:
fieldNames
-
getFieldNames
public java.lang.String[] getFieldNames()
- returns subset of fields to show in the asociated tabular
structure. may be null to indicate all or empty array to
indicate none (hmmm...)
- Returns:
getLabel
public java.lang.String getLabel()
- Description copied from class:
MetaData
- Gets the meta-data's "label" property, which provides
a label for the associated data field. The label is intended
for display to the end-user and may be localized.
If no label has been explicitly set, then the meta-data's name is
returned.
- Overrides:
getLabel
in class MetaData
- Returns:
- String containing the user-displayable label for the
data field
- See Also:
MetaData.setLabel(java.lang.String)
Copyright © 2005 Sun Microsystems All Rights Reserved.