Package tripleplay.ui.layout
Class TableLayout.Column
java.lang.Object
tripleplay.ui.layout.TableLayout.Column
- Enclosing class:
TableLayout
A configurator for a table column. Instances are immutable; all methods return a copy.
-
Method Summary
Modifier and TypeMethodDescriptionLeft aligns cells.Right aligns cells.copy
(int count) Returnscount
copies of this column.fixed()
Sets column to always use the width of its widest element.free
(float weight) Sets column to grow freely when excess width is available.minWidth
(float minWidth) Configures the minimum width.stretch()
Sets column to stretch the width of its elements to the column width.
-
Method Details
-
alignLeft
Left aligns cells. -
alignRight
Right aligns cells. -
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
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
Sets column to stretch the width of its elements to the column width. By default, elements are configured to their preferred width. -
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
Returnscount
copies of this column.
-