public class ReflectionBindingProcessor extends Object implements WidgetProcessor<org.eclipse.swt.widgets.Control,SwtMetawidget>
This is the typical SWT approach to binding UI buttons to Java objects using
AbstractActions and reflection.
| Constructor and Description |
|---|
ReflectionBindingProcessor() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.swt.widgets.Control |
processWidget(org.eclipse.swt.widgets.Control component,
String elementName,
Map<String,String> attributes,
SwtMetawidget metawidget)
Process the given widget.
|
public org.eclipse.swt.widgets.Control processWidget(org.eclipse.swt.widgets.Control component,
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>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 nullCopyright © 2015. All Rights Reserved.