public class JspWidgetBuilder extends Object implements WidgetBuilder<StaticXmlWidget,StaticXmlMetawidget>
Constructor and Description |
---|
JspWidgetBuilder() |
JspWidgetBuilder(JspWidgetBuilderConfig config) |
Modifier and Type | Method and Description |
---|---|
protected void |
addColumnComponent(HtmlTableRow row,
CoreForEach forEach,
Map<String,String> tableAttributes,
String elementName,
Map<String,String> columnAttributes,
StaticXmlMetawidget metawidget)
Add an HtmlColumn component for the given attributes, to the given HtmlDataTable.
|
protected void |
addColumnComponents(HtmlTable table,
CoreForEach forEach,
Map<String,String> attributes,
NodeList elements,
StaticXmlMetawidget metawidget)
Adds column components to the given table.
|
protected void |
addColumnHeader(HtmlTable table,
Map<String,String> attributes,
StaticXmlMetawidget metawidget) |
protected void |
addSelectItems(HtmlSelect select,
List<String> values,
List<String> labels,
Map<String,String> attributes) |
protected void |
addSelectItems(HtmlSelect select,
String valueExpression,
Map<String,String> attributes) |
StaticXmlWidget |
buildWidget(String elementName,
Map<String,String> attributes,
StaticXmlMetawidget metawidget)
Builds the most appropriate widget for this business field.
|
protected StaticXmlWidget |
createDataTableComponent(String elementName,
Map<String,String> attributes,
StaticXmlMetawidget metawidget) |
public JspWidgetBuilder()
public JspWidgetBuilder(JspWidgetBuilderConfig config)
public StaticXmlWidget buildWidget(String elementName, Map<String,String> attributes, StaticXmlMetawidget metawidget)
WidgetBuilder
buildWidget
in interface WidgetBuilder<StaticXmlWidget,StaticXmlMetawidget>
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 Layoutsmetawidget
- the parent Metawidget. Never nullprotected StaticXmlWidget createDataTableComponent(String elementName, Map<String,String> attributes, StaticXmlMetawidget metawidget)
elementName
- such as ENTITY or PROPERTY. Can be useful in determining how to construct the EL
for the table.protected void addColumnComponents(HtmlTable table, CoreForEach forEach, Map<String,String> attributes, NodeList elements, StaticXmlMetawidget metawidget)
Clients can override this method to add additional columns, such as a 'Delete' button.
protected void addColumnHeader(HtmlTable table, Map<String,String> attributes, StaticXmlMetawidget metawidget)
protected void addColumnComponent(HtmlTableRow row, CoreForEach forEach, Map<String,String> tableAttributes, String elementName, Map<String,String> columnAttributes, StaticXmlMetawidget metawidget)
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 rowprotected void addSelectItems(HtmlSelect select, String valueExpression, Map<String,String> attributes)
Copyright © 2015. All Rights Reserved.