to.etc.domui.component.meta.impl
Class JoinedDisplayProperty

java.lang.Object
  extended by to.etc.domui.component.meta.impl.ExpandedDisplayProperty<java.lang.String>
      extended by to.etc.domui.component.meta.impl.JoinedDisplayProperty
All Implemented Interfaces:
PropertyMetaModel<java.lang.String>, IValueAccessor<java.lang.String>, IValueTransformer<java.lang.String>

public class JoinedDisplayProperty
extends ExpandedDisplayProperty<java.lang.String>
implements IValueAccessor<java.lang.String>

A special property consisting of a list of joined properties.

Author:
Frits Jalvingh Created on Jul 28, 2008

Constructor Summary
JoinedDisplayProperty(java.util.List<DisplayPropertyMetaModel> list, java.util.List<PropertyMetaModel<?>> plist, IValueAccessor<?> rootAccessor)
           
 
Method Summary
 java.lang.String getDefaultLabel()
          Return any default label (the text to use before the control that inputs this property) for this property.
 java.lang.String getValue(java.lang.Object in)
          This creates the joined value of the items in the set.
 
Methods inherited from class to.etc.domui.component.meta.impl.ExpandedDisplayProperty
expandDisplayProperties, expandProperties, expandProperties, expandProperty, expandProperty, flatten, flatten, getActualType, getBestConverter, getClassModel, getComboDataSet, getComboDisplayProperties, getComboLabelRenderer, getComboNodeRenderer, getComponentTypeHint, getControlFactory, getConverter, getDefaultHint, getDisplayLength, getDomainValueLabel, getDomainValues, getEditRoles, getGenericActualType, getLength, getLookupFieldKeySearchProperties, getLookupFieldSearchProperties, getLookupSelectedProperties, getLookupSelectedRenderer, getLookupTableProperties, getName, getNumericPresentation, getPrecision, getPresentationString, getReadOnly, getRegexpUserString, getRegexpValidator, getRelationType, getRenderHint, getScale, getSortable, getTemporal, getValidators, getValueModel, getViewRoles, isPrimaryKey, isRequired, isTransient, setDisplayLength, setName, setRenderHint, setSortable, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface to.etc.domui.util.IValueAccessor
setValue
 

Constructor Detail

JoinedDisplayProperty

public JoinedDisplayProperty(java.util.List<DisplayPropertyMetaModel> list,
                             java.util.List<PropertyMetaModel<?>> plist,
                             IValueAccessor<?> rootAccessor)
Method Detail

getValue

public java.lang.String getValue(java.lang.Object in)
                          throws java.lang.Exception
This creates the joined value of the items in the set.

Specified by:
getValue in interface IValueTransformer<java.lang.String>
Overrides:
getValue in class ExpandedDisplayProperty<java.lang.String>
Throws:
java.lang.Exception
See Also:
IValueTransformer.getValue(java.lang.Object)

getDefaultLabel

public java.lang.String getDefaultLabel()
Description copied from interface: PropertyMetaModel
Return any default label (the text to use before the control that inputs this property) for this property. The default label is obtained from the resource file with the same location and name as the class file containing the property after doing NLS language replacement; the label text is looked up in that file as 'propertyname.label='. The code uses the "current" locale as set in NlsContext to lookup the proper resource file.

Specified by:
getDefaultLabel in interface PropertyMetaModel<java.lang.String>
Overrides:
getDefaultLabel in class ExpandedDisplayProperty<java.lang.String>
Returns:
the label text, or null if unknown.