Class ReportCell

java.lang.Object
quadbase.reportdesigner.ReportElements.ReportElement
quadbase.reportdesigner.ReportElements.ReportCell
All Implemented Interfaces:
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:
  • Field Details

  • Constructor Details

    • ReportCell

      public ReportCell()
      Constructs a ReportCell with no name
    • ReportCell

      public ReportCell(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 Details

    • 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 String getFormulaName()
      returns the formula name
    • getFormula

      public String getFormula()
      returns the actual formula content
    • getSQLType

      public int getSQLType()
      For internal use only
    • write

      public void write(DataOutput out) throws IOException
      For internal use only
      Overrides:
      write in class ReportElement
      Throws:
      IOException
    • writeXML

      public void writeXML(Writer out, boolean writeElementTag) throws IOException
      For internal use only
      Overrides:
      writeXML in class ReportElement
      Throws:
      IOException
    • createCell

      public static ReportCell createCell(Node node, int version) throws Exception
      For internal use only
      Throws:
      Exception
    • readXML

      public void readXML(Node node, int version) throws Exception
      For internal use only
      Overrides:
      readXML in class ReportElement
      Throws:
      Exception
    • createCell

      public static ReportCell createCell(DataInput in, int version) throws Exception
      For internal use only
      Throws:
      Exception
    • read

      public void read(DataInput in, int version) throws Exception
      For internal use only
      Overrides:
      read in class ReportElement
      Throws:
      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(Object value)
      For internal use only
    • getScriptedValue

      public Object getScriptedValue()
      For internal use only
    • setFormula

      @Deprecated public void setFormula(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.
    • applyStyleButNotWHCopyScripts

      public void applyStyleButNotWHCopyScripts(ReportCell _cell, boolean copyScriptsAndDrillDownLinks)