Class GridColumnLayout


  • public class GridColumnLayout
    extends org.eclipse.jface.layout.AbstractColumnLayout
    The GridColumnLayout is the Layout used to maintain GridColumn sizes in a Grid.

    You can only add the Layout to a container whose only child is the Grid control you want the Layout applied to. Don't assign the layout directly the Grid

    This class was copied from TableColumnLayout and adapted to Grid.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static boolean IS_GTK  
      • Fields inherited from class org.eclipse.jface.layout.AbstractColumnLayout

        LAYOUT_DATA
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int getColumnCount​(org.eclipse.swt.widgets.Scrollable tableTree)
      (package private) org.eclipse.swt.widgets.Composite getComposite​(org.eclipse.swt.widgets.Widget column)  
      protected org.eclipse.jface.viewers.ColumnLayoutData getLayoutData​(org.eclipse.swt.widgets.Scrollable tableTree, int columnIndex)
      protected void setColumnWidths​(org.eclipse.swt.widgets.Scrollable tableTree, int[] widths)
      protected void updateColumnData​(org.eclipse.swt.widgets.Widget column)
      • Methods inherited from class org.eclipse.jface.layout.AbstractColumnLayout

        computeSize, getColumnTrim, layout, setColumnData
      • Methods inherited from class org.eclipse.swt.widgets.Layout

        flushCache
      • Methods inherited from class java.lang.Object

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

      • IS_GTK

        private static final boolean IS_GTK
    • Constructor Detail

      • GridColumnLayout

        public GridColumnLayout()
    • Method Detail

      • getColumnCount

        protected int getColumnCount​(org.eclipse.swt.widgets.Scrollable tableTree)
        Specified by:
        getColumnCount in class org.eclipse.jface.layout.AbstractColumnLayout
      • setColumnWidths

        protected void setColumnWidths​(org.eclipse.swt.widgets.Scrollable tableTree,
                                       int[] widths)
        Specified by:
        setColumnWidths in class org.eclipse.jface.layout.AbstractColumnLayout
      • getLayoutData

        protected org.eclipse.jface.viewers.ColumnLayoutData getLayoutData​(org.eclipse.swt.widgets.Scrollable tableTree,
                                                                           int columnIndex)
        Specified by:
        getLayoutData in class org.eclipse.jface.layout.AbstractColumnLayout
      • getComposite

        org.eclipse.swt.widgets.Composite getComposite​(org.eclipse.swt.widgets.Widget column)
      • updateColumnData

        protected void updateColumnData​(org.eclipse.swt.widgets.Widget column)
        Specified by:
        updateColumnData in class org.eclipse.jface.layout.AbstractColumnLayout