public class SwtWidgetBuilder extends Object implements WidgetBuilder<org.eclipse.swt.widgets.Control,SwtMetawidget>, SwtValuePropertyProvider
Creates native SWT Controls, such as Text and Combo, to
suit the inspected fields.
| Constructor and Description |
|---|
SwtWidgetBuilder() |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.swt.widgets.Control |
buildWidget(String elementName,
Map<String,String> attributes,
SwtMetawidget metawidget)
Builds the most appropriate widget for this business field.
|
String |
getValueProperty(org.eclipse.swt.widgets.Control control)
Returns the property used to get/set the value of the control.
|
public String getValueProperty(org.eclipse.swt.widgets.Control control)
SwtValuePropertyProvider
If the control is not known, returns null.
getValueProperty in interface SwtValuePropertyProviderpublic org.eclipse.swt.widgets.Control buildWidget(String elementName, Map<String,String> attributes, SwtMetawidget metawidget)
WidgetBuilderbuildWidget in interface WidgetBuilder<org.eclipse.swt.widgets.Control,SwtMetawidget>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.