Class AbstractPropertyOutput
- java.lang.Object
-
- org.apache.tapestry5.corelib.base.AbstractPropertyOutput
-
- Direct Known Subclasses:
GridCell
,PropertyDisplay
public abstract class AbstractPropertyOutput extends Object
Base class for components that output a property value using aPropertyModel
. There's a relationship between such a component and its container, as the container may provide messages in its message catalog needed by theBlock
s that render the values. In addition, the component may be passed Block parameters that are output overrides for specified properties. Subclasses will implement abeginRender()
method that invokesrenderPropertyValue(MarkupWriter, String)
.- See Also:
BeanBlockSource
-
-
Constructor Summary
Constructors Constructor Description AbstractPropertyOutput()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PropertyModel
getPropertyModel()
protected Object
renderPropertyValue(MarkupWriter writer, String overrideBlockId)
Invoked from subclasses to do the rendering.
-
-
-
Constructor Detail
-
AbstractPropertyOutput
public AbstractPropertyOutput()
-
-
Method Detail
-
getPropertyModel
protected PropertyModel getPropertyModel()
-
renderPropertyValue
protected Object renderPropertyValue(MarkupWriter writer, String overrideBlockId)
Invoked from subclasses to do the rendering. The subclass controls the naming convention for locating an overriding Block parameter (it is the name of the property possibly suffixed with a value).- Parameters:
writer
- a MarkupWriteroverrideBlockId
- the override block id- Returns:
- a Block
-
-