public interface SwtLayoutDecorator
All SWT Controls require a Composite be passed into their constructor. This means the Composite
must be known in advance, which prevents one from either creating a Control independent of a
Composite, or moving a Control from one Composite to another. This poses a challenge for
LayoutDecorators
, which decide how to decorate a Control after it has been
built by the WidgetBuilder
.
To work around this, SWT LayoutDecorators
implement an additional lifecycle hook
that allows them to examine the attributes and decide on a suitable Composite before
buildWidget
.
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.widgets.Composite |
startBuildWidget(String elementName,
Map<String,String> attributes,
org.eclipse.swt.widgets.Composite container,
SwtMetawidget metawidget) |
org.eclipse.swt.widgets.Composite startBuildWidget(String elementName, Map<String,String> attributes, org.eclipse.swt.widgets.Composite container, SwtMetawidget metawidget)
Copyright © 2015. All Rights Reserved.