com.jaxfront.core.xui
Class TableCell

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

public class TableCell
extends java.lang.Object
implements java.lang.Cloneable, java.lang.Comparable<TableCell>

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


Constructor Summary
TableCell(Type ownerType, Type cellType, java.lang.String dimension)
           
TableCell(Type ownerType, Type cellType, java.lang.String dimension, boolean isGlobal)
          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 compareTo(TableCell tableCell)
           
static Type evalXPathReferencedType(Type ownerType, java.lang.String path, boolean isXUIEditor)
           
 java.lang.String getAreaID()
           
 int getColIndex()
           
 int getColSpan()
           
 java.lang.String getCSSElementStyle()
           
 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.
 java.lang.String getNlsKey()
           
 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 getURLTarget()
           
 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 isWorkflowCell()
           
 boolean isXPathLabel()
           
 void release()
           
 void setAreaID(java.lang.String id)
           
 void setCSSStyle(java.lang.String style)
           
 void setDimension(java.lang.String newDimension)
           
 void setNlsKey(java.lang.String _nlsKey)
           
 void setText(java.lang.String text)
           
 java.lang.String toString()
           
 boolean useDefaultFontColor()
           
 
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)

TableCell

public TableCell(Type ownerType,
                 Type cellType,
                 java.lang.String dimension,
                 boolean isGlobal)
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

calcMultiColWidth

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

clone

public TableCell clone(Type ownerType)

compareTo

public int compareTo(TableCell tableCell)
Specified by:
compareTo in interface java.lang.Comparable<TableCell>

evalXPathReferencedType

public static Type evalXPathReferencedType(Type ownerType,
                                           java.lang.String path,
                                           boolean isXUIEditor)

getAreaID

public java.lang.String getAreaID()

getColIndex

public int getColIndex()

getColSpan

public int getColSpan()

getCSSElementStyle

public java.lang.String getCSSElementStyle()

getCSSStyle

public java.lang.String getCSSStyle()

getDimension

public java.lang.String getDimension()

getFocusIndex

public java.lang.Integer getFocusIndex()

getFormula

public FormulaExpression getFormula()

getHorizontalAlignment

public java.lang.String getHorizontalAlignment()

getLabel

public java.lang.String getLabel()

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

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

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

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

getLabelFontStyleAsInt

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

Returns:
the style of the font

getLabelHRef

public java.lang.String getLabelHRef()

getLabelType

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


getNlsKey

public java.lang.String getNlsKey()

getRowIndex

public int getRowIndex()

getRowSpan

public int getRowSpan()

getRuleId

public java.lang.String getRuleId()

getText

public java.lang.String getText()

getToolTipText

public java.lang.String getToolTipText()

getType

public Type getType()

getURL

public java.lang.String getURL()

getURLTarget

public java.lang.String getURLTarget()

getVerticalAlignment

public java.lang.String getVerticalAlignment()

getXPath

public java.lang.String getXPath()

getXPathReferencedType

public Type getXPathReferencedType()

getXPathReferencedType

public Type getXPathReferencedType(Type ownerType)

getXPathReferencedType

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

hasFormula

public boolean hasFormula()

isButton

public boolean isButton()

isImage

public boolean isImage()

isLabel

public boolean isLabel()

isWorkflowCell

public boolean isWorkflowCell()

isXPathLabel

public boolean isXPathLabel()

release

public void release()

setAreaID

public void setAreaID(java.lang.String id)

setCSSStyle

public void setCSSStyle(java.lang.String style)

setDimension

public void setDimension(java.lang.String newDimension)

setNlsKey

public void setNlsKey(java.lang.String _nlsKey)

setText

public void setText(java.lang.String text)

toString

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

useDefaultFontColor

public boolean useDefaultFontColor()