Class GridLayout


public class GridLayout extends LayoutManager
Grid Layout
Author:
Peter Quiring
  • Constructor Details

    • GridLayout

      public GridLayout(int cols, int rows)
      GridLayout Default alignment for cells is CENTER.
      Parameters:
      cols - = # columns
      rows - = # rows
    • GridLayout

      public GridLayout(int cols, int rows, int[] align_cols)
      GridLayout
      Parameters:
      cols - = # columns
      rows - = # rows
      align_cols - = array of column align types (LEFT, CENTER or RIGHT)
  • Method Details

    • html

      public String html()
      Description copied from class: Component
      Returns HTML to render component.
      Overrides:
      html in class Container
    • setBorder

      public void setBorder(boolean state)
      Overrides:
      setBorder in class Component
    • get

      public Component get(int x, int y, boolean checkSpans)
    • getRows

      public int getRows()
    • getColumns

      public int getColumns()
    • add

      public void add(Component comp, int x, int y)
    • add

      public void add(Component comp, int x, int y, int spanx, int spany)
    • addRow

      public void addRow()
    • addRow

      public void addRow(Component[] cmps)
    • addRow

      public void addRow(String[] strs)
    • addColumn

      public void addColumn()
    • addColumn

      public void addColumn(Component[] cmps)
    • addColumn

      public void addColumn(String[] strs)