Class VGridLayout

java.lang.Object
org.eclipse.nebula.cwt.v.VLayout
org.eclipse.nebula.cwt.v.VGridLayout

public class VGridLayout
extends VLayout
  • Field Summary

    Fields 
    Modifier and Type Field Description
    int horizontalSpacing
    horizontalSpacing specifies the number of pixels between the right edge of one cell and the left edge of its neighboring cell to the right.
    boolean makeColumnsEqualWidth
    makeColumnsEqualWidth specifies whether all columns in the layout will be forced to have the same width.
    int marginBottom
    marginBottom specifies the number of pixels of vertical margin that will be placed along the bottom edge of the layout.
    int marginHeight
    marginHeight specifies the number of pixels of vertical margin that will be placed along the top and bottom edges of the layout.
    int marginLeft
    marginLeft specifies the number of pixels of horizontal margin that will be placed along the left edge of the layout.
    int marginRight
    marginRight specifies the number of pixels of horizontal margin that will be placed along the right edge of the layout.
    int marginTop
    marginTop specifies the number of pixels of vertical margin that will be placed along the top edge of the layout.
    int marginWidth
    marginWidth specifies the number of pixels of horizontal margin that will be placed along the left and right edges of the layout.
    int numColumns
    numColumns specifies the number of cell columns in the layout.
    int verticalSpacing
    verticalSpacing specifies the number of pixels between the bottom edge of one cell and the top edge of its neighboring cell underneath.
  • Constructor Summary

    Constructors 
    Constructor Description
    VGridLayout()  
    VGridLayout​(int numColumns, boolean makeColumnsEqualWidth)  
  • Method Summary

    Modifier and Type Method Description
    protected org.eclipse.swt.graphics.Point computeSize​(VPanel panel, int wHint, int hHint, boolean flushCache)  
    protected void layout​(VPanel panel, boolean flushCache)  

    Methods inherited from class java.lang.Object

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

    • numColumns

      public int numColumns
      numColumns specifies the number of cell columns in the layout. If numColumns has a value less than 1, the layout will not set the size and position of any controls. The default value is 1.
    • makeColumnsEqualWidth

      public boolean makeColumnsEqualWidth
      makeColumnsEqualWidth specifies whether all columns in the layout will be forced to have the same width. The default value is false.
    • marginWidth

      public int marginWidth
      marginWidth specifies the number of pixels of horizontal margin that will be placed along the left and right edges of the layout. The default value is 5.
    • marginHeight

      public int marginHeight
      marginHeight specifies the number of pixels of vertical margin that will be placed along the top and bottom edges of the layout. The default value is 5.
    • marginLeft

      public int marginLeft
      marginLeft specifies the number of pixels of horizontal margin that will be placed along the left edge of the layout. The default value is 0.
      Since:
      3.1
    • marginTop

      public int marginTop
      marginTop specifies the number of pixels of vertical margin that will be placed along the top edge of the layout. The default value is 0.
      Since:
      3.1
    • marginRight

      public int marginRight
      marginRight specifies the number of pixels of horizontal margin that will be placed along the right edge of the layout. The default value is 0.
      Since:
      3.1
    • marginBottom

      public int marginBottom
      marginBottom specifies the number of pixels of vertical margin that will be placed along the bottom edge of the layout. The default value is 0.
      Since:
      3.1
    • horizontalSpacing

      public int horizontalSpacing
      horizontalSpacing specifies the number of pixels between the right edge of one cell and the left edge of its neighboring cell to the right. The default value is 5.
    • verticalSpacing

      public int verticalSpacing
      verticalSpacing specifies the number of pixels between the bottom edge of one cell and the top edge of its neighboring cell underneath. The default value is 5.
  • Constructor Details

    • VGridLayout

      public VGridLayout()
    • VGridLayout

      public VGridLayout​(int numColumns, boolean makeColumnsEqualWidth)
  • Method Details