org.apache.tapestry5.corelib.components
Class BeanDisplay
java.lang.Object
org.apache.tapestry5.corelib.components.BeanDisplay
@SupportsInformalParameters
public class BeanDisplay
- extends Object
Used to display the properties of a bean, using an underlying BeanModel. The output definition list: a
<dl> element containing a series of <dt>/<dd> pairs. The property label is used as the <dt>
and the property value (formatted as per the datatype) is the <dd>. Only properties that have a known data type
are displayed.
The property id is used as the class attribute of the <dt> and <dd> element, allowing CSS customization
per property. This does not occur when lean is bound to true.
The outer <dl> element has the CSS class "t-beandisplay".
- See Also:
DataType,
BeanModel
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanDisplay
public BeanDisplay()
getPropertyModel
public PropertyModel getPropertyModel()
- Returns the property model for the current property.
getPropertyClass
public String getPropertyClass()
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.