public class ECPLayoutProvider extends AbstractLayoutProvider
Constructor and Description |
---|
ECPLayoutProvider() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.widgets.Layout |
getColumnLayout(int numColumns,
boolean equalWidth)
The Layout for aligning controls vertically in columns.
|
org.eclipse.swt.widgets.Layout |
getColumnLayout(int numColumns,
boolean equalWidth,
org.eclipse.swt.graphics.Point margins)
Delegates to
LayoutProvider.getColumnLayout(int, boolean) . |
Object |
getLayoutData(SWTGridCell gridCell,
SWTGridDescription controlGridDescription,
SWTGridDescription currentRowGridDescription,
SWTGridDescription fullGridDescription,
VElement vElement,
org.eclipse.emf.ecore.EObject domainModel,
org.eclipse.swt.widgets.Control control)
The LayoutData to use.
|
Object |
getSpanningLayoutData(int spanX,
int spanY)
A simple spanning Layout.
|
isMultiLine
public org.eclipse.swt.widgets.Layout getColumnLayout(int numColumns, boolean equalWidth)
LayoutProvider
numColumns
- the number of columns to createequalWidth
- whether the columns should be equal widthpublic org.eclipse.swt.widgets.Layout getColumnLayout(int numColumns, boolean equalWidth, org.eclipse.swt.graphics.Point margins)
AbstractLayoutProvider
LayoutProvider.getColumnLayout(int, boolean)
.getColumnLayout
in interface LayoutProvider
getColumnLayout
in class AbstractLayoutProvider
numColumns
- the number of columns to createequalWidth
- whether the columns should be equal widthmargins
- the margins of the layoutpublic Object getLayoutData(SWTGridCell gridCell, SWTGridDescription controlGridDescription, SWTGridDescription currentRowGridDescription, SWTGridDescription fullGridDescription, VElement vElement, org.eclipse.emf.ecore.EObject domainModel, org.eclipse.swt.widgets.Control control)
LayoutProvider
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
public Object getSpanningLayoutData(int spanX, int spanY)
LayoutProvider
spanX
- the horizontal spanspanY
- the vertical spanCopyright © 2017. All rights reserved.