Class TableProperties

TableProperties

public class TableProperties

This class represents the attributes which define the properties of a Table and its cells. Normally used in the context of creating a Table; then, one usually passes an instantation of Table Properties to the Table.


Constructor Summary
TableProperties()
          Constructs a TableProperties with pre-defined default values.
 
Method Summary
 int getBorder()
          Gets the border size value.
 java.lang.String getBorderPair()
          Gets the border size as a HTML key-value pair.
 int getCellPadding()
          Gets the cell padding value.
 java.lang.String getCellPaddingPair()
          Gets the cell padding as a HTML key-value pair.
 int getCellSpacing()
          Gets the cell spacing value.
 java.lang.String getCellSpacingPair()
          Gets the cell spacing as a HTML key-value pair.
 java.lang.String getHAlignCell()
          Gets the horizontal alignment value.
 java.lang.String getHAlignCellPair()
          Gets the horizontal alignment as a HTML key-value pair.
 int getHeightCell()
          Gets the cell height value.
 java.lang.String getHeightCellPair()
          Gets the cell height as a HTML key-value pair.
 int getHeightTable()
          Gets the table height value.
 java.lang.String getHeightTablePair()
          Gets the table height as a HTML key-value pair.
 java.lang.String getVAlignCell()
          Gets the vertical alignment value.
 java.lang.String getVAlignCellPair()
          Gets the vertical alignment as a HTML key-value pair.
 int getWidthCell()
          Gets the cell width value.
 java.lang.String getWidthCellPair()
          Gets the cell width as a HTML key-value pair.
 int getWidthTable()
          Gets the table width value.
 java.lang.String getWidthTablePair()
          Gets the table width as a HTML key-value pair.
 void setBorder(var $border)
          Sets the border size to the specified value.
 void setCellPadding(var $cellPadding)
          Sets the cell padding to the specified value.
 void setCellSpacing(var $cellSpacing)
          Sets the cell spacing to the specified value.
 void setHAlignCell(var $hAlignCell)
          Sets the horizontal alignment to the specified value.
 void setHeightCell(var $heightCell)
          Sets the cell height to the specified value.
 void setHeightTable(var $heightTable)
          Sets the table height to the specified value.
 void setVAlignCell(var $vAlignCell)
          Sets the vertical alignment to the specified value.
 void setWidthCell(var $widthCell)
          Sets the cell width to the specified value.
 void setWidthTable(var $widthTable)
          Sets the table width to the specified value.
 

Constructor Detail

TableProperties

public TableProperties()
Constructs a TableProperties with pre-defined default values.
Method Detail

getWidthTablePair

public java.lang.String getWidthTablePair()
Gets the table width as a HTML key-value pair.

getHeightTablePair

public java.lang.String getHeightTablePair()
Gets the table height as a HTML key-value pair.

getCellPaddingPair

public java.lang.String getCellPaddingPair()
Gets the cell padding as a HTML key-value pair.

getCellSpacingPair

public java.lang.String getCellSpacingPair()
Gets the cell spacing as a HTML key-value pair.

getBorderPair

public java.lang.String getBorderPair()
Gets the border size as a HTML key-value pair.

getWidthCellPair

public java.lang.String getWidthCellPair()
Gets the cell width as a HTML key-value pair.

getHeightCellPair

public java.lang.String getHeightCellPair()
Gets the cell height as a HTML key-value pair.

getHAlignCellPair

public java.lang.String getHAlignCellPair()
Gets the horizontal alignment as a HTML key-value pair.

getVAlignCellPair

public java.lang.String getVAlignCellPair()
Gets the vertical alignment as a HTML key-value pair.

getWidthTable

public int getWidthTable()
Gets the table width value.

getHeightTable

public int getHeightTable()
Gets the table height value.

getCellPadding

public int getCellPadding()
Gets the cell padding value.

getCellSpacing

public int getCellSpacing()
Gets the cell spacing value.

getBorder

public int getBorder()
Gets the border size value.

getWidthCell

public int getWidthCell()
Gets the cell width value.

getHeightCell

public int getHeightCell()
Gets the cell height value.

getHAlignCell

public java.lang.String getHAlignCell()
Gets the horizontal alignment value.

getVAlignCell

public java.lang.String getVAlignCell()
Gets the vertical alignment value.

setWidthTable

public void setWidthTable(var $widthTable)
Sets the table width to the specified value.
Parameters:
$widthTable - int specifying width of the table
$widthTable - Default Value: ""

setHeightTable

public void setHeightTable(var $heightTable)
Sets the table height to the specified value.
Parameters:
$heightTable - int specifying height of the table
$heightTable - Default Value: ""

setCellPadding

public void setCellPadding(var $cellPadding)
Sets the cell padding to the specified value.
Parameters:
$cellPadding - int specifying cell padding of the table
$cellPadding - Default Value: ""

setCellSpacing

public void setCellSpacing(var $cellSpacing)
Sets the cell spacing to the specified value.
Parameters:
$cellSpacing - int specifying cell spacing of the table
$cellSpacing - Default Value: ""

setBorder

public void setBorder(var $border)
Sets the border size to the specified value.
Parameters:
$border - int specifying border size of the table
$border - Default Value: ""

setWidthCell

public void setWidthCell(var $widthCell)
Sets the cell width to the specified value.
Parameters:
$widthCell - int specifying width of the cell
$widthCell - Default Value: ""

setHeightCell

public void setHeightCell(var $heightCell)
Sets the cell height to the specified value.
Parameters:
$heightCell - int specifying height of the cell
$heightCell - Default Value: ""

setHAlignCell

public void setHAlignCell(var $hAlignCell)
Sets the horizontal alignment to the specified value.
Parameters:
$hAlignCell - String specifying horizontal alignment of cell
$hAlignCell - Default Value: ""

setVAlignCell

public void setVAlignCell(var $vAlignCell)
Sets the vertical alignment to the specified value.
Parameters:
$vAlignCell - String specifying vertical alignment of cell
$vAlignCell - Default Value: ""