public class StyleNameProcessor extends Object implements WidgetProcessor<com.google.gwt.user.client.ui.Widget,GwtMetawidget>
addStyleName
on a Widget, based on
the getStyleName
of the parent Metawidget.Constructor and Description |
---|
StyleNameProcessor() |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.user.client.ui.Widget |
processWidget(com.google.gwt.user.client.ui.Widget widget,
String elementName,
Map<String,String> attributes,
GwtMetawidget metawidget)
Process the given widget.
|
public com.google.gwt.user.client.ui.Widget processWidget(com.google.gwt.user.client.ui.Widget widget, String elementName, Map<String,String> attributes, GwtMetawidget metawidget)
WidgetProcessor
WidgetBuilder
, and before it is added to the Layout
.processWidget
in interface WidgetProcessor<com.google.gwt.user.client.ui.Widget,GwtMetawidget>
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 nullCopyright © 2015. All Rights Reserved.