public class ReadOnlyWidgetBuilder extends Object implements WidgetBuilder<org.eclipse.swt.widgets.Control,SwtMetawidget>, SwtValuePropertyProvider
Creates native SWT read-only Controls
, such as Labels
, to suit the
inspected fields.
Constructor and Description |
---|
ReadOnlyWidgetBuilder() |
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 SwtValuePropertyProvider
public org.eclipse.swt.widgets.Control buildWidget(String elementName, Map<String,String> attributes, SwtMetawidget metawidget)
WidgetBuilder
buildWidget
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.