public class SimpleBindingProcessor extends Object implements AdvancedWidgetProcessor<com.vaadin.ui.Component,VaadinMetawidget>, BindingConverter
Constructor and Description |
---|
SimpleBindingProcessor() |
SimpleBindingProcessor(SimpleBindingProcessorConfig config) |
Modifier and Type | Method and Description |
---|---|
Object |
convertFromString(String value,
Class<?> expectedType)
Convert the given String to the given expected type, if possible.
|
void |
onEndBuild(VaadinMetawidget metawidget)
Event called at the end of widget building, after all widgets have been built and added to
the
Layout . |
void |
onStartBuild(VaadinMetawidget metawidget)
Event called at the start of the widget building process, before the
WidgetBuilder is called. |
com.vaadin.ui.Component |
processWidget(com.vaadin.ui.Component component,
String elementName,
Map<String,String> attributes,
VaadinMetawidget metawidget)
Process the given widget.
|
void |
save(VaadinMetawidget metawidget) |
public SimpleBindingProcessor()
public SimpleBindingProcessor(SimpleBindingProcessorConfig config)
public void onStartBuild(VaadinMetawidget metawidget)
AdvancedWidgetProcessor
WidgetBuilder
is called. WidgetProcessor
s may wish to act on this
event to initialize themselves ready for processing. This event is only called once per
inspection, not once per widget built.onStartBuild
in interface AdvancedWidgetProcessor<com.vaadin.ui.Component,VaadinMetawidget>
metawidget
- the parent Metawidget. Never nullpublic com.vaadin.ui.Component processWidget(com.vaadin.ui.Component component, String elementName, Map<String,String> attributes, VaadinMetawidget metawidget)
WidgetProcessor
WidgetBuilder
, and before it is added to the Layout
.processWidget
in interface WidgetProcessor<com.vaadin.ui.Component,VaadinMetawidget>
component
- 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 nullpublic void save(VaadinMetawidget metawidget)
public void onEndBuild(VaadinMetawidget metawidget)
AdvancedWidgetProcessor
Layout
. WidgetProcessor
s may wish to act on this event to clean
themselves up after processing. This event is only called once per inspection, not once per
widget built.onEndBuild
in interface AdvancedWidgetProcessor<com.vaadin.ui.Component,VaadinMetawidget>
metawidget
- the parent Metawidget. Never nullpublic Object convertFromString(String value, Class<?> expectedType)
BindingConverter
convertFromString
in interface BindingConverter
Copyright © 2015. All Rights Reserved.