uk.co.westhawk.tablelayout
Class TableRow

java.lang.Object
  extended by uk.co.westhawk.tablelayout.TableVec
      extended by uk.co.westhawk.tablelayout.TableRow

public class TableRow
extends TableVec

Controls the rows of the table

See Also:
TableLayout

Field Summary
 
Fields inherited from class uk.co.westhawk.tablelayout.TableVec
parent, size, vec
 
Constructor Summary
TableRow(TableLayout tw)
           
 
Method Summary
 int getPreferredSize()
          Returns the preferred size of the row.
 int layoutSize(boolean do_actual)
          Calculates the size of the layout
 void minimize()
          Changes the row to its minimum size.
 java.lang.String toString()
          Returns the String representation
 int totalSize()
          Returns the total (minimum) size of the row
 
Methods inherited from class uk.co.westhawk.tablelayout.TableVec
adjust, computeOffsets, elementAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableRow

public TableRow(TableLayout tw)
Parameters:
tw - the corresponding TableLayout manager
Method Detail

minimize

public void minimize()
Changes the row to its minimum size. This method is called every time the layout changes, before the container is laid out

Specified by:
minimize in class TableVec

totalSize

public int totalSize()
Returns the total (minimum) size of the row

Specified by:
totalSize in class TableVec
See Also:
layoutSize(boolean)

getPreferredSize

public int getPreferredSize()
Returns the preferred size of the row.

Specified by:
getPreferredSize in class TableVec
See Also:
layoutSize(boolean)

layoutSize

public int layoutSize(boolean do_actual)
Calculates the size of the layout

Specified by:
layoutSize in class TableVec
Parameters:
do_actual - actual size or the preferred size

toString

public java.lang.String toString()
Returns the String representation

Overrides:
toString in class TableVec