org.eclipse.emf.ecp.view.spi.swt.layout
Interface LayoutProvider

All Known Implementing Classes:
AbstractLayoutProvider, ECPLayoutProvider

public interface LayoutProvider

By providing an own implementation, the layout of the application can be influenced.

Since:
1.3
Author:
Eugen Neufeld

Method Summary
 org.eclipse.swt.widgets.Layout getColumnLayout(int numColumns, boolean equalWidth)
          The Layout for aligning controls vertically in columns.
 Object getLayoutData(SWTGridCell gridCell, SWTGridDescription controlGridDescription, SWTGridDescription currentRowGridDescription, SWTGridDescription fullGridDescription, VElement vElement, org.eclipse.swt.widgets.Control control)
          The LayoutData to use.
 Object getSpanningLayoutData(int spanX, int spanY)
          A simple spanning Layout.
 

Method Detail

getColumnLayout

org.eclipse.swt.widgets.Layout getColumnLayout(int numColumns,
                                               boolean equalWidth)
The Layout for aligning controls vertically in columns.

Parameters:
numColumns - the number of columns to create
equalWidth - whether the columns should be equal width
Returns:
the layout to use

getLayoutData

Object getLayoutData(SWTGridCell gridCell,
                     SWTGridDescription controlGridDescription,
                     SWTGridDescription currentRowGridDescription,
                     SWTGridDescription fullGridDescription,
                     VElement vElement,
                     org.eclipse.swt.widgets.Control control)
The LayoutData to use.

Parameters:
gridCell - the current SWTGridCell
controlGridDescription - the SWTGridDescription of the rendered VElement
currentRowGridDescription - the SWTGridDescription of the current row
fullGridDescription - the SWTGridDescription of the whole container
vElement - the VElement which is currently rendered
control - the rendered Control
Returns:
the Object being the layout data to set

getSpanningLayoutData

Object getSpanningLayoutData(int spanX,
                             int spanY)
A simple spanning Layout.

Parameters:
spanX - the horizontal span
spanY - the vertical span
Returns:
the created Layout Data


Copyright © 2014. All Rights Reserved.