Class AbstractLayoutProvider
- java.lang.Object
-
- org.eclipse.emf.ecp.view.spi.swt.layout.AbstractLayoutProvider
-
- All Implemented Interfaces:
LayoutProvider
- Direct Known Subclasses:
ECPLayoutProvider
public abstract class AbstractLayoutProvider extends java.lang.Object implements LayoutProvider
Abstract implementation of aLayoutProvider
which contributes helper methods.- Since:
- 1.3
- Author:
- Eugen Neufeld
-
-
Constructor Summary
Constructors Constructor Description AbstractLayoutProvider()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.widgets.Layout
getColumnLayout(int numColumns, boolean equalWidth, org.eclipse.swt.graphics.Point margins)
Delegates toLayoutProvider.getColumnLayout(int, boolean)
.protected static boolean
isMultiLine(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject domainModel)
Checks whether a setting is set to multiline.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.emfforms.spi.swt.core.layout.LayoutProvider
getColumnLayout, getLayoutData, getSpanningLayoutData
-
-
-
-
Method Detail
-
isMultiLine
protected static boolean isMultiLine(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject domainModel)
Checks whether a setting is set to multiline.- Parameters:
domainModelReference
- theVDomainModelReference
pointing to the feature to checkdomainModel
- the rootEObject
of the domain model reference- Returns:
- true if multiline, false otherwise
- Since:
- 1.6
-
getColumnLayout
public org.eclipse.swt.widgets.Layout getColumnLayout(int numColumns, boolean equalWidth, org.eclipse.swt.graphics.Point margins)
Delegates toLayoutProvider.getColumnLayout(int, boolean)
.- Specified by:
getColumnLayout
in interfaceLayoutProvider
- Parameters:
numColumns
- the number of columns to createequalWidth
- whether the columns should be equal widthmargins
- the margins of the layout- Returns:
- the layout to use
- Since:
- 1.7
-
-