public class DataBindingProcessor extends Object implements AdvancedWidgetProcessor<org.eclipse.swt.widgets.Control,SwtMetawidget>
eclipse.core.databinding.
This implementation does not require JFace. JFace is separate from
eclipse.core.databinding, as discussed here
https://bugs.eclipse.org/bugs/show_bug.cgi?id=153630.
Note: eclipse.core.databinding does not bind actions, such as invoking a
method when a Button is pressed. For that, see
ReflectionBindingProcessor and MetawidgetActionStyle.
| Constructor and Description |
|---|
DataBindingProcessor() |
DataBindingProcessor(DataBindingProcessorConfig config) |
| Modifier and Type | Method and Description |
|---|---|
Object |
convertFromString(String value,
Class<?> expectedType) |
void |
onEndBuild(SwtMetawidget metawidget)
Event called at the end of widget building, after all widgets have been built and added to
the
Layout. |
void |
onStartBuild(SwtMetawidget metawidget)
Event called at the start of the widget building process, before the
WidgetBuilder is called. |
org.eclipse.swt.widgets.Control |
processWidget(org.eclipse.swt.widgets.Control control,
String elementName,
Map<String,String> attributes,
SwtMetawidget metawidget)
Process the given widget.
|
void |
save(SwtMetawidget metawidget) |
public DataBindingProcessor()
public DataBindingProcessor(DataBindingProcessorConfig config)
public void onStartBuild(SwtMetawidget metawidget)
AdvancedWidgetProcessorWidgetBuilder is called. WidgetProcessors 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<org.eclipse.swt.widgets.Control,SwtMetawidget>metawidget - the parent Metawidget. Never nullpublic org.eclipse.swt.widgets.Control processWidget(org.eclipse.swt.widgets.Control control,
String elementName,
Map<String,String> attributes,
SwtMetawidget metawidget)
WidgetProcessorWidgetBuilder, and before it is added to the Layout.processWidget in interface WidgetProcessor<org.eclipse.swt.widgets.Control,SwtMetawidget>control - 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 onEndBuild(SwtMetawidget metawidget)
AdvancedWidgetProcessorLayout. WidgetProcessors 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<org.eclipse.swt.widgets.Control,SwtMetawidget>metawidget - the parent Metawidget. Never nullpublic void save(SwtMetawidget metawidget)
Copyright © 2015. All Rights Reserved.