public class ReadOnlyWidgetBuilder extends Object implements WidgetBuilder<com.vaadin.ui.Component,VaadinMetawidget>
Creates native Vaadin read-only Components
, such as Labels
, to suit the
inspected fields.
Constructor and Description |
---|
ReadOnlyWidgetBuilder() |
Modifier and Type | Method and Description |
---|---|
com.vaadin.ui.Component |
buildWidget(String elementName,
Map<String,String> attributes,
VaadinMetawidget metawidget)
Builds the most appropriate widget for this business field.
|
public com.vaadin.ui.Component buildWidget(String elementName, Map<String,String> attributes, VaadinMetawidget metawidget)
WidgetBuilder
buildWidget
in interface WidgetBuilder<com.vaadin.ui.Component,VaadinMetawidget>
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.