com.jaxfront.core.xui
Class TableCell

java.lang.Object
  extended by com.jaxfront.core.xui.TableCell
All Implemented Interfaces:
java.lang.Cloneable

public class TableCell
extends java.lang.Object
implements java.lang.Cloneable

Defines a single cell placed within a table layout holding a dimension (x,y) and a cell type.

Version:
1.60

Constructor Summary
TableCell(Type ownerType, Type cellType, java.lang.String dimension)
          Creates a table cell based on an owner type, cellType, dimension and a NLSSupport list.
 
Method Summary
 java.lang.Double calcMultiColWidth(java.util.List widths)
           
 TableCell clone(Type ownerType)
           
 int getColIndex()
           
 int getColSpan()
           
 java.lang.String getCSSStyle()
           
 java.lang.String getDimension()
           
 java.lang.Integer getFocusIndex()
           
 FormulaExpression getFormula()
           
 java.lang.String getHorizontalAlignment()
           
 java.lang.String getLabel()
           
 java.awt.Color getLabelFontColor()
          Returns the color of the font for the label of the current cell.
 java.lang.String getLabelFontName()
          Returns the name of the font for the label of the current cell.
 java.lang.Integer getLabelFontSize()
          Returns the size of the font for the label of the current cell.
 int getLabelFontSizeAsInt()
          Returns the size of the font for the label of the current cell.
 java.lang.String getLabelFontStyle()
          Returns the style (bold, italic, etc.) for the label of the current cell.
 int getLabelFontStyleAsInt()
          Returns the style (bold, italic, etc.) for the label of the current cell.
 java.lang.String getLabelHRef()
           
 java.lang.String getLabelType()
          Returns the cell type.
 int getRowIndex()
           
 int getRowSpan()
           
 java.lang.String getRuleId()
           
 java.lang.String getText()
           
 java.lang.String getToolTipText()
           
 Type getType()
           
 java.lang.String getURL()
           
 java.lang.String getVerticalAlignment()
           
 java.lang.String getXPath()
           
 Type getXPathReferencedType()
           
 Type getXPathReferencedType(Type ownerType)
           
 Type getXPathReferencedType(Type ownerType, java.lang.String path)
           
 boolean hasFormula()
           
 boolean isButton()
           
 boolean isImage()
           
 boolean isLabel()
           
 boolean isXPathLabel()
           
 void setDimension(java.lang.String newDimension)
           
 void setText(java.lang.String text)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableCell

public TableCell(Type ownerType,
                 Type cellType,
                 java.lang.String dimension)
Creates a table cell based on an owner type, cellType, dimension and a NLSSupport list.

Parameters:
ownerType - owner holding this table
cellType - xui type defining this cell
dimension - specifying x and y
nlsList - list of NLSSupports
Method Detail

getLabelType

public java.lang.String getLabelType()
Returns the cell type.


isImage

public boolean isImage()

getXPathReferencedType

public Type getXPathReferencedType()

getXPathReferencedType

public Type getXPathReferencedType(Type ownerType)

getXPathReferencedType

public Type getXPathReferencedType(Type ownerType,
                                   java.lang.String path)

getDimension

public java.lang.String getDimension()

setDimension

public void setDimension(java.lang.String newDimension)

getFormula

public FormulaExpression getFormula()

getToolTipText

public java.lang.String getToolTipText()

getLabel

public java.lang.String getLabel()

getLabelHRef

public java.lang.String getLabelHRef()

getType

public Type getType()

getURL

public java.lang.String getURL()

hasFormula

public boolean hasFormula()

getText

public java.lang.String getText()

isXPathLabel

public boolean isXPathLabel()

getLabelFontName

public java.lang.String getLabelFontName()
Returns the name of the font for the label of the current cell.

Returns:
the name of the font

getLabelFontStyle

public java.lang.String getLabelFontStyle()
Returns the style (bold, italic, etc.) for the label of the current cell.

Returns:
the style of the font

getCSSStyle

public java.lang.String getCSSStyle()

getLabelFontStyleAsInt

public int getLabelFontStyleAsInt()
Returns the style (bold, italic, etc.) for the label of the current cell.

Returns:
the style of the font

getLabelFontSize

public java.lang.Integer getLabelFontSize()
Returns the size of the font for the label of the current cell.

Returns:
the size of the font

getLabelFontSizeAsInt

public int getLabelFontSizeAsInt()
Returns the size of the font for the label of the current cell.

Returns:
the size of the font

getLabelFontColor

public java.awt.Color getLabelFontColor()
Returns the color of the font for the label of the current cell.

Returns:
the color of the font

isButton

public boolean isButton()

isLabel

public boolean isLabel()

clone

public TableCell clone(Type ownerType)

calcMultiColWidth

public java.lang.Double calcMultiColWidth(java.util.List widths)

setText

public void setText(java.lang.String text)

getXPath

public java.lang.String getXPath()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getFocusIndex

public java.lang.Integer getFocusIndex()

getRuleId

public java.lang.String getRuleId()

getRowIndex

public int getRowIndex()

getColIndex

public int getColIndex()

getRowSpan

public int getRowSpan()

getColSpan

public int getColSpan()

getVerticalAlignment

public java.lang.String getVerticalAlignment()

getHorizontalAlignment

public java.lang.String getHorizontalAlignment()