com.sun.lwuit.table
Class TableLayout.Constraint

java.lang.Object
  extended by com.sun.lwuit.table.TableLayout.Constraint
Enclosing class:
TableLayout

public static class TableLayout.Constraint
extends java.lang.Object

Represents the layout constraint for an entry within the table indicating the desired position/behavior of the component.


Constructor Summary
TableLayout.Constraint()
           
 
Method Summary
 int getColumn()
           
 int getHeightPercentage()
           
 int getHorizontalAlign()
           
 int getHorizontalSpan()
           
 int getRow()
           
 int getVerticalAlign()
           
 int getVerticalSpan()
           
 int getWidthPercentage()
           
 void setHeightPercentage(int height)
          Sets the row height based on percentage of the parent
 void setHorizontalAlign(int align)
          Sets the horizontal alignment of the table cell
 void setHorizontalSpan(int span)
          Sets the cells to span horizontally, this number must never be smaller than 1
 void setVerticalAlign(int valign)
          Sets the vertical alignment of the table cell
 void setVerticalSpan(int span)
          Sets the cells to span vertically, this number must never be smaller than 1
 void setWidthPercentage(int width)
          Sets the column width based on percentage of the parent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableLayout.Constraint

public TableLayout.Constraint()
Method Detail

setVerticalSpan

public void setVerticalSpan(int span)
Sets the cells to span vertically, this number must never be smaller than 1

Parameters:
span - a number larger than 1

setHorizontalSpan

public void setHorizontalSpan(int span)
Sets the cells to span horizontally, this number must never be smaller than 1

Parameters:
span - a number larger than 1

setWidthPercentage

public void setWidthPercentage(int width)
Sets the column width based on percentage of the parent

Parameters:
width - negative number indicates ignoring this member

setHeightPercentage

public void setHeightPercentage(int height)
Sets the row height based on percentage of the parent

Parameters:
height - negative number indicates ignoring this member

setHorizontalAlign

public void setHorizontalAlign(int align)
Sets the horizontal alignment of the table cell

Parameters:
align - Component.LEFT/RIGHT/CENTER

setVerticalAlign

public void setVerticalAlign(int valign)
Sets the vertical alignment of the table cell

Parameters:
valign - Component.TOP/BOTTOM/CENTER

getRow

public int getRow()
Returns:
the row

getColumn

public int getColumn()
Returns:
the column

getWidthPercentage

public int getWidthPercentage()
Returns:
the width

getHeightPercentage

public int getHeightPercentage()
Returns:
the height

getHorizontalSpan

public int getHorizontalSpan()
Returns:
the spanHorizontal

getVerticalSpan

public int getVerticalSpan()
Returns:
the spanVertical

getHorizontalAlign

public int getHorizontalAlign()
Returns:
the align

getVerticalAlign

public int getVerticalAlign()
Returns:
the valign