EspressReport 6.6

quadbase.reportdesigner.ReportElements
Class ReportCell

java.lang.Object
  extended by quadbase.reportdesigner.ReportElements.ReportElement
      extended by quadbase.reportdesigner.ReportElements.ReportCell
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ColumnHeader, ReportDocument, ReportImage, ReportRTFObject, SubReportObject

public class ReportCell
extends ReportElement

This class can be used to insert labels and formula in the ReportSection of the Report, e.g. headers and footers.

See Also:
Serialized Form

Field Summary
static java.lang.String XMLTAG
          For internal use only
 
Fields inherited from class quadbase.reportdesigner.ReportElements.ReportElement
bgColor, borderColor, CHART, COLUMN, COLUMNHEADER, FORMULA, GRID, height, ID_TYPE, IMAGE, isLocked, LABEL, LINE, min_height, min_width, NONE, rotate_angle, ROTATE_CLOCKWISE, ROTATE_COUNTERCLOCKWISE, ROTATE_NONE, roundCornerRadius, roundCornersArray, RTFOBJECT, SECTION, securityMap, snap, SORT_X, SORT_Y, SORT_Z, SUBREPORT, TABLE, TABLEOFCONTENTS, TITLE, visible, vsnap, width, x
 
Constructor Summary
ReportCell()
          Constructs a ReportCell with no name
ReportCell(Formula formula)
          Constructs a new ReportCell object w/ the specified Formula object
ReportCell(IObject formula)
          Constructs a ReportCell with the specified formula
ReportCell(ReportColumn _col, int index)
          For internal use only
ReportCell(java.lang.String name)
          Constructs a ReportCell with the specified name
 
Method Summary
 void applyStyle(ReportCell _cell)
          Applies the style information (font, font color, underline, horizontal and vertical alignment, wrap, border) from another cell.
 void applyStyleButNotWH(ReportCell _cell)
          Applies the style information (font, font color, underline, horizontal and vertical alignment, wrap, border) from another cell, but width and height options are ignored.
 void applyTemplate(ReportCell _cell)
          Specifies the look and feel to be the same as another ReportCell object.
 void applyTemplate(ReportCell _cell, boolean applyScript)
          Specifies the look and feel to be the same as another ReportCell object.
static ReportCell clone(ReportCell _cell)
          For internal use only
 void copy(ReportCell _cell)
          For internal use only
 void copyTemplate(ReportCell _cell)
          For internal use only.
static ReportCell createCell(java.io.DataInput in, int version)
          For internal use only
static ReportCell createCell(org.w3c.dom.Node node, int version)
          For internal use only
 void createFormulaObject(quadbase.reportdesigner.report.Report r)
          For internal use only
 void createFormulaObjectFromName(quadbase.reportdesigner.report.Report r)
          For internal use only
 void createFormulaObjectFromText(quadbase.reportdesigner.report.Report r)
          For internal use only
 void deepCopy(ReportCell _cell)
          For internal use only
 boolean equals(ReportCell _cell)
          For internal use only
 boolean formulaReferenced(Formula form)
          For internal use only
 int getColIndex(ReportTable table)
          For internal use only
 ReportColumn getColumn()
          Gets the current column in crosstab reports
 IFormat getDataFormat()
          Gets the Data Format
 quadbase.reportdesigner.ReportElements.Bookmark getEntry()
          Gets the bookmark entry for this object
 java.lang.String getFormula()
          returns the actual formula content
 java.lang.String getFormulaName()
          returns the formula name
 Formula getFormulaObj()
          returns the Formula object contained in this ReportCell
 java.lang.Object getScriptedValue()
          For internal use only
 int getSQLType()
          For internal use only
 void read(java.io.DataInput in, int version)
          For internal use only
 void readXML(org.w3c.dom.Node node, int version)
          For internal use only
 void setColumn(ReportColumn column)
          Sets the current column in crosstab reports
 void setDataFormat(IFormat format)
          Sets the Data Format
 void setEntry(quadbase.reportdesigner.ReportElements.Bookmark entry)
          Sets the bookmark entry for this object
 void setFormula(java.lang.String formula)
          Deprecated. Replaced by @link setFormulaObj(Formula)
 void setFormulaObj(Formula f)
          sets the Formula object for this ReportCell.
 void setScriptedValue(java.lang.Object value)
          For internal use only
 void write(java.io.DataOutput out)
          For internal use only
 void writeXML(java.io.Writer out, boolean writeElementTag)
          For internal use only
 
Methods inherited from class quadbase.reportdesigner.ReportElements.ReportElement
addSecurityLevel, applyImageTemplate, applyImageTemplateExceptBound, applySecurity, applyStyle, applyStyleButNotWH, applyTemplate, applyTemplate, applyTemplate, contains, contains, containsX, containsY, copy, copyTemplate, createScriptObject, createScriptObjectFromName, deepCopy, doesElementSupportRoundCorners, equals, findElementsAbove, findElementsBelow, findElementsToLeft, findElementsToRight, findElementsToRight, findElementType, findGroupElementType, findMaxXr, findMaxYd, findMinX, findMinY, findSpecificElements, getAlign, getAllColors, getBgColor, getBookmark, getBorder, getBorderColor, getBorderThickness, getBottomBorder, getCustomID, getDrawX, getDrawX, getDrawY, getDrawY, getDrillDownName, getElementType, getElementTypeName, getFirst2RowOfColumns, getFirst2RowOfColumns, getFont, getFontColor, getHeight, getHeight, getHeightOfElement, getHeightOfElement, getHeightToPoints, getHint, getID, getLeftBorder, getLink, getMaxXr, getMin_Height, getMin_Width, getMinX, getRefFont, getRefFontToDraw, getRightBorder, getRotateAngle, getRoundCornerRadius, getRoundCornersArray, getScript, getScriptName, getScriptObj, getSecuredScripts, getSecurityLevel, getSecurityLevels, getSecurityMap, getSnap, getStyleName, getTarget, getText, getTopBorder, getVAlign, getVSnap, getWidth, getWidth, getWidthOfElement, getWidthOfElement, getWidthToPoints, getX, getX, getXPos, getXPos, getXToPoints, getY, getY, getYPos, getYPos, getYToPoints, getZ, hasBorder, inBottomHalf, inLeftEnd, inLeftHalf, inRightEnd, inRightHalf, inTopHalf, isCrossTabElt, isDrawAgain, isLocked, isNoWrap, isResizeToFitContent, isSecurityLevelDefined, isSecurityTextScript, isShiftSecuredColX, isShiftSecuredColXIncludeHeaderAndFooter, isSnapToGrid, isUnderline, isVisible, moveForCrossTabFixedField, moveForCrossTabFixedField, newArrayX, newArrayY, removeScriptReferenced, removeSecurityLevel, renameSecurityLevel, resize, resizeForCrossTabFixedField, resizeForCrossTabFixedField, scriptReferenced, securityScriptReferenced, setAlign, setBgColor, setBookmark, setBorder, setBorderColor, setBorderThickness, setBorderThickness, setBorderThickness, setBottomBorder, setCustomID, setDrawAgain, setDrawX, setDrawX, setDrawY, setDrawY, setDrillDownName, setFont, setFontColor, setHeight, setHeight, setHint, setID, setID, setInchGridSpace, setLeftBorder, setLink, setLocked, setMinHeight, setMinWidth, setNoWrap, setResizeToFitContent, setRightBorder, setRotateAngle, setRotateAngle, setRoundCornerRadius, setRoundCornersArray, setScript, setScriptName, setScriptObj, setScriptObjNull, setSecurityLevelProperties, setSecurityMap, setSecurityTextScript, setShiftSecuredColX, setShiftSecuredColXIncludeHeaderAndFooter, setSnap, setSnapToGrid, setSnapToGrid, setStyleName, setTarget, setText, setTopBorder, setUnderline, setVAlign, setVisible, setVSnap, setWidth, setWidth, setX, setX, setXX, setXX, setY, setY, setYY, setYY, setZ, shift, shiftObjectsOnMove, shiftOnMove, sortElement, sortElement, sortElementHorizontally, sortElementInXYOrder, sortElementVertically, swapElements, switchSecurityProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XMLTAG

public static final java.lang.String XMLTAG
For internal use only

See Also:
Constant Field Values
Constructor Detail

ReportCell

public ReportCell()
Constructs a ReportCell with no name


ReportCell

public ReportCell(java.lang.String name)
Constructs a ReportCell with the specified name


ReportCell

public ReportCell(IObject formula)
Constructs a ReportCell with the specified formula


ReportCell

public ReportCell(Formula formula)
Constructs a new ReportCell object w/ the specified Formula object


ReportCell

public ReportCell(ReportColumn _col,
                  int index)
For internal use only

Method Detail

getDataFormat

public IFormat getDataFormat()
Gets the Data Format

Returns:
IFormat type object

setDataFormat

public void setDataFormat(IFormat format)
Sets the Data Format

Parameters:
format - the new format

copy

public void copy(ReportCell _cell)
For internal use only


deepCopy

public void deepCopy(ReportCell _cell)
For internal use only


copyTemplate

public void copyTemplate(ReportCell _cell)
For internal use only.


applyTemplate

public void applyTemplate(ReportCell _cell)
Specifies the look and feel to be the same as another ReportCell object.

Parameters:
_cell - the object to be emulated

applyTemplate

public void applyTemplate(ReportCell _cell,
                          boolean applyScript)
Specifies the look and feel to be the same as another ReportCell object.

Parameters:
_cell - the object to be emulated
applyScript - Specifies whether or not to copy scripts applied the object

equals

public boolean equals(ReportCell _cell)
For internal use only


setFormulaObj

public void setFormulaObj(Formula f)
sets the Formula object for this ReportCell.


getFormulaObj

public Formula getFormulaObj()
returns the Formula object contained in this ReportCell


getFormulaName

public java.lang.String getFormulaName()
returns the formula name


getFormula

public java.lang.String getFormula()
returns the actual formula content


getSQLType

public int getSQLType()
For internal use only


write

public void write(java.io.DataOutput out)
           throws java.io.IOException
For internal use only

Overrides:
write in class ReportElement
Throws:
java.io.IOException

writeXML

public void writeXML(java.io.Writer out,
                     boolean writeElementTag)
              throws java.io.IOException
For internal use only

Overrides:
writeXML in class ReportElement
Throws:
java.io.IOException

createCell

public static ReportCell createCell(org.w3c.dom.Node node,
                                    int version)
                             throws java.lang.Exception
For internal use only

Throws:
java.lang.Exception

readXML

public void readXML(org.w3c.dom.Node node,
                    int version)
             throws java.lang.Exception
For internal use only

Overrides:
readXML in class ReportElement
Throws:
java.lang.Exception

createCell

public static ReportCell createCell(java.io.DataInput in,
                                    int version)
                             throws java.lang.Exception
For internal use only

Throws:
java.lang.Exception

read

public void read(java.io.DataInput in,
                 int version)
          throws java.lang.Exception
For internal use only

Overrides:
read in class ReportElement
Throws:
java.lang.Exception

clone

public static ReportCell clone(ReportCell _cell)
For internal use only


formulaReferenced

public boolean formulaReferenced(Formula form)
For internal use only


createFormulaObject

public void createFormulaObject(quadbase.reportdesigner.report.Report r)
For internal use only


createFormulaObjectFromText

public void createFormulaObjectFromText(quadbase.reportdesigner.report.Report r)
For internal use only


createFormulaObjectFromName

public void createFormulaObjectFromName(quadbase.reportdesigner.report.Report r)
For internal use only


getColIndex

public int getColIndex(ReportTable table)
For internal use only


setScriptedValue

public void setScriptedValue(java.lang.Object value)
For internal use only


getScriptedValue

public java.lang.Object getScriptedValue()
For internal use only


setFormula

@Deprecated
public void setFormula(java.lang.String formula)
Deprecated. Replaced by @link setFormulaObj(Formula)


getEntry

public quadbase.reportdesigner.ReportElements.Bookmark getEntry()
Gets the bookmark entry for this object

See Also:
Bookmark

setEntry

public void setEntry(quadbase.reportdesigner.ReportElements.Bookmark entry)
Sets the bookmark entry for this object

See Also:
Bookmark

getColumn

public ReportColumn getColumn()
Gets the current column in crosstab reports


setColumn

public void setColumn(ReportColumn column)
Sets the current column in crosstab reports


applyStyle

public void applyStyle(ReportCell _cell)
Applies the style information (font, font color, underline, horizontal and vertical alignment, wrap, border) from another cell.


applyStyleButNotWH

public void applyStyleButNotWH(ReportCell _cell)
Applies the style information (font, font color, underline, horizontal and vertical alignment, wrap, border) from another cell, but width and height options are ignored.


EspressReport 6.6