uk.co.westhawk.tablelayout
Class TableCol

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

public class TableCol
extends TableVec

Controls the colums of the table

See Also:
TableLayout

Field Summary
 
Fields inherited from class uk.co.westhawk.tablelayout.TableVec
parent, size, vec
 
Constructor Summary
TableCol(TableLayout tw)
           
 
Method Summary
 int getPreferredSize()
          Returns the preferred size of the column.
 int layoutSize(boolean do_actual)
          Calculates the size of the layout
 void minimize()
          Changes the column to its minimum size.
 java.lang.String toString()
          Returns the String representation
 int totalSize()
          Returns the total (minimum) size of the column
 
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

TableCol

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

minimize

public void minimize()
Changes the column 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 column

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

getPreferredSize

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

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