public final class LayoutProviderHelper extends Object
LayoutProviders
.Modifier and Type | Method and Description |
---|---|
static void |
addLayoutProvider(LayoutProvider layoutProvider)
Allows to add a
LayoutProvider directly. |
static org.eclipse.swt.widgets.Layout |
getColumnLayout(int numColumns,
boolean equalWidth)
Eases the access to the layout provider extension point.
|
static org.eclipse.swt.widgets.Layout |
getColumnLayout(int numColumns,
boolean equalWidth,
org.eclipse.swt.graphics.Point margins)
Eases the access to the layout provider extension point.
|
static Object |
getLayoutData(SWTGridCell gridCell,
SWTGridDescription controlGridDescription,
SWTGridDescription currentRowGridDescription,
SWTGridDescription fullGridDescription,
VElement vElement,
org.eclipse.emf.ecore.EObject domainModel,
org.eclipse.swt.widgets.Control control)
Eases the access to the layout provider extension point.
|
static Object |
getSpanningLayoutData(int spanX,
int spanY)
The layout data for a spanning layout.
|
public static org.eclipse.swt.widgets.Layout getColumnLayout(int numColumns, boolean equalWidth)
numColumns
- the number of columns to createequalWidth
- whether the columns should be equal widthLayoutProvider.getColumnLayout(int, boolean)
public static org.eclipse.swt.widgets.Layout getColumnLayout(int numColumns, boolean equalWidth, org.eclipse.swt.graphics.Point margins)
numColumns
- the number of columns to createequalWidth
- whether the columns should be equal widthmargins
- the marginsLayoutProvider.getColumnLayout(int, boolean, Point)
public static Object getLayoutData(SWTGridCell gridCell, SWTGridDescription controlGridDescription, SWTGridDescription currentRowGridDescription, SWTGridDescription fullGridDescription, VElement vElement, org.eclipse.emf.ecore.EObject domainModel, org.eclipse.swt.widgets.Control control)
gridCell
- the current SWTGridCell
controlGridDescription
- the SWTGridDescription
of the rendered VElement
currentRowGridDescription
- the SWTGridDescription
of the current rowfullGridDescription
- the SWTGridDescription
of the whole containervElement
- the VElement
which is currently rendereddomainModel
- The domain model object whose feature is currently renderedcontrol
- the rendered Control
LayoutProvider.getLayoutData(SWTGridCell, SWTGridDescription, SWTGridDescription, SWTGridDescription,
VElement, EObject, Control)
public static Object getSpanningLayoutData(int spanX, int spanY)
spanX
- the horizontal spanspanY
- the vertical spanpublic static void addLayoutProvider(LayoutProvider layoutProvider)
LayoutProvider
directly.layoutProvider
- The LayoutProvider
Copyright © 2019. All rights reserved.