nl.gx.webmanager.cms.element
Interface TableCell


public interface TableCell

Representation of tablecell.


Method Summary
 java.lang.String getContent()
          Returns the content for this table cell.
 java.lang.String getStyle()
          Deprecated. This method is only needed for backwards compatibility with table models.
 java.lang.String getWidth()
          Returns the width of this cell as string.
 boolean isEmptyCell()
          This method returns true if the cell is empty or only contains spaces.
 void setNrRows(int rowcount)
          Deprecated. 
 void setRowIndex(int index)
          Deprecated. 
 

Method Detail

getContent

java.lang.String getContent()
Returns the content for this table cell.

Returns:
The content for this table cell.

getWidth

java.lang.String getWidth()
Returns the width of this cell as string.

Returns:
The width of this cell as a string.

getStyle

java.lang.String getStyle()
Deprecated. This method is only needed for backwards compatibility with table models.

This method returns a formatted string containing CSS information for use in a style attribute. This method makes use of the following properties in the descriptor XML: Background color for the top row of the tableBackground image for the top row of the tableFont string for the top row of the tableThe value to be used for the CSS text-align property for the top row of the tableBackground color for the bottom row of the tableBackground image for the bottom row of the tableFont string for the bottom row of the tableThe value to be used for the CSS text-align property for the bottom row of the tableBackground color for the leftmost row of the tableBackground image for the leftmost row of the tableFont string for the leftmost row of the tableThe value to be used for the CSS text-align property for the leftmost row of the tableBackground color for the rightmost row of the tableBackground image for the rightmost row of the tableFont string for the rightmost row of the tableThe value to be used for the CSS text-align property for the rightmost row of the tableIndicates whether odd and even refer to rows or columns. Valid values are "rows" or "columns".Background color for the even rows/columns of the tableBackground image for the even rows/columns of the tableFont string for the even rows/columns of the tableThe value to be used for the CSS text-align property for the even rows/columns of the tableBackground color for the odd rows/columns of the tableBackground image for the odd rows/columns of the tableFont string for the odd rows/columns of the tableThe value to be used for the CSS text-align property for the odd rows/columns of the table
NameRequiredTypeDescription
tableBordernointWidth of the table border in pixels
tableBorderColornoColorColor for the table border
tableHeaderTopBackgroundColornoColor
tableHeaderTopBackgroundImagenoImage
tableHeaderTopFontnoFont
tableHeaderTopAlignnoString
tableHeaderBottomBackgroundColornoColor
tableHeaderBottomBackgroundImagenoImage
tableHeaderBottomFontnoFont
tableHeaderBottomAlignnoString
tableHeaderLeftBackgroundColornoColor
tableHeaderLeftBackgroundImagenoImage
tableHeaderLeftFontnoFont
tableHeaderLeftAlignnoString
tableHeaderRightBackgroundColornoColor
tableHeaderRightBackgroundImagenoImage
tableHeaderRightFontnoFont
tableHeaderRightAlignnoString
tableAlternateRowsColumnsnoString
tableEvenBackgroundColornoColor
tableEvenBackgroundImagenoImage
tableEvenFontnoFont
tableEvenAlignnoString
tableOddBackgroundColornoColor
tableOddBackgroundImagenoImage
tableOddFontnoFont
tableOddAlignnoString

Returns:
The string that contains all style information

isEmptyCell

boolean isEmptyCell()
This method returns true if the cell is empty or only contains spaces.

Returns:
true if the cell is empty or only contains spaces

setRowIndex

@Deprecated
void setRowIndex(int index)
Deprecated. 

Sets the ordering index for this TableRow's TableCell with respect to the other rows of the TableElement.

Parameters:
index - The index for this TableRow's TableCell

setNrRows

@Deprecated
void setNrRows(int rowcount)
Deprecated. 

Sets the total number of rows defined by the TableElement.

Parameters:
rowcount - The total number of rows


Copyright © 2007-2011 GX Software BV. All Rights Reserved.