EspressReport 6.6

quadbase.reportdesigner.ReportElements
Class ReportColumn

java.lang.Object
  extended by quadbase.reportdesigner.ReportElements.ReportElement
      extended by quadbase.reportdesigner.ReportElements.ReportColumn
All Implemented Interfaces:
java.io.Serializable

public class ReportColumn
extends ReportElement
implements java.io.Serializable

This class can be used to manipulate properties of the individual columns in the ReportTable--formula, border, background, font... etc.

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
ReportColumn()
          For internal use only
ReportColumn(ReportColumn _col)
          For internal use only
ReportColumn(ReportColumn _col, java.util.Properties treeProp)
           
ReportColumn(java.lang.String name, IFormat dataFormat, int noOfCol)
          For internal use only
ReportColumn(java.lang.String name, int noOfCol, boolean isTreeReport, java.util.Properties treeProp)
          For internal use only
ReportColumn(java.lang.String name, java.lang.String tableName, IFormat dataFormat, int columnDisplaySize, java.util.Hashtable<quadbase.reportdesigner.ReportElements.FormattedRowKey,quadbase.reportdesigner.ReportElements.FormattedCell> formattedCellsTable, int noOfCol, boolean isTreeReport)
          For internal use only
ReportColumn(java.lang.String name, java.lang.String tableName, IFormat dataFormat, int columnDisplaySize, int noOfCol, boolean isTreeReport)
          For internal use only
 
Method Summary
 void addActualData(java.lang.Object newData)
          For internal use only
 void addData(java.lang.Object obj)
          For internal use only
 void addFormattedCell(quadbase.reportdesigner.ReportElements.FormattedCell formattedCell)
          For internal use only
 void addFormattedCell(quadbase.reportdesigner.ReportElements.FormattedRowKey key, quadbase.reportdesigner.ReportElements.FormattedCell formattedCell)
          For internal use only
 void addFormattedCell(int row, int[] tree, quadbase.reportdesigner.ReportElements.FormattedCell formattedCell)
          For internal use only
 void addFormattedCell(int row, java.util.Vector<java.lang.Integer> tree, quadbase.reportdesigner.ReportElements.FormattedCell formattedCell)
          For internal use only
 void addScriptedData(java.lang.Object newData)
          For internal use only
 void applyStyle(ReportColumn _col)
          Applies the style information (font, font color, underline, horizontal and vertical alignment, wrap, border) from another cell.
 void applyTemplate(ReportColumn _col)
           
 void applyTemplate(ReportColumn _col, boolean applyScript)
           
 void applyTemplate(ReportColumn _col, boolean applyScript, boolean applyElementPosition, boolean copyDrillDownName)
          Specifies the look and feel to be the same as another ReportCell object.
 void cleanup()
           
 boolean contains(double cx, double cy)
          For internal use only
 boolean containsX(double cx, double w)
          For internal use only
 boolean containsY(double cy, double h)
          For internal use only
 void copy(ReportColumn _col)
          For internal use only
 void copyTemplate(ReportColumn _col)
          For internal use only.
 void copyTemplate(ReportColumn _col, boolean applyFunction)
           
 void copyTemplate(ReportColumn _col, boolean applyFunction, boolean applyElementPosition)
           
 void copyTemplate(ReportColumn _col, boolean applyFunction, boolean applyElementPosition, boolean copyDrillDownName)
          For internal use only.
 void copyTemplateExceptOrigin(ReportColumn _col)
          For internal use only.
static ReportColumn createColumn(java.io.DataInput in, int version)
          For internal use only.
static ReportColumn createColumn(org.w3c.dom.Node node, int version)
          For internal use only.
 void deepCopy(ReportColumn _col)
          For internal use only.
protected  void finalize()
           
 java.lang.Object getActualData(int i)
          Returns the unformatted data used in this ReportColumn If a cell contains a formula or script, getActualData returns the calculated value instead of the the formula
 int getActualDataCount()
          For internal use only
 java.util.Vector<java.awt.Color> getAllColors(java.util.Vector<java.awt.Color> colors)
          For internal use only
 int getAlternateRow()
          Gets the number of rows within sections that would have the same color before alternating to a different color.
 java.awt.Color getBgColor2()
          Gets the background color of the alternating sections.
 ICellScript getCellScript()
          Gets the ICellScript object used by this ReportColumn.
 java.lang.Object[] getData()
          Gets the data object used by this ReportColumn.
 java.lang.Object getData(int index)
          Gets the data at the specified index.
 int getDataCount()
          Gets the length of the data object used.
 IFormat getDataFormat()
          Gets the data format of this ReportColumn.
 long getDataSize()
          Gets the length of the data object used.
 java.lang.String getDBTableName()
          For internal use only
 java.lang.Object getDrillDownData(int row)
          For internal use only
 int getDualColorColInfoCount()
          Returns the number of members in the ReportColumn index int array used for setting different colors when the value in any of these columns changes.
 int[] getDualColorColInfoIndex()
          Returns the ReportColumn index int array used for setting different colors when the value in any of these columns changes.
 java.awt.Font getFont2()
          Gets the font of the alternating sections.
 java.awt.Color getFontColor2()
          Gets the font color of the alternating sections.
 ReportElement getFormatCell(int index)
          For internal use only
 ReportElement getFormatCell(int dataindex, int displayindex)
          For internal use only
 ReportElement getFormatCell(int dataindex, int displayindex, int tableNumber)
          For internal use only
 ReportElement getFormatCell(int dataindex, int displayindex, int tableNumber, boolean designMode)
          For internal use only
 java.lang.String getFormatData(int index)
          Gets the formatted data text at the specified index.
 java.lang.String getFormatData(int index, IFormat format)
          used when a different format is desired.
 quadbase.reportdesigner.ReportElements.FormattedCell getFormattedCell(int index)
          For internal use only
 quadbase.reportdesigner.ReportElements.FormattedCell getFormattedCellAtRow(int row)
          For internal use only
 java.util.Vector<quadbase.reportdesigner.ReportElements.FormattedCell> getFormattedCells()
          For internal use only
 int getFormattedCellsCount()
          For internal use only
 java.util.Hashtable<quadbase.reportdesigner.ReportElements.FormattedRowKey,quadbase.reportdesigner.ReportElements.FormattedCell> getFormattedCellsTable()
          For internal use only
 int getFormattedCellsTableCount()
          For internal use only
 int getFormattedCellsTableSize()
          For internal use only
 java.lang.Object getFormattedData(int index)
          For internal use only
 boolean getIsBGColor2(int index)
          For internal use only
 int getMaxCharForRecordFile()
          Gets max number of character for record in column when using record file to generate the report
 java.awt.Font getRefFont2()
          Internal Use Only
 java.lang.Object getScriptedData(int i)
          For internal use only
 quadbase.common.util.internal.DataSet getScriptedData(ReportTable table, quadbase.reportdesigner.report.Report report, int col)
          For internal use only
 java.lang.Object getScriptedData(ReportTable table, quadbase.reportdesigner.report.Report report, int col, int row)
          For internal use only
 int getScriptedDataCount()
          Returns the size of the scripted data.
 java.lang.String getStyleName2()
          Gets the style name of the alternating sections.
 boolean hasFormattedCell(int row, java.util.Vector<java.lang.Integer> tree)
          For internal use only
 boolean hasFormattedCell(int row, java.util.Vector<java.lang.Integer> tree, quadbase.reportdesigner.ReportElements.FormattedCell cell)
          For internal use only
 boolean hasScriptedData(int i)
          Returns whether this object contains scripted data at the specified index.
 boolean inBottomHalf(double cy)
          For internal use only
 boolean inLeftEnd(double cx)
          For internal use only
 boolean inLeftHalf(double cx)
          For internal use only
 boolean inRightEnd(double cx, double w)
          For internal use only
 boolean inRightHalf(double cx)
          For internal use only
 void insertScriptedDataAt(java.lang.Object newData, int index)
          Inserts data with scripting information at the specified index.
 boolean inTopHalf(double cy)
          For internal use only
 boolean isDataEmpty()
          Returns true if this object does not use a data object.
 boolean isDualColorOnRowBreak()
          Returns whether color is changed from section to section
 boolean isUnderline2()
          Check the status of underline text of the alternate sections.
 boolean isValid()
           
 void positionCopy(ReportColumn _col)
          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 recalculateFormulaColumnValue(quadbase.reportdesigner.report.Report report, int i, ReportTable table)
          For internal use only
 void releaseDiskBuffer()
           
 void removeAllData()
          For internal use only
 void removeFormattedCell(int row, java.util.Vector<java.lang.Integer> tree, quadbase.reportdesigner.ReportElements.FormattedCell formattedCell)
          For internal use only
 void replaceData(java.lang.Object obj, int index)
          For internal use only
 void resetData()
          For internal use only
 boolean scriptReferenced(Script script)
          For internal use only
 void setAlternateRow(int altRow)
          Sets the number of rows within sections that would have the same color before alternating to a different color.
 void setBgColor2(java.awt.Color newColorBg)
          Sets the background color of the alternating sections.
 void setCellScript(ICellScript script)
          Sets the ICellScript object used by this ReportColumn.
 void setData(int row, java.lang.Object newData)
          For internal use only
 void setDataFormat(IFormat format)
          Sets the data format of this ReportColumn.
 void setDataSet(quadbase.common.util.internal.IDataSet dataSet)
          For internal use only
 void setDBTableName(java.lang.String name)
          For internal use only
 void setDrillDownData(java.lang.Object data)
          For internal use only
 void setDualColorColInfoIndex(int[] colInfoIndex)
          Sets the column indices to use to change color.
 void setDualColorOnRowBreak(boolean state)
          Returns whether to change color from section to section
 void setFont2(java.awt.Font newFont)
          Sets the font of the alternating sections.
 void setFontColor2(java.awt.Color newColorFt)
          Sets the font color of the alternate sections.
 void setFormattedCell(quadbase.reportdesigner.ReportElements.FormattedCell newCell)
          For internal use only
 void setFormattedCells(java.util.Vector<quadbase.reportdesigner.ReportElements.FormattedCell> formattedCells)
          For internal use only
 void setFormattedCellsTable(java.util.Hashtable<quadbase.reportdesigner.ReportElements.FormattedRowKey,quadbase.reportdesigner.ReportElements.FormattedCell> table)
          For internal use only
 void setIsBGColor2(int index, boolean bool)
          For internal use only
 void setMaxCharForRecordFile(int cl)
          set max number of character for record in column when using record file to generate the report
 void setStringFormat(int code)
          Specifies whether to decode the Strings in this column to be a URL where an image file, or text file is located.
 void setStyleName2(java.lang.String newStyleName2)
          Sets the style name of the alternating sections.
 void setTopNData(int[] sortedIndex, boolean isRowBreak, short aggr)
          For internal use only
 void setUnderline2(boolean underline)
          set the status of underline text of the alternate sections.
 int[] sort(boolean isAsc)
          Returns an index array that shows the order in which the rows would be in if the data were sorted.
 int[] sort(boolean isAsc, int[] indexArray)
          Returns an index array that shows the order in which the rows refered to in the indexArray would be in if the data were sorted.
 int[] sortActualdata(boolean isAsc)
          Returns an index array that shows the order in which the rows refered to in the indexArray would be in if the actual data were sorted.
 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, copy, copyTemplate, createScriptObject, createScriptObjectFromName, deepCopy, doesElementSupportRoundCorners, equals, findElementsAbove, findElementsBelow, findElementsToLeft, findElementsToRight, findElementsToRight, findElementType, findGroupElementType, findMaxXr, findMaxYd, findMinX, findMinY, findSpecificElements, getAlign, 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, isCrossTabElt, isDrawAgain, isLocked, isNoWrap, isResizeToFitContent, isSecurityLevelDefined, isSecurityTextScript, isShiftSecuredColX, isShiftSecuredColXIncludeHeaderAndFooter, isSnapToGrid, isUnderline, isVisible, moveForCrossTabFixedField, moveForCrossTabFixedField, newArrayX, newArrayY, removeScriptReferenced, removeSecurityLevel, renameSecurityLevel, resize, resizeForCrossTabFixedField, resizeForCrossTabFixedField, 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, 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

ReportColumn

public ReportColumn()
For internal use only


ReportColumn

public ReportColumn(ReportColumn _col)
For internal use only


ReportColumn

public ReportColumn(ReportColumn _col,
                    java.util.Properties treeProp)

ReportColumn

public ReportColumn(java.lang.String name,
                    int noOfCol,
                    boolean isTreeReport,
                    java.util.Properties treeProp)
For internal use only


ReportColumn

public ReportColumn(java.lang.String name,
                    IFormat dataFormat,
                    int noOfCol)
For internal use only


ReportColumn

public ReportColumn(java.lang.String name,
                    java.lang.String tableName,
                    IFormat dataFormat,
                    int columnDisplaySize,
                    int noOfCol,
                    boolean isTreeReport)
For internal use only


ReportColumn

public ReportColumn(java.lang.String name,
                    java.lang.String tableName,
                    IFormat dataFormat,
                    int columnDisplaySize,
                    java.util.Hashtable<quadbase.reportdesigner.ReportElements.FormattedRowKey,quadbase.reportdesigner.ReportElements.FormattedCell> formattedCellsTable,
                    int noOfCol,
                    boolean isTreeReport)
For internal use only

Method Detail

contains

public boolean contains(double cx,
                        double cy)
For internal use only

Overrides:
contains in class ReportElement
Returns:
false otherwise

containsX

public boolean containsX(double cx,
                         double w)
For internal use only

Overrides:
containsX in class ReportElement
Returns:
true if the x coordinate is contained, false otherwisw

containsY

public boolean containsY(double cy,
                         double h)
For internal use only

Overrides:
containsY in class ReportElement
Returns:
true if the y coordinate is contained, false otherwisw

inTopHalf

public boolean inTopHalf(double cy)
For internal use only

Overrides:
inTopHalf in class ReportElement

inBottomHalf

public boolean inBottomHalf(double cy)
For internal use only

Overrides:
inBottomHalf in class ReportElement

inLeftHalf

public boolean inLeftHalf(double cx)
For internal use only

Overrides:
inLeftHalf in class ReportElement

inRightHalf

public boolean inRightHalf(double cx)
For internal use only

Overrides:
inRightHalf in class ReportElement

inLeftEnd

public boolean inLeftEnd(double cx)
For internal use only

Overrides:
inLeftEnd in class ReportElement

inRightEnd

public boolean inRightEnd(double cx,
                          double w)
For internal use only

Overrides:
inRightEnd in class ReportElement

copy

public void copy(ReportColumn _col)
For internal use only


copyTemplate

public void copyTemplate(ReportColumn _col)
For internal use only.


copyTemplate

public void copyTemplate(ReportColumn _col,
                         boolean applyFunction)

copyTemplate

public void copyTemplate(ReportColumn _col,
                         boolean applyFunction,
                         boolean applyElementPosition)

copyTemplate

public void copyTemplate(ReportColumn _col,
                         boolean applyFunction,
                         boolean applyElementPosition,
                         boolean copyDrillDownName)
For internal use only.


copyTemplateExceptOrigin

public void copyTemplateExceptOrigin(ReportColumn _col)
For internal use only.


deepCopy

public void deepCopy(ReportColumn _col)
For internal use only.


positionCopy

public void positionCopy(ReportColumn _col)
For internal use only. For resize to fit content


applyTemplate

public void applyTemplate(ReportColumn _col)

applyTemplate

public void applyTemplate(ReportColumn _col,
                          boolean applyScript)

applyTemplate

public void applyTemplate(ReportColumn _col,
                          boolean applyScript,
                          boolean applyElementPosition,
                          boolean copyDrillDownName)
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

getMaxCharForRecordFile

public int getMaxCharForRecordFile()
Gets max number of character for record in column when using record file to generate the report


setMaxCharForRecordFile

public void setMaxCharForRecordFile(int cl)
                             throws java.lang.Exception
set max number of character for record in column when using record file to generate the report

Throws:
java.lang.Exception

setDBTableName

public void setDBTableName(java.lang.String name)
For internal use only


getDBTableName

public java.lang.String getDBTableName()
For internal use only


getAllColors

public java.util.Vector<java.awt.Color> getAllColors(java.util.Vector<java.awt.Color> colors)
For internal use only

Overrides:
getAllColors in class ReportElement

setAlternateRow

public void setAlternateRow(int altRow)
Sets the number of rows within sections that would have the same color before alternating to a different color.


getAlternateRow

public int getAlternateRow()
Gets the number of rows within sections that would have the same color before alternating to a different color.


setDualColorOnRowBreak

public void setDualColorOnRowBreak(boolean state)
Returns whether to change color from section to section


isDualColorOnRowBreak

public boolean isDualColorOnRowBreak()
Returns whether color is changed from section to section


setDualColorColInfoIndex

public void setDualColorColInfoIndex(int[] colInfoIndex)
Sets the column indices to use to change color. When value in any of the specified columns change, the color changes.


getDualColorColInfoIndex

public int[] getDualColorColInfoIndex()
Returns the ReportColumn index int array used for setting different colors when the value in any of these columns changes.


getDualColorColInfoCount

public int getDualColorColInfoCount()
Returns the number of members in the ReportColumn index int array used for setting different colors when the value in any of these columns changes.


setIsBGColor2

public void setIsBGColor2(int index,
                          boolean bool)
For internal use only


getIsBGColor2

public boolean getIsBGColor2(int index)
For internal use only


getStyleName2

public java.lang.String getStyleName2()
Gets the style name of the alternating sections. Use getStyleName method to get the other style name.


setStyleName2

public void setStyleName2(java.lang.String newStyleName2)
Sets the style name of the alternating sections. Use setStyleName method to set the other style name.


getBgColor2

public java.awt.Color getBgColor2()
Gets the background color of the alternating sections. Use getBgColor method to get the other background color.


setBgColor2

public void setBgColor2(java.awt.Color newColorBg)
Sets the background color of the alternating sections. Use setBgColor method to set the other background color.


getFontColor2

public java.awt.Color getFontColor2()
Gets the font color of the alternating sections. Use getFontColor method to get the other font color.


setFontColor2

public void setFontColor2(java.awt.Color newColorFt)
Sets the font color of the alternate sections. Use setFontColor method to set the other font color.


isUnderline2

public boolean isUnderline2()
Check the status of underline text of the alternate sections.

Returns:
the status of underline text of the alternate sections.

setUnderline2

public void setUnderline2(boolean underline)
set the status of underline text of the alternate sections.

Parameters:
underline - the new status of underline text of the alternate sections

getFont2

public java.awt.Font getFont2()
Gets the font of the alternating sections. Use getFont method to get the other font.


getRefFont2

public java.awt.Font getRefFont2()
Internal Use Only


setFont2

public void setFont2(java.awt.Font newFont)
Sets the font of the alternating sections. Use setFont method to set the other font.


getDataFormat

public IFormat getDataFormat()
Gets the data format of this ReportColumn.


setDataFormat

public void setDataFormat(IFormat format)
Sets the data format of this ReportColumn.


getCellScript

public ICellScript getCellScript()
Gets the ICellScript object used by this ReportColumn.


setCellScript

public void setCellScript(ICellScript script)
Sets the ICellScript object used by this ReportColumn.


getFormattedCells

public java.util.Vector<quadbase.reportdesigner.ReportElements.FormattedCell> getFormattedCells()
For internal use only


setFormattedCells

public void setFormattedCells(java.util.Vector<quadbase.reportdesigner.ReportElements.FormattedCell> formattedCells)
For internal use only


getFormattedCellsCount

public int getFormattedCellsCount()
For internal use only


getFormattedCellsTable

public java.util.Hashtable<quadbase.reportdesigner.ReportElements.FormattedRowKey,quadbase.reportdesigner.ReportElements.FormattedCell> getFormattedCellsTable()
For internal use only


setFormattedCellsTable

public void setFormattedCellsTable(java.util.Hashtable<quadbase.reportdesigner.ReportElements.FormattedRowKey,quadbase.reportdesigner.ReportElements.FormattedCell> table)
For internal use only


getFormattedCellsTableCount

public int getFormattedCellsTableCount()
For internal use only


getFormattedData

public java.lang.Object getFormattedData(int index)
For internal use only


getFormattedCell

public quadbase.reportdesigner.ReportElements.FormattedCell getFormattedCell(int index)
For internal use only


getFormattedCellAtRow

public quadbase.reportdesigner.ReportElements.FormattedCell getFormattedCellAtRow(int row)
For internal use only


addFormattedCell

public void addFormattedCell(quadbase.reportdesigner.ReportElements.FormattedCell formattedCell)
For internal use only


setFormattedCell

public void setFormattedCell(quadbase.reportdesigner.ReportElements.FormattedCell newCell)
For internal use only


addFormattedCell

public void addFormattedCell(int row,
                             java.util.Vector<java.lang.Integer> tree,
                             quadbase.reportdesigner.ReportElements.FormattedCell formattedCell)
For internal use only


addFormattedCell

public void addFormattedCell(int row,
                             int[] tree,
                             quadbase.reportdesigner.ReportElements.FormattedCell formattedCell)
For internal use only


addFormattedCell

public void addFormattedCell(quadbase.reportdesigner.ReportElements.FormattedRowKey key,
                             quadbase.reportdesigner.ReportElements.FormattedCell formattedCell)
For internal use only


removeFormattedCell

public void removeFormattedCell(int row,
                                java.util.Vector<java.lang.Integer> tree,
                                quadbase.reportdesigner.ReportElements.FormattedCell formattedCell)
For internal use only


getFormattedCellsTableSize

public int getFormattedCellsTableSize()
For internal use only


hasFormattedCell

public boolean hasFormattedCell(int row,
                                java.util.Vector<java.lang.Integer> tree)
For internal use only


hasFormattedCell

public boolean hasFormattedCell(int row,
                                java.util.Vector<java.lang.Integer> tree,
                                quadbase.reportdesigner.ReportElements.FormattedCell cell)
For internal use only


isDataEmpty

public boolean isDataEmpty()
Returns true if this object does not use a data object.


getDataCount

public int getDataCount()
Gets the length of the data object used.


getDataSize

public long getDataSize()
Gets the length of the data object used.


getData

public java.lang.Object[] getData()
Gets the data object used by this ReportColumn. This function is used by ReportTable to build the table data.


getData

public java.lang.Object getData(int index)
Gets the data at the specified index.


getFormatData

public java.lang.String getFormatData(int index)
                               throws java.lang.Exception
Gets the formatted data text at the specified index.

Returns:
formatted data, as String
Throws:
java.lang.Exception

getFormatData

public java.lang.String getFormatData(int index,
                                      IFormat format)
                               throws java.lang.Exception
used when a different format is desired.

Throws:
java.lang.Exception

getFormatCell

public ReportElement getFormatCell(int index)
                            throws java.lang.Exception
For internal use only

Throws:
java.lang.Exception

getFormatCell

public ReportElement getFormatCell(int dataindex,
                                   int displayindex)
                            throws java.lang.Exception
For internal use only

Throws:
java.lang.Exception

getFormatCell

public ReportElement getFormatCell(int dataindex,
                                   int displayindex,
                                   int tableNumber)
                            throws java.lang.Exception
For internal use only

Throws:
java.lang.Exception

getFormatCell

public ReportElement getFormatCell(int dataindex,
                                   int displayindex,
                                   int tableNumber,
                                   boolean designMode)
                            throws java.lang.Exception
For internal use only

Throws:
java.lang.Exception

resetData

public void resetData()
For internal use only


setDataSet

public void setDataSet(quadbase.common.util.internal.IDataSet dataSet)
For internal use only


addData

public void addData(java.lang.Object obj)
For internal use only


replaceData

public void replaceData(java.lang.Object obj,
                        int index)
For internal use only


removeAllData

public void removeAllData()
For internal use only


setData

public void setData(int row,
                    java.lang.Object newData)
For internal use only


addActualData

public void addActualData(java.lang.Object newData)
For internal use only


isValid

public boolean isValid()

cleanup

public void cleanup()

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

releaseDiskBuffer

public void releaseDiskBuffer()

getActualData

public java.lang.Object getActualData(int i)
Returns the unformatted data used in this ReportColumn If a cell contains a formula or script, getActualData returns the calculated value instead of the the formula


addScriptedData

public void addScriptedData(java.lang.Object newData)
For internal use only


insertScriptedDataAt

public void insertScriptedDataAt(java.lang.Object newData,
                                 int index)
Inserts data with scripting information at the specified index.


hasScriptedData

public boolean hasScriptedData(int i)
Returns whether this object contains scripted data at the specified index.


getScriptedData

public java.lang.Object getScriptedData(int i)
For internal use only


getScriptedDataCount

public int getScriptedDataCount()
Returns the size of the scripted data.


getActualDataCount

public int getActualDataCount()
For internal use only


getScriptedData

public quadbase.common.util.internal.DataSet getScriptedData(ReportTable table,
                                                             quadbase.reportdesigner.report.Report report,
                                                             int col)
For internal use only


getScriptedData

public java.lang.Object getScriptedData(ReportTable table,
                                        quadbase.reportdesigner.report.Report report,
                                        int col,
                                        int row)
For internal use only


setDrillDownData

public void setDrillDownData(java.lang.Object data)
For internal use only


getDrillDownData

public java.lang.Object getDrillDownData(int row)
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

createColumn

public static ReportColumn createColumn(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

createColumn

public static ReportColumn createColumn(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

setStringFormat

public void setStringFormat(int code)
Specifies whether to decode the Strings in this column to be a URL where an image file, or text file is located. Default is showing the String as is. Use IFormat.IMAGEURL to decode strings as image file locations, and IFormate.TEXTURL to decode strings as text file locations.


sort

public int[] sort(boolean isAsc)
Returns an index array that shows the order in which the rows would be in if the data were sorted. Example indexArray[0] would refer to the row object that is first in the sorting order.

Parameters:
isAsc - whether to sort in ascending or descending order
Returns:
An index array

sort

public int[] sort(boolean isAsc,
                  int[] indexArray)
Returns an index array that shows the order in which the rows refered to in the indexArray would be in if the data were sorted. Example indexArray[0] would refer to the row object that is first in the sorting order.

Parameters:
isAsc - whether to sort in ascending or descending order
Returns:
An index array

sortActualdata

public int[] sortActualdata(boolean isAsc)
Returns an index array that shows the order in which the rows refered to in the indexArray would be in if the actual data were sorted. Example indexArray[0] would refer to the row object that is first in the sorting order.

Parameters:
isAsc - whether to sort in ascending or descending order
Returns:
An index array

scriptReferenced

public boolean scriptReferenced(Script script)
For internal use only

Overrides:
scriptReferenced in class ReportElement

setTopNData

public void setTopNData(int[] sortedIndex,
                        boolean isRowBreak,
                        short aggr)
For internal use only


recalculateFormulaColumnValue

public void recalculateFormulaColumnValue(quadbase.reportdesigner.report.Report report,
                                          int i,
                                          ReportTable table)
For internal use only


applyStyle

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


EspressReport 6.6