Class LayoutProviderHelper


  • public final class LayoutProviderHelper
    extends java.lang.Object
    The helper class allowing an easy access to LayoutProviders.
    Since:
    1.3
    Author:
    Eugen Neufeld
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method 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 java.lang.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 java.lang.Object getSpanningLayoutData​(int spanX, int spanY)
      The layout data for a spanning layout.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getColumnLayout

        public static org.eclipse.swt.widgets.Layout getColumnLayout​(int numColumns,
                                                                     boolean equalWidth)
        Eases the access to the layout provider extension point. For the method description.
        Parameters:
        numColumns - the number of columns to create
        equalWidth - whether the columns should be equal width
        Returns:
        the layout to use
        See Also:
        LayoutProvider.getColumnLayout(int, boolean)
      • getColumnLayout

        public 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. For the method description.
        Parameters:
        numColumns - the number of columns to create
        equalWidth - whether the columns should be equal width
        margins - the margins
        Returns:
        the layout to use
        Since:
        1.7
        See Also:
        LayoutProvider.getColumnLayout(int, boolean, Point)
      • getSpanningLayoutData

        public static java.lang.Object getSpanningLayoutData​(int spanX,
                                                             int spanY)
        The layout data for a spanning layout.
        Parameters:
        spanX - the horizontal span
        spanY - the vertical span
        Returns:
        a simple spanning layout