W - base class of widgets that this WidgetBuilder buildsM - Metawidget that supports this WidgetBuilderpublic interface WidgetBuilder<W,M extends W> extends Immutable
WidgetBuilders must be immutable (or, at least, appear that way to clients. They can have caches or configuration settings internally, as long as they are threadsafe).
Note: the name WidgetBuilder refers to the Builder design pattern.
W buildWidget(String elementName, Map<String,String> attributes, M metawidget)
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 nullCopyright © 2015. All Rights Reserved.