com.evanmclean.evlib.tablelayout
Class TableLayoutConstraintFactory.Builder

java.lang.Object
  extended by com.evanmclean.evlib.tablelayout.TableLayoutConstraintFactory.Builder
Enclosing class:
TableLayoutConstraintFactory

public class TableLayoutConstraintFactory.Builder
extends Object

This is the builder that actually performs the assembly of constraints.


Method Summary
 TableLayoutConstraintFactory.Builder align(TLHA halign)
          Sets the horizontal alignment to the specified enumerated value.
 TableLayoutConstraintFactory.Builder align(TLVA valign)
          Sets the vertical alignment to the specified enumerated value.
 TableLayoutConstraintFactory.Builder bottom()
          Sets the vertical alignment to the bottom of the cell.
 TableLayoutConstraintFactory.Builder col(int col)
          Set the cell column, keeping the effective width constant.
 TableLayoutConstraintFactory.Builder col1(int col)
          Sets the value for col1, without modifying col2 — You would probably prefer to use col(int)
 TableLayoutConstraintFactory.Builder col2(int col)
          Sets the value for col2, without modifying col1 — You would probably prefer to use col(int)
 TableLayoutConstraintFactory.Builder hcenter()
          Sets the horizontal alignment to center.
 TableLayoutConstraintFactory.Builder hcentre()
          Sets the horizontal alignment to centre.
 TableLayoutConstraintFactory.Builder height(int height)
          Sets the number of rows that will be spanned.
 TableLayoutConstraintFactory.Builder hfull()
          Sets the horizontal alignment to full.
 TableLayoutConstraintFactory.Builder hleading()
          Sets the horizontal alignment to leading.
 TableLayoutConstraintFactory.Builder hleft()
          Sets the horizontal alignment to left.
 TableLayoutConstraintFactory.Builder hright()
          Sets the horizontal alignment to right.
 TableLayoutConstraintFactory.Builder htrailing()
          Sets the horizontal alignment to trailing.
 TableLayoutConstraintFactory.Builder leading()
          Sets the horizontal alignment to leading.
 TableLayoutConstraintFactory.Builder left()
          Sets the horizontal alignment to left.
 info.clearthought.layout.TableLayoutConstraints make()
          Make the table layout constraint object based on the current settings in the builder.
 TableLayoutConstraintFactory.Builder right()
          Sets the horizontal alignment to right.
 TableLayoutConstraintFactory.Builder row(int row)
          Set the cell row, keeping the effective height constant.
 TableLayoutConstraintFactory.Builder row1(int row)
          Sets the value for row1, without modifying row2 — You would probably prefer to use row(int)
 TableLayoutConstraintFactory.Builder row2(int row)
          Sets the value for row2, without modifying row1 — You would probably prefer to use row(int)
 TableLayoutConstraintFactory.Builder top()
          Sets the vertical alignment to the top of the cell.
 String toString()
          Returns a textual representation of the settings in the builder (useful for debugging).
 TableLayoutConstraintFactory.Builder trailing()
          Sets the horizontal alignment to trailing.
 TableLayoutConstraintFactory.Builder vbottom()
          Sets the vertical alignment to the bottom of the cell.
 TableLayoutConstraintFactory.Builder vcenter()
          Sets the vertical alignment to center.
 TableLayoutConstraintFactory.Builder vcentre()
          Sets the vertical alignment to centre.
 TableLayoutConstraintFactory.Builder vfull()
          Sets the vertical alignment to full.
 TableLayoutConstraintFactory.Builder vtop()
          Sets the vertical alignment to the top of the cell.
 TableLayoutConstraintFactory.Builder width(int width)
          Sets the number of columns that will be spanned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

align

public TableLayoutConstraintFactory.Builder align(TLHA halign)
Sets the horizontal alignment to the specified enumerated value.

Parameters:
halign -
Returns:
Builder to allow stringing method calls together.

align

public TableLayoutConstraintFactory.Builder align(TLVA valign)
Sets the vertical alignment to the specified enumerated value.

Parameters:
valign -
Returns:
Builder to allow stringing method calls together.

bottom

public TableLayoutConstraintFactory.Builder bottom()
Sets the vertical alignment to the bottom of the cell.

Returns:
Builder to allow stringing method calls together.

col

public TableLayoutConstraintFactory.Builder col(int col)
Set the cell column, keeping the effective width constant. i.e. Changes the value of col1 and col2 by the same amount.

Parameters:
col -
Returns:
Builder to allow stringing method calls together.

col1

public TableLayoutConstraintFactory.Builder col1(int col)
Sets the value for col1, without modifying col2 — You would probably prefer to use col(int)

Parameters:
col -
Returns:
Builder to allow stringing method calls together.
See Also:
col(int)

col2

public TableLayoutConstraintFactory.Builder col2(int col)
Sets the value for col2, without modifying col1 — You would probably prefer to use col(int)

Parameters:
col -
Returns:
Builder to allow stringing method calls together.
See Also:
col(int)

hcenter

public TableLayoutConstraintFactory.Builder hcenter()
Sets the horizontal alignment to center.

Returns:
Builder to allow stringing method calls together.

hcentre

public TableLayoutConstraintFactory.Builder hcentre()
Sets the horizontal alignment to centre.

Returns:
Builder to allow stringing method calls together.

height

public TableLayoutConstraintFactory.Builder height(int height)
Sets the number of rows that will be spanned. Modifies row2 to be the proper offset to row1.

Parameters:
height -
Returns:
Builder to allow stringing method calls together.

hfull

public TableLayoutConstraintFactory.Builder hfull()
Sets the horizontal alignment to full.

Returns:
Builder to allow stringing method calls together.

hleading

public TableLayoutConstraintFactory.Builder hleading()
Sets the horizontal alignment to leading.

Returns:
Builder to allow stringing method calls together.

hleft

public TableLayoutConstraintFactory.Builder hleft()
Sets the horizontal alignment to left.

Returns:
Builder to allow stringing method calls together.

hright

public TableLayoutConstraintFactory.Builder hright()
Sets the horizontal alignment to right.

Returns:
Builder to allow stringing method calls together.

htrailing

public TableLayoutConstraintFactory.Builder htrailing()
Sets the horizontal alignment to trailing.

Returns:
Builder to allow stringing method calls together.

leading

public TableLayoutConstraintFactory.Builder leading()
Sets the horizontal alignment to leading.

Returns:
Builder to allow stringing method calls together.

left

public TableLayoutConstraintFactory.Builder left()
Sets the horizontal alignment to left.

Returns:
Builder to allow stringing method calls together.

make

public info.clearthought.layout.TableLayoutConstraints make()
Make the table layout constraint object based on the current settings in the builder. A TLCFException will be thrown if the constraints do not make sense (e.g., col2 less than col1, the column range is exceeded, and such.)

Returns:
The TableLayoutConstraints object.
Throws:
TLCFException - if the constraints to not make sense.

right

public TableLayoutConstraintFactory.Builder right()
Sets the horizontal alignment to right.

Returns:
Builder to allow stringing method calls together.

row

public TableLayoutConstraintFactory.Builder row(int row)
Set the cell row, keeping the effective height constant. i.e. Changes the value of row1 and row2 by the same amount.

Parameters:
row -
Returns:
Builder to allow stringing method calls together.

row1

public TableLayoutConstraintFactory.Builder row1(int row)
Sets the value for row1, without modifying row2 — You would probably prefer to use row(int)

Parameters:
row -
Returns:
Builder to allow stringing method calls together.
See Also:
row(int)

row2

public TableLayoutConstraintFactory.Builder row2(int row)
Sets the value for row2, without modifying row1 — You would probably prefer to use row(int)

Parameters:
row -
Returns:
Builder to allow stringing method calls together.
See Also:
row(int)

top

public TableLayoutConstraintFactory.Builder top()
Sets the vertical alignment to the top of the cell.

Returns:
Builder to allow stringing method calls together.

toString

public String toString()
Returns a textual representation of the settings in the builder (useful for debugging).

Overrides:
toString in class Object

trailing

public TableLayoutConstraintFactory.Builder trailing()
Sets the horizontal alignment to trailing.

Returns:
Builder to allow stringing method calls together.

vbottom

public TableLayoutConstraintFactory.Builder vbottom()
Sets the vertical alignment to the bottom of the cell.

Returns:
Builder to allow stringing method calls together.

vcenter

public TableLayoutConstraintFactory.Builder vcenter()
Sets the vertical alignment to center.

Returns:
Builder to allow stringing method calls together.

vcentre

public TableLayoutConstraintFactory.Builder vcentre()
Sets the vertical alignment to centre.

Returns:
Builder to allow stringing method calls together.

vfull

public TableLayoutConstraintFactory.Builder vfull()
Sets the vertical alignment to full.

Returns:
Builder to allow stringing method calls together.

vtop

public TableLayoutConstraintFactory.Builder vtop()
Sets the vertical alignment to the top of the cell.

Returns:
Builder to allow stringing method calls together.

width

public TableLayoutConstraintFactory.Builder width(int width)
Sets the number of columns that will be spanned. Modifies col2 to be the proper offset to col1.

Parameters:
width -
Returns:
Builder to allow stringing method calls together.