uk.co.westhawk.tablelayout
Class TableOpts

java.lang.Object
  extended by uk.co.westhawk.tablelayout.TableOpts

public class TableOpts
extends java.lang.Object

This class parses the options string which specifies the layout options for an component. The layout options allow a component to be justified within the table cell, and allow the initial size and dynamic resizing of components to be constrained. Combinations of options can be used: tr means top and right, or north-east justification. Note that the justification does not do anything special with the labels of a Label components: it simply sets the positioning of the entire component within the cell of the TableLayout. If no options are specified for a component, all options will be false.

See Also:
TableLayout

Field Summary
 boolean b
          bottom justify component in table cell.
 boolean h
          do not stretch height of row in which component is positioned during resizing.
 boolean H
          do not stretch height of component during resizing.
 boolean l
          left justify component in table cell.
 boolean r
          right justify component in table cell.
 boolean t
          top justify component in table cell.
 boolean w
          do not stretch width of column in which component is positioned during resizing.
 boolean W
          do not stretch width of component during resizing.
 
Constructor Summary
TableOpts()
           
TableOpts(java.lang.String layout)
           
 
Method Summary
 java.lang.Object clone()
          Creates a clone of the object.
 java.lang.String toString()
          Returns the String representation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

l

public boolean l
left justify component in table cell.


r

public boolean r
right justify component in table cell.


t

public boolean t
top justify component in table cell.


b

public boolean b
bottom justify component in table cell.


w

public boolean w
do not stretch width of column in which component is positioned during resizing. Column width will remain wide enough to contain the widest component in the column.


h

public boolean h
do not stretch height of row in which component is positioned during resizing. Row height will emain high enough to contain the tallest component in the row.


W

public boolean W
do not stretch width of component during resizing. The width of the column may grow (unless constrained by w), and the component will be justified according to its layout options.


H

public boolean H
do not stretch height of component during resizing. The height of the row may grow (unless constrained by h), and the component will be justified according to its layout options.

Constructor Detail

TableOpts

public TableOpts()

TableOpts

public TableOpts(java.lang.String layout)
Parameters:
layout - the string that specifies the options
Method Detail

clone

public java.lang.Object clone()
Creates a clone of the object. A new instance is allocated and all the variables of the class are cloned

Overrides:
clone in class java.lang.Object

toString

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

Overrides:
toString in class java.lang.Object