Class TableLayout.Column

java.lang.Object
tripleplay.ui.layout.TableLayout.Column
Enclosing class:
TableLayout

public static class TableLayout.Column extends Object
A configurator for a table column. Instances are immutable; all methods return a copy.
  • Method Details

    • alignLeft

      public TableLayout.Column alignLeft()
      Left aligns cells.
    • alignRight

      public TableLayout.Column alignRight()
      Right aligns cells.
    • fixed

      public TableLayout.Column fixed()
      Sets column to always use the width of its widest element. By default, columns are 'free' and may be configured as wider than their default to accommodate excess width available to the table.
    • free

      public TableLayout.Column free(float weight)
      Sets column to grow freely when excess width is available. The excess will be divided proportionally amongst all non-fixed colulmns in the table, according to weight. By default, columns are free with weight set to 1.
    • stretch

      public TableLayout.Column stretch()
      Sets column to stretch the width of its elements to the column width. By default, elements are configured to their preferred width.
    • minWidth

      public TableLayout.Column minWidth(float minWidth)
      Configures the minimum width. The column will not be allowed to shrink below its minimum width unless the total table width is insufficient to satisfy the minimum width requirements of all of its columns.
    • copy

      public TableLayout.Column[] copy(int count)
      Returns count copies of this column.