Class TableLayout.Constraint
- Enclosing class:
TableLayout
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns
intReturns
intReturns
intReturns
intgetRow()Returns
intReturns
intReturns
intReturns
ha(int align) Sets the horizontal alignment of the table cellheightPercentage(int height) Sets the row height based on percentage of the parenthorizontalAlign(int align) Sets the horizontal alignment of the table cellhorizontalSpan(int span) Sets the cells to span horizontally, this number must never be smaller than 1hp(int height) Sets the row height based on percentage of the parenths(int span) Sets the cells to span horizontally, this number must never be smaller than 1voidsetHeightPercentage(int height) Sets the row height based on percentage of the parentvoidsetHorizontalAlign(int align) Sets the horizontal alignment of the table cellvoidsetHorizontalSpan(int span) Sets the cells to span horizontally, this number must never be smaller than 1voidsetVerticalAlign(int valign) Sets the vertical alignment of the table cellvoidsetVerticalSpan(int span) Sets the cells to span vertically, this number must never be smaller than 1voidsetWidthPercentage(int width) Sets the column width based on percentage of the parenttoString()va(int valign) Sets the vertical alignment of the table cellverticalAlign(int valign) Sets the vertical alignment of the table cellverticalSpan(int span) Sets the cells to span vertically, this number must never be smaller than 1vs(int span) Sets the cells to span vertically, this number must never be smaller than 1widthPercentage(int width) Sets the column width based on percentage of the parentwp(int width) Sets the column width based on percentage of the parent
-
Constructor Details
-
Constraint
public Constraint()
-
-
Method Details
-
toString
-
verticalSpan
Sets the cells to span vertically, this number must never be smaller than 1
Parameters
span: a number larger than 1
Returns
this
-
vs
Sets the cells to span vertically, this number must never be smaller than 1
Parameters
span: a number larger than 1
Returns
this
-
horizontalSpan
Sets the cells to span horizontally, this number must never be smaller than 1
Parameters
span: a number larger than 1
-
hs
Sets the cells to span horizontally, this number must never be smaller than 1
Parameters
span: a number larger than 1
-
widthPercentage
Sets the column width based on percentage of the parent
Parameters
width: negative number indicates ignoring this member
-
wp
Sets the column width based on percentage of the parent
Parameters
width: negative number indicates ignoring this member
-
heightPercentage
Sets the row height based on percentage of the parent
Parameters
height: negative number indicates ignoring this member
-
hp
Sets the row height based on percentage of the parent
Parameters
height: negative number indicates ignoring this member
-
horizontalAlign
Sets the horizontal alignment of the table cell
Parameters
align: Component.LEFT/RIGHT/CENTER
-
ha
Sets the horizontal alignment of the table cell
Parameters
align: Component.LEFT/RIGHT/CENTER
-
verticalAlign
Sets the vertical alignment of the table cell
Parameters
valign: Component.TOP/BOTTOM/CENTER
-
va
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
-
setWidthPercentage
public void setWidthPercentage(int width) Sets the column width based on percentage of the parent
Parameters
width: negative number indicates ignoring this member
-
getHeightPercentage
public int getHeightPercentage()Returns
the height
-
setHeightPercentage
public void setHeightPercentage(int height) Sets the row height based on percentage of the parent
Parameters
height: negative number indicates ignoring this member
-
getHorizontalSpan
public int getHorizontalSpan()Returns
the spanHorizontal
-
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
-
getVerticalSpan
public int getVerticalSpan()Returns
the spanVertical
-
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
-
getHorizontalAlign
public int getHorizontalAlign()Returns
the align
-
setHorizontalAlign
public void setHorizontalAlign(int align) Sets the horizontal alignment of the table cell
Parameters
align: Component.LEFT/RIGHT/CENTER
-
getVerticalAlign
public int getVerticalAlign()Returns
the valign
-
setVerticalAlign
public void setVerticalAlign(int valign) Sets the vertical alignment of the table cell
Parameters
valign: Component.TOP/BOTTOM/CENTER
-