org.eclipse.emf.ecp.view.swt.internal.layout
Class ECPLayoutProvider
java.lang.Object
org.eclipse.emf.ecp.view.spi.swt.layout.AbstractLayoutProvider
org.eclipse.emf.ecp.view.swt.internal.layout.ECPLayoutProvider
- All Implemented Interfaces:
- LayoutProvider
public class ECPLayoutProvider
- extends AbstractLayoutProvider
ECPLayoutProvider
public ECPLayoutProvider()
getColumnLayout
public org.eclipse.swt.widgets.Layout getColumnLayout(int numColumns,
boolean equalWidth)
- Description copied from interface:
LayoutProvider
- The Layout for aligning controls vertically in columns.
- Parameters:
numColumns
- the number of columns to createequalWidth
- whether the columns should be equal width
- Returns:
- the layout to use
getLayoutData
public Object getLayoutData(SWTGridCell gridCell,
SWTGridDescription controlGridDescription,
SWTGridDescription currentRowGridDescription,
SWTGridDescription fullGridDescription,
VElement vElement,
org.eclipse.swt.widgets.Control control)
- Description copied from interface:
LayoutProvider
- The LayoutData to use.
- Parameters:
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 renderedcontrol
- the rendered Control
- Returns:
- the Object being the layout data to set
getSpanningLayoutData
public Object getSpanningLayoutData(int spanX,
int spanY)
- Description copied from interface:
LayoutProvider
- A simple spanning Layout.
- Parameters:
spanX
- the horizontal spanspanY
- the vertical span
- Returns:
- the created Layout Data
Copyright © 2014. All Rights Reserved.