processWidget
public StaticXmlWidget processWidget(StaticXmlWidget widget,
String elementName,
Map<String,String> attributes,
StaticXmlMetawidget metawidget)
Process the given widget. Called after a widget has been built by the
WidgetBuilder
, and before it is added to the Layout
.
- Specified by:
processWidget
in interface WidgetProcessor<StaticXmlWidget,StaticXmlMetawidget>
- Parameters:
widget
- the widget to process. Never nullelementName
- XML node name of the business field. Typically 'entity', 'property' or 'action'.
Never nullattributes
- attributes of the widget to process. Never null. This Map is modifiable - changes
will be passed to subsequent WidgetProcessors and Layoutsmetawidget
- the parent Metawidget. Never null
- Returns:
- generally the original widget (as passed in to the first argument). Can be a
different widget if the WidgetProcessor wishes to substitute the original widget for
another. Can be null if the WidgetProcessor wishes to cancel all further processing
of this widget (including laying out)