public class DisplayTagWidgetBuilder extends Object implements WidgetBuilder<javax.servlet.jsp.tagext.Tag,MetawidgetTag>
For more details on DisplayTag see http://displaytag.sourceforge.net.
Constructor and Description |
---|
DisplayTagWidgetBuilder() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
addColumnTag(org.displaytag.tags.TableTag tableTag,
Map<String,String> tableAttributes,
Map<String,String> columnAttributes,
MetawidgetTag metawidgetTag)
Add a ColumnTag for the given attributes, to the given TableTag
|
protected void |
addColumnTags(org.displaytag.tags.TableTag tableTag,
Map<String,String> attributes,
NodeList elements,
MetawidgetTag metawidgetTag) |
javax.servlet.jsp.tagext.Tag |
buildWidget(String elementName,
Map<String,String> attributes,
MetawidgetTag metawidgetTag)
Builds the most appropriate widget for this business field.
|
public javax.servlet.jsp.tagext.Tag buildWidget(String elementName, Map<String,String> attributes, MetawidgetTag metawidgetTag)
WidgetBuilder
buildWidget
in interface WidgetBuilder<javax.servlet.jsp.tagext.Tag,MetawidgetTag>
elementName
- XML node name of the business field. Typically 'entity', 'property' or 'action'.
Never nullattributes
- attributes of the business field to build a widget for. Never null. This Map is
modifiable - changes will be passed to subsequent WidgetBuilders, WidgetProcessors
and LayoutsmetawidgetTag
- the parent Metawidget. Never nullprotected void addColumnTags(org.displaytag.tags.TableTag tableTag, Map<String,String> attributes, NodeList elements, MetawidgetTag metawidgetTag)
protected boolean addColumnTag(org.displaytag.tags.TableTag tableTag, Map<String,String> tableAttributes, Map<String,String> columnAttributes, MetawidgetTag metawidgetTag)
Clients can override this method to modify the column contents. For example, to place a link around the text.
tableAttributes
- the metadata attributes used to render the parent table. May be useful for
determining the overall type of the rowCopyright © 2015. All Rights Reserved.