EspressReport 6.6

quadbase.reportdesigner.ReportElements
Class ReportSection

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

public class ReportSection
extends quadbase.reportdesigner.ReportElements.ReportTableElement

This class can be used to modify the look & feel, as well as the contents of the header, and footer.

See Also:
Serialized Form

Field Summary
static java.lang.String XMLTAG
           
 
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
ReportSection()
          internal use only Constructs a ReportSection with no border, background color, or data.
ReportSection(ReportCell[] areportcell)
          internal use only Constructs a ReportSection from a ReportCell object.
ReportSection(quadbase.reportdesigner.ReportElements.ReportTableElement reporttableelement)
          internal use only Constructs a ReportSection from a ReportTableElement object.
ReportSection(java.lang.String sectionID)
          internal use only
ReportSection(java.lang.String sectionID, java.lang.String text)
          internal use only
 
Method Summary
 void addData(ReportCell reportcell)
          Adds an object--text, formula, chart, or static image--to this ReportSection.
 void addFormattedCell(ReportCell newCell, ReportCell oldCell, java.util.Vector<java.lang.Integer> key)
          internal use only
 ReportSection addSection()
          Add a new section in the beginning of the section list.
 void addSectionCell(ReportCell reportcell, int[] tree)
          adds a cell to a specific section or sub section
 void addSectionCell(ReportCell reportcell, java.util.Vector<java.lang.Integer> key)
          internal use only
 void addToHeightTable(double height, java.util.Vector<java.lang.Integer> key)
          internal use only
 void adjustFooterFormulas(int count, java.util.Vector columns, quadbase.reportdesigner.report.Report report, ReportCell[] formats, boolean addExtra)
          internal use only
 void adjustHeaderFormulas(int count, java.util.Vector columns, quadbase.reportdesigner.report.Report report, ReportCell globalFormatTemplate, boolean addExtra)
          For internal use only.
 void applyStyle(ReportSection section)
           
 void applyStyle(java.util.Vector setting, ReportSection section)
           
 void applyStyleForDHTMLViewer(ReportSection section)
           
 void applyStyleForFixedFieldSection(ReportSection _section)
           
 void applyTemplate(ReportSection reportSection)
          Deprecated. This method is not used. Use copyTemplate instead for applying another section.
 void calcRBColumnHeaderWidth(quadbase.reportdesigner.ReportElements.RBColumnHeader colHeader, java.util.Vector newColumns, int[] fieldsCount, boolean isCrossTabSubTotalColumnPositionLeft, boolean isAddCrossTabSubTotalColumn, int rbIdx)
           
 ReportCell[] cellsNoGL()
          internal use only
 ReportCell[] cellsNoGLWithSecuredMode()
          internal use only
 boolean containsSection(ReportSection sec)
          whether this section contains the specified section.
 boolean containsSubReport(SubReportObject robj)
           
 boolean containsZIndex()
          internal use only
 void copy(ReportSection reportSection)
          internal use only This method is only used by copyTemplate and in LoadReport when opening a report.
 void copy(ReportSection reportSection, int columnOffset, int separatingIndex, java.util.Vector columns, ReportCell[] globalFormatTemplates, boolean isApplyTemplateOp)
          internal use only
 void copy(ReportSection reportSection, int columnOffset, int separatingIndex, java.util.Vector columns, ReportCell[] globalFormatTemplates, boolean isApplyTemplateOp, boolean copyEmptySection)
          internal use only
 void copy(ReportSection reportSection, int columnOffset, int separatingIndex, java.util.Vector columns, ReportCell[] globalFormatTemplates, boolean isApplyTemplateOp, boolean copyEmptySection, boolean copyGuideLine)
          internal use only
 void copy(ReportSection reportSection, int columnOffset, int separatingIndex, java.util.Vector columns, ReportCell[] globalFormatTemplates, boolean isApplyTemplateOp, boolean copyEmptySection, boolean copyGuideLine, boolean applyScript)
          internal use only
 void copy(ReportSection reportSection, int columnOffset, int separatingIndex, java.util.Vector columns, ReportCell[] globalFormatTemplates, boolean isApplyTemplateOp, boolean copyEmptySection, boolean copyGuideLine, boolean applyScript, boolean keepElt)
          internal use only
 void copy(ReportSection reportSection, int columnOffset, int separatingIndex, java.util.Vector columns, ReportCell[] globalFormatTemplates, boolean isApplyTemplateOp, boolean copyEmptySection, boolean copyGuideLine, boolean applyScript, boolean keepElt, int[] fieldsCount, boolean isCrossTabSubTotalColumnPositionLeft, boolean isAddCrossTabSubTotalColumn, ReportSection parentHeader, java.util.Vector newColumns)
          internal use only
 void copyAllGuideLineElts(quadbase.reportdesigner.report.Report report, quadbase.reportdesigner.report.Report _report, ReportSection section)
          internal use only
 void copyExtraCells(ReportSection reportSection)
           
 void copyImage(ReportSection rs)
          for internal use only
 void copyTemplate(ReportSection reportSection)
          For internal use only.
 void copyTemplate(ReportSection reportSection, boolean copyEmptySection)
           
 void copyTemplate(ReportSection reportSection, boolean copyEmptySection, boolean applyScript)
          internal use only
 void copyTemplate(ReportSection reportSection, boolean copyEmptySection, boolean applyScript, java.util.Vector columns, int[] fieldsCount, boolean isCrossTabSummaryColToL, boolean isAddCrossTabSubTotalColumn)
          internal use only
 void createFormulaObject(quadbase.reportdesigner.report.Report report)
          internal use only
 void createFormulaObjectFromName(quadbase.reportdesigner.report.Report report)
          internal use only
 void createReportTitle(java.lang.String text)
           
 void createScriptObject(java.util.Vector<Script> scripts)
          internal use only
 void createScriptObjectFromName(java.util.Vector<Script> scripts)
          For internal use only.
static ReportSection createSection(java.io.DataInput in, int version, boolean pack, boolean fromReportDesigner, quadbase.common.util.internal.FileInMemTable subFilesTable, java.lang.String domainPath)
          For internal use only.
static ReportSection createSection(org.w3c.dom.Node node, int version)
          For internal use only.
 boolean customIDExists(java.lang.String id)
           
 void deepCopy(ReportSection reportSection)
          internal use only Create an exact duplicate of a section.
 void deleteSectionCell(ReportCell reportCell, int[] tree)
          deletes a cell to a specific section or sub section
 void deleteSectionCell(ReportCell reportCell, java.util.Vector<java.lang.Integer> key)
          internal use only
 void deleteSubReportColData()
           
static ReportElement[] findElementsAbove(ReportElement t, ReportSection relt)
          internal use only
static ReportElement[] findElementstoLeft(ReportElement t, ReportSection relt)
          For internal use only.
static ReportElement[] findElementstoRight(ReportElement t, ReportSection relt)
          for internal use
 int[] findImageIndex(double cx, double cy, java.util.Vector key)
          internal use only
 int[] findReportCellIndex(double cx, double cy, java.util.Vector key)
          internal use only Returns the index of the cell that contains the coordinate point (cx, cy).
 int[] findSectionCellIndex(double cx, double cy, java.util.Vector<java.lang.Integer> key)
          internal use only
 quadbase.reportdesigner.ReportElements.TableOfContents findTOC(double cx, double cy)
          internal use only
 void formatSection()
          For internal use only.
 boolean formulaReferenced(Formula formula)
          Whether the specified formula is referenced (used) in this section.
 java.util.Vector<java.awt.Color> getAllColors(java.util.Vector<java.awt.Color> colors)
          internal use only
 int getCellCount()
          Returns the number of cells within this Report Section.
 java.util.Vector getCellForHTML()
          For internal use only.
 ReportCell[] getCells()
          Gets all ReportCell objects contained in this ReportSection.
 ReportCell[] getData()
          Returns the cells within this Report Section.
 ReportCell[] getData(boolean includeSubSections)
           
 ReportCell getData(int i)
          Returns the cell at the specified index of this Report Section.
 ReportCell getData(java.lang.String cellId)
          Returns the cell with the given ID or customID of this Report Section.
 ReportCell[] getDataIgnoreRepeatCells()
           
 ReportCell[] getDataIgnoreReportImages()
           
 ReportCell[] getDataNoGuideLine()
          internal use only
 ReportCell getFirstCBAggrColFooter(int level, int colBkValIdx)
           
 ReportCell getFirstCBAggrColHeader(int level, int colBkValIdx)
           
 ReportCell getFirstCBColumnFooter(int colBkValIdx)
           
 quadbase.reportdesigner.ReportElements.CBColumnHeader getFirstCBColumnHeader(int colBkValIdx)
           
 ReportCell getFirstRBColumnHeader(int level)
           
static java.util.Vector<ReportElement> getFirstRowOfColumns(java.util.Vector<ReportElement> columns)
           
static java.util.Vector<ReportElement> getFirstRowOfUnsortedColumns(java.util.Vector<ReportElement> columns)
           
 ReportCell getFormattedCell(ReportCell old, int[] tree)
          Gets a formatted cell
 ReportCell getFormattedCell(ReportCell old, java.util.Vector<java.lang.Integer> key)
          internal use only
 java.util.Hashtable getFormattedCells(int[] tree)
          Gets a formatted cell
 java.util.Hashtable<java.lang.Integer,ReportCell> getFormattedCells(java.util.Vector<java.lang.Integer> key)
          internal use only
 int getFormattedCellsCount()
          internal use only
 java.util.Hashtable<java.util.Vector<java.lang.Integer>,java.util.Hashtable<java.lang.Integer,ReportCell>> getFormattedCellsTable()
          Returns the preview editing table.
 double getHeight()
          Returns the height of this ReportSection.
 double getHeight(java.util.Vector<java.lang.Integer> key)
          internal use only
 double getHeightOfSection(int[] tree)
          Gets the height of the section specified by a tree.
 java.util.Hashtable<java.util.Vector<java.lang.Integer>,java.lang.Double> getHeightTable()
          internal use only
 int getHeightTableCount()
          internal use only
 double getMinHeight()
          internal use only
 double getMinWidth()
          internal use only
 ReportSection getParentSection()
          gets this section's parent section.
 ReportChartObject[] getReportChartObjects()
          Return an array of ReportChartObjects in this section including it's subsections
 ReportChartObject[] getReportChartObjects(boolean includeSubSections)
          Return an array of ReportChartObjects in this section
 ReportImage[] getReportImages()
          Return an array of ReportImages in this section including it's subsections
 ReportImage[] getReportImages(boolean includeSubSections)
          Return an array of ReportImages in this section
 ReportSection getSection(int index)
          Gets the section based on the specified index.
 ReportCell getSectionCell(int i, java.util.Vector<java.lang.Integer> key)
          internal use only
 java.util.Vector<ReportCell> getSectionCells(int[] tree)
          internal use only
 java.util.Vector<ReportCell> getSectionCells(java.util.Vector<java.lang.Integer> key)
          internal use only
 int getSectionCellsCount()
          internal use only
 java.util.Hashtable<java.util.Vector<java.lang.Integer>,java.util.Vector<ReportCell>> getSectionCellsTable()
          internal use only
 int getSectionCount()
          How many sub sections exist
 int getSectionIndex(ReportSection section)
          Gets the index for the specified section.
 ReportCell getSectionStyle()
          internal use only
 java.lang.String[] getSecuredScripts()
          For internal use only.
 java.lang.String[] getSecurityLevels()
          Get all security level names in this section.
 java.util.Vector getSubReportForHTML()
          For internal use only.
 SubReportObject[] getSubReports()
          For internal use only.
 SubReportObject[] getSubReports(boolean includeSubSections)
          internal use only
 java.util.Vector getTextCellForHTML()
          For internal use only.
 java.util.Vector getTextCellForHTML(boolean reverseOrder)
           
 ReportCell[] getTextCells()
          Gets ReportCell objects that are text cells (not an ReportImage)
 quadbase.reportdesigner.ReportElements.TableOfContents getTOC()
          internal use only
 double getWidth()
          Returns the width of this ReportSection.
 boolean hasCell(ReportCell cell)
          Whether the specified cell is contained in this ReportSection
 boolean hasExtendVertLineOrGrid()
          internal use only
 boolean hasFormattedCell(int[] tree)
          whether a formatted cell exists at the specified tree index
 boolean hasFormattedCell(ReportCell old, int[] tree)
          internal use only
 boolean hasFormattedCell(ReportCell old, java.util.Vector<java.lang.Integer> key)
          internal use only
 boolean hasFormattedCell(java.util.Vector<java.lang.Integer> key)
          internal use only
 boolean hasNoDrawableData()
          internal use only
 boolean hasNoDrawableData(java.util.Vector key)
          internal use only
 boolean hasSectionCell(ReportCell cell, int[] tree)
          internal use only
 boolean hasSectionCell(ReportCell cell, java.util.Vector<java.lang.Integer> key)
          internal use only
 boolean hasSectionCells(int[] tree)
          internal use only
 boolean hasSectionCells(java.util.Vector<java.lang.Integer> key)
          internal use only
 boolean hasSectionStyle()
          internal use only
 boolean hasThisFormattedCell(ReportCell cell, java.util.Vector<java.lang.Integer> key)
          internal use only
 int indexOf(ReportCell reportcell)
          Returns the index of the ReportCell object within this ReportSection.
 ReportSection insertSection(int index)
          Insert a new section after the specific section.
 boolean isCrossTabFixedFieldHeader()
           
 boolean isNewExcelSheet()
          Whether to create a new excel sheet
 boolean isRepeatOnEveryPage()
          Show status if section header is repeated, when the section is cut off and continued on the next page.
 boolean isResetPageNumber()
          Show the status if the page number is reset
 boolean isSectionStyle(ReportCell cell)
           
 void loadStyle(quadbase.reportdesigner.report.Report report, ReportSection _section)
          for internal use only
 void read(java.io.DataInput in, int version)
          For internal use only.
 void read(java.io.DataInput in, int version, boolean pack, boolean fromReportDesigner, quadbase.common.util.internal.FileInMemTable subFilesTable, java.lang.String domainPath)
          internal use only
 void readSTL(java.io.DataInput in, int version)
           
 void readXML(org.w3c.dom.Node node, int version)
          For internal use only.
 void removeData(int i)
          Removes the ReportCell object at the specified index within this ReportSection.
 void removeData(ReportCell reportcell)
          Removes the specified ReportCell object within this ReportSection.
 void removeScriptReferenced(Script script)
          internal use only.
 boolean removeScriptReferenced(Script script, boolean checkThisSectionOnly)
           
 void removeSection(int index)
          removes a section at the specified index.
 void removeSection(ReportSection section)
          removes the specified section.
 void removeSubReportWithFileName(java.lang.String filename)
          For internal use only.
 void renameSecurityLevel(java.lang.String oldName, java.lang.String newName)
          internal use only
 void renameSubReportFileNames(java.lang.String[] oldFileNames, java.lang.String[] newFileNames)
          Update filenames of all SubReportObject objects.
 void replaceCell(ReportCell newCell, ReportCell oldCell, int[] tree)
          replaces a formatted cell (preview editing) to the section.
static void repositionCells(ReportSection orgSec, ReportSection sec, java.util.Vector cols, int[] fieldsCount, boolean repositionNestLevelOnly, boolean isCTSummaryColumnToL, boolean isAddCrossTabSubTotalColumn)
           
static void repositionCells(ReportSection orgSec, ReportSection sec, java.util.Vector columns, int[] fieldsCount, boolean repositionNestLevelOnly, boolean isCTSummaryColumnToL, boolean isAddCrossTabSubTotalColumn, java.util.Vector orgCellRows, java.util.Vector cellRows, int orgCellRowsID, int cellRowsID)
           
 void resize(double xratio, double yratio)
          resizes the section according to the specified x and y ratios
 void resizeForCrossTabFixedField(java.util.Vector resizeItems, double ratioW, double ratioH, double startXD, double startYD)
          internal use only
static void resizeHorizontallyAndShift(ReportElement t, ReportSection relt, double heightChange)
          internal use only
static void resizeVerticallyAndShift(ReportElement t, ReportSection relt, double heightChange)
          internal use only
 boolean sameSection(ReportElement _sec, boolean includeSubSections)
           
 boolean scriptReferenced(Script script)
          Whether the specified script is referenced (used) in this section.
 boolean scriptReferenced(Script script, boolean checkThisSectionOnly)
          Whether the specified script is referenced (used) in this section.
 boolean securityScriptReferenced(Script script)
          Whether the specified script is referenced (used) in this section.
 boolean securityScriptReferenced(Script script, boolean checkThisSectionOnly)
          Whether the specified script is referenced (used) in this section.
 void setBorder(int border)
          Deprecated. 
 void setBorderColor(java.awt.Color color)
          Sets the color of the border.
 void setBorderThickness(int border)
          Sets the thickness of the border in pixels.
 void setChartParameterMap(java.lang.String filename, java.lang.String[] paramMap)
          For internal use only.
 void setChartPath(java.lang.String path)
          changing all the chart path location for ReportChartObject.
 void setData(ReportCell[] areportcell)
          Re-sets the data object used by this ReportSection.
 void setData(ReportCell reportcell, int i)
          Re-sets the ReportCell object at the specified index within this ReportSection.
 void setDataForDeepCopy(ReportCell[] reportCell)
          internal use only
 void setFitGroupOnPage(quadbase.reportdesigner.report.Report report, boolean b)
          FitGroupOnPage is a property of each group.
 void setFormattedCellsTable(java.util.Hashtable cellArray)
          Sets the preview editing table.
 void setGridLineLink(IReport report)
          internal use only
 void setHeight(double h)
          Specifies the height of this ReportSection.
 void setHeightOfSection(double height, int[] tree)
          internal use only
 void setHeightTable(java.util.Hashtable<java.util.Vector<java.lang.Integer>,java.lang.Double> table)
          internal use only
 void setHTMLParameters(java.lang.String dirLocation, java.lang.String url, java.lang.String fileName)
          changing all the chart path location for ReportChartObject.
 void setID(java.lang.String newID)
          Set the id of this element
 void setImagePath(java.lang.String path)
          changing all the image path location for ReportImage.
 void setLocale(java.util.Locale l)
          For internal use only
 void setNewExcelSheet(boolean state)
          Specify if the a new excel sheet will be created based on the value change
 void setPackedSubReportByteArray(quadbase.common.util.internal.FileInMemTable subFilesTable, java.util.Vector subReports)
           
 void setRepeatOnEveryPage(boolean state)
          Specify if section header is repeated, when the section is cut off and continued on the next page.
 void setReportObjectForSubReports(java.lang.String filename, ISubReport rptobject)
          For internal use only.
 void setResetPageNumber(boolean state)
          Specify if the page number is ought to be reset from this Group header If is set to reset page number, set print on new page to be true
 void setSectionStyle(ReportCell cell)
          internal use only
 void setSecurityLevelProperties(java.lang.String levelName, ReportElement level)
          For internal use only.
 void setSnapToGrid(boolean snapToGrid, boolean metric, double stepSize)
          internal use only
 void setSnapToGrid(boolean snapToGrid, double stepSize, double cmStepSize)
          internal use only
 void setSubReportParameterMap(java.lang.String filename, java.lang.String[] paramMap)
          For internal use only.
 void setSubReportPath(java.lang.String path)
          changing all the image path location for ReportImage.
 void setWidth(double w)
          Specifies the width of this ReportSection.
 void shift(ReportElement elt, boolean isHorizontal, double change)
          internal use only shift after resizing one ReportElement
 void shiftObjectsOnMove(ReportElement elt, boolean isHorizontal, double change)
          internal use only
 void shiftOnMove(ReportElement elt, boolean isHorizontal, double change)
          internal use only
 ReportCell[] sortCell(int order, boolean isAsc)
          Sorts the cells,
 ReportCell[] sortCell(int order, boolean isAsc, java.util.Vector<java.lang.Integer> key)
          internal use only
 int update(ReportCell reportcell)
          internal use only
 void updateSubReportFileName(java.lang.String oldfilename, java.lang.String newfilename)
          For internal use only.
 void write(java.io.DataOutput out)
          For internal use only.
 void write(java.io.DataOutput out, boolean pack)
          internal use only
 void writeSTL(java.io.DataOutput out)
           
 void writeXML(java.io.Writer out, boolean writeElementTag)
          For internal use only.
 
Methods inherited from class quadbase.reportdesigner.ReportElements.ReportTableElement
applyTemplate, copy, copyTemplate, deepCopy, filterElementForSecurity, getBackground, getCellPadding, getCellSpacing, getHTMLTableBorderColor, getHTMLTableBorderObject, getHTMLTableBorderThickness, hasHTMLTableBorder, isPrintOnNewPage, isSkipFirstGroupValue, isSkipFirstValue, setBackground, setCellPadding, setCellSpacing, setDesignerSecuredMode, setHTMLTableBorder, setHTMLTableBorder, setHTMLTableBorderColor, setHTMLTableBorderThickness, setPrintOnNewPage, setSkipFirstGroupValue, setSkipFirstValue
 
Methods inherited from class quadbase.reportdesigner.ReportElements.ReportElement
addSecurityLevel, applyImageTemplate, applyImageTemplateExceptBound, applySecurity, applyStyle, applyStyleButNotWH, applyTemplate, applyTemplate, applyTemplate, contains, contains, containsX, containsY, copy, copyTemplate, 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, getHeightOfElement, getHeightOfElement, getHeightToPoints, getHint, getID, getLeftBorder, getLink, getMaxXr, getMin_Height, getMin_Width, getMinX, getRefFont, getRefFontToDraw, getRightBorder, getRotateAngle, getRoundCornerRadius, getRoundCornersArray, getScript, getScriptName, getScriptObj, getSecurityLevel, getSecurityMap, getSnap, getStyleName, getTarget, getText, getTopBorder, getVAlign, getVSnap, 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, removeSecurityLevel, resizeForCrossTabFixedField, resizeForCrossTabFixedField, setAlign, setBgColor, setBookmark, setBorderThickness, setBorderThickness, setBottomBorder, setCustomID, setDrawAgain, setDrawX, setDrawX, setDrawY, setDrawY, setDrillDownName, setFont, setFontColor, setHeight, setHint, setID, setInchGridSpace, setLeftBorder, setLink, setLocked, setMinHeight, setMinWidth, setNoWrap, setResizeToFitContent, setRightBorder, setRotateAngle, setRotateAngle, setRoundCornerRadius, setRoundCornersArray, setScript, setScriptName, setScriptObj, setScriptObjNull, setSecurityMap, setSecurityTextScript, setShiftSecuredColX, setShiftSecuredColXIncludeHeaderAndFooter, setSnap, setStyleName, setTarget, setText, setTopBorder, setUnderline, setVAlign, setVisible, setVSnap, 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
See Also:
Constant Field Values
Constructor Detail

ReportSection

public ReportSection()
internal use only Constructs a ReportSection with no border, background color, or data.


ReportSection

public ReportSection(java.lang.String sectionID)
internal use only


ReportSection

public ReportSection(java.lang.String sectionID,
                     java.lang.String text)
internal use only


ReportSection

public ReportSection(quadbase.reportdesigner.ReportElements.ReportTableElement reporttableelement)
internal use only Constructs a ReportSection from a ReportTableElement object.


ReportSection

public ReportSection(ReportCell[] areportcell)
internal use only Constructs a ReportSection from a ReportCell object.

Method Detail

getCells

public ReportCell[] getCells()
Gets all ReportCell objects contained in this ReportSection.


hasCell

public boolean hasCell(ReportCell cell)
Whether the specified cell is contained in this ReportSection


getReportImages

public ReportImage[] getReportImages()
Return an array of ReportImages in this section including it's subsections


getReportImages

public ReportImage[] getReportImages(boolean includeSubSections)
Return an array of ReportImages in this section

Parameters:
whether - to include the subsections

getReportChartObjects

public ReportChartObject[] getReportChartObjects()
Return an array of ReportChartObjects in this section including it's subsections


getReportChartObjects

public ReportChartObject[] getReportChartObjects(boolean includeSubSections)
Return an array of ReportChartObjects in this section

Parameters:
whether - to include it's subsections

getTextCells

public ReportCell[] getTextCells()
Gets ReportCell objects that are text cells (not an ReportImage)


addData

public void addData(ReportCell reportcell)
Adds an object--text, formula, chart, or static image--to this ReportSection.


addSectionCell

public void addSectionCell(ReportCell reportcell,
                           int[] tree)
adds a cell to a specific section or sub section

Parameters:
reportcell - the cell to add
tree - the index that specifies the section or sub section to add the tree. For example, tree = {1, 2} would specify the second table of the first row break, and third table of the second row break. While tree = {2, 3, 1} would specify the third table of the first row break, and fourth table of the second row break, and the second table of the third row break.

addSectionCell

public void addSectionCell(ReportCell reportcell,
                           java.util.Vector<java.lang.Integer> key)
internal use only


deleteSectionCell

public void deleteSectionCell(ReportCell reportCell,
                              int[] tree)
deletes a cell to a specific section or sub section

Parameters:
reportcell - the cell to add
tree - the index that specifies the section or sub section to add the tree. For example, tree = {1, 2} would specify the second table of the first row break, and third table of the second row break. While tree = {2, 3, 1} would specify the third table of the first row break, and fourth table of the second row break, and the second table of the third row break.

deleteSectionCell

public void deleteSectionCell(ReportCell reportCell,
                              java.util.Vector<java.lang.Integer> key)
internal use only


hasSectionCells

public boolean hasSectionCells(int[] tree)
internal use only


hasSectionCells

public boolean hasSectionCells(java.util.Vector<java.lang.Integer> key)
internal use only


hasSectionCell

public boolean hasSectionCell(ReportCell cell,
                              int[] tree)
internal use only


hasSectionCell

public boolean hasSectionCell(ReportCell cell,
                              java.util.Vector<java.lang.Integer> key)
internal use only


getSectionCells

public java.util.Vector<ReportCell> getSectionCells(int[] tree)
internal use only


getSectionCells

public java.util.Vector<ReportCell> getSectionCells(java.util.Vector<java.lang.Integer> key)
internal use only


getSectionCellsTable

public java.util.Hashtable<java.util.Vector<java.lang.Integer>,java.util.Vector<ReportCell>> getSectionCellsTable()
internal use only


getSectionCellsCount

public int getSectionCellsCount()
internal use only


setHeightOfSection

public void setHeightOfSection(double height,
                               int[] tree)
internal use only


addToHeightTable

public void addToHeightTable(double height,
                             java.util.Vector<java.lang.Integer> key)
internal use only


getHeightOfSection

public double getHeightOfSection(int[] tree)
Gets the height of the section specified by a tree.

Parameters:
tree - the index that specifies the section or sub section to add the tree. For example, tree = {1, 2} would specify the second table of the first row break, and third table of the second row break. While tree = {2, 3, 1} would specify the third table of the first row break, and fourth table of the second row break, and the second table of the third row break.

getHeight

public double getHeight(java.util.Vector<java.lang.Integer> key)
internal use only


getHeightTable

public java.util.Hashtable<java.util.Vector<java.lang.Integer>,java.lang.Double> getHeightTable()
internal use only


setHeightTable

public void setHeightTable(java.util.Hashtable<java.util.Vector<java.lang.Integer>,java.lang.Double> table)
internal use only


getHeightTableCount

public int getHeightTableCount()
internal use only


addFormattedCell

public void addFormattedCell(ReportCell newCell,
                             ReportCell oldCell,
                             java.util.Vector<java.lang.Integer> key)
internal use only


hasFormattedCell

public boolean hasFormattedCell(java.util.Vector<java.lang.Integer> key)
internal use only


hasFormattedCell

public boolean hasFormattedCell(ReportCell old,
                                java.util.Vector<java.lang.Integer> key)
internal use only


hasThisFormattedCell

public boolean hasThisFormattedCell(ReportCell cell,
                                    java.util.Vector<java.lang.Integer> key)
internal use only


getFormattedCell

public ReportCell getFormattedCell(ReportCell old,
                                   java.util.Vector<java.lang.Integer> key)
internal use only


getFormattedCells

public java.util.Hashtable<java.lang.Integer,ReportCell> getFormattedCells(java.util.Vector<java.lang.Integer> key)
internal use only


replaceCell

public void replaceCell(ReportCell newCell,
                        ReportCell oldCell,
                        int[] tree)
replaces a formatted cell (preview editing) to the section.

Parameters:
newCell - the cell to add
oldCell - , the old cell to replace
key - the tree structure in Vector form, the tree structure is as follows: int[] tree, it is the index that specifies the section or sub section to add the tree. For example, tree = {1, 2} would specify the second table of the first row break, and third table of the second row break. While tree = {2, 3, 1} would specify the third table of the first row break, and fourth table of the second row break, and the second table of the third row break.

hasFormattedCell

public boolean hasFormattedCell(int[] tree)
whether a formatted cell exists at the specified tree index

Parameters:
tree - the index that specifies the section or sub section to add the tree. For example, tree = {1, 2} would specify the second table of the first row break, and third table of the second row break. While tree = {2, 3, 1} would specify the third table of the first row break, and fourth table of the second row break, and the second table of the third row break.

hasFormattedCell

public boolean hasFormattedCell(ReportCell old,
                                int[] tree)
internal use only


getFormattedCell

public ReportCell getFormattedCell(ReportCell old,
                                   int[] tree)
Gets a formatted cell

Parameters:
old - the cell to get
tree - the index that specifies the section or sub section to add the tree. For example, tree = {1, 2} would specify the second table of the first row break, and third table of the second row break. While tree = {2, 3, 1} would specify the third table of the first row break, and fourth table of the second row break, and the second table of the third row break.

getFormattedCells

public java.util.Hashtable getFormattedCells(int[] tree)
Gets a formatted cell

Parameters:
tree - the index that specifies the section or sub section to add the tree. For example, tree = {1, 2} would specify the second table of the first row break, and third table of the second row break. While tree = {2, 3, 1} would specify the third table of the first row break, and fourth table of the second row break, and the second table of the third row break.

getFormattedCellsTable

public java.util.Hashtable<java.util.Vector<java.lang.Integer>,java.util.Hashtable<java.lang.Integer,ReportCell>> getFormattedCellsTable()
Returns the preview editing table.


setFormattedCellsTable

public void setFormattedCellsTable(java.util.Hashtable cellArray)
Sets the preview editing table. Pass in null to disable all preview editing for this ReportSection.


getFormattedCellsCount

public int getFormattedCellsCount()
internal use only


copy

public void copy(ReportSection reportSection)
internal use only This method is only used by copyTemplate and in LoadReport when opening a report. To create an exact duplicate, use deepCopy instead.


copy

public void copy(ReportSection reportSection,
                 int columnOffset,
                 int separatingIndex,
                 java.util.Vector columns,
                 ReportCell[] globalFormatTemplates,
                 boolean isApplyTemplateOp)
internal use only


copy

public void copy(ReportSection reportSection,
                 int columnOffset,
                 int separatingIndex,
                 java.util.Vector columns,
                 ReportCell[] globalFormatTemplates,
                 boolean isApplyTemplateOp,
                 boolean copyEmptySection)
internal use only


copy

public void copy(ReportSection reportSection,
                 int columnOffset,
                 int separatingIndex,
                 java.util.Vector columns,
                 ReportCell[] globalFormatTemplates,
                 boolean isApplyTemplateOp,
                 boolean copyEmptySection,
                 boolean copyGuideLine)
internal use only


copy

public void copy(ReportSection reportSection,
                 int columnOffset,
                 int separatingIndex,
                 java.util.Vector columns,
                 ReportCell[] globalFormatTemplates,
                 boolean isApplyTemplateOp,
                 boolean copyEmptySection,
                 boolean copyGuideLine,
                 boolean applyScript)
internal use only


copy

public void copy(ReportSection reportSection,
                 int columnOffset,
                 int separatingIndex,
                 java.util.Vector columns,
                 ReportCell[] globalFormatTemplates,
                 boolean isApplyTemplateOp,
                 boolean copyEmptySection,
                 boolean copyGuideLine,
                 boolean applyScript,
                 boolean keepElt)
internal use only


getFirstRowOfColumns

public static java.util.Vector<ReportElement> getFirstRowOfColumns(java.util.Vector<ReportElement> columns)

getFirstRowOfUnsortedColumns

public static java.util.Vector<ReportElement> getFirstRowOfUnsortedColumns(java.util.Vector<ReportElement> columns)

copy

public void copy(ReportSection reportSection,
                 int columnOffset,
                 int separatingIndex,
                 java.util.Vector columns,
                 ReportCell[] globalFormatTemplates,
                 boolean isApplyTemplateOp,
                 boolean copyEmptySection,
                 boolean copyGuideLine,
                 boolean applyScript,
                 boolean keepElt,
                 int[] fieldsCount,
                 boolean isCrossTabSubTotalColumnPositionLeft,
                 boolean isAddCrossTabSubTotalColumn,
                 ReportSection parentHeader,
                 java.util.Vector newColumns)
internal use only


copyExtraCells

public void copyExtraCells(ReportSection reportSection)

applyStyleForFixedFieldSection

public void applyStyleForFixedFieldSection(ReportSection _section)

calcRBColumnHeaderWidth

public void calcRBColumnHeaderWidth(quadbase.reportdesigner.ReportElements.RBColumnHeader colHeader,
                                    java.util.Vector newColumns,
                                    int[] fieldsCount,
                                    boolean isCrossTabSubTotalColumnPositionLeft,
                                    boolean isAddCrossTabSubTotalColumn,
                                    int rbIdx)

deepCopy

public void deepCopy(ReportSection reportSection)
internal use only Create an exact duplicate of a section. Used in creating backup for an 'Undo' operation. Use this method instead of 'Copy'.


copyTemplate

public void copyTemplate(ReportSection reportSection)
For internal use only. Use for the 'Apply Template' operation. Copies cells from a section to this section. However, sub-reports are not copied.


copyTemplate

public void copyTemplate(ReportSection reportSection,
                         boolean copyEmptySection)

copyTemplate

public void copyTemplate(ReportSection reportSection,
                         boolean copyEmptySection,
                         boolean applyScript)
internal use only


copyTemplate

public void copyTemplate(ReportSection reportSection,
                         boolean copyEmptySection,
                         boolean applyScript,
                         java.util.Vector columns,
                         int[] fieldsCount,
                         boolean isCrossTabSummaryColToL,
                         boolean isAddCrossTabSubTotalColumn)
internal use only


applyTemplate

@Deprecated
public void applyTemplate(ReportSection reportSection)
Deprecated. This method is not used. Use copyTemplate instead for applying another section.

internal use only


getCellForHTML

public java.util.Vector getCellForHTML()
For internal use only.


getTextCellForHTML

public java.util.Vector getTextCellForHTML()
For internal use only.


getTextCellForHTML

public java.util.Vector getTextCellForHTML(boolean reverseOrder)

getSubReportForHTML

public java.util.Vector getSubReportForHTML()
For internal use only.


getCellCount

public int getCellCount()
Returns the number of cells within this Report Section.


hasNoDrawableData

public boolean hasNoDrawableData()
internal use only


hasNoDrawableData

public boolean hasNoDrawableData(java.util.Vector key)
internal use only


getData

public ReportCell[] getData()
Returns the cells within this Report Section.


getData

public ReportCell[] getData(boolean includeSubSections)

sameSection

public boolean sameSection(ReportElement _sec,
                           boolean includeSubSections)

getDataNoGuideLine

public ReportCell[] getDataNoGuideLine()
internal use only


getData

public ReportCell getData(int i)
Returns the cell at the specified index of this Report Section.


getDataIgnoreRepeatCells

public ReportCell[] getDataIgnoreRepeatCells()

getDataIgnoreReportImages

public ReportCell[] getDataIgnoreReportImages()

getFirstCBColumnHeader

public quadbase.reportdesigner.ReportElements.CBColumnHeader getFirstCBColumnHeader(int colBkValIdx)

getFirstCBColumnFooter

public ReportCell getFirstCBColumnFooter(int colBkValIdx)

getFirstCBAggrColHeader

public ReportCell getFirstCBAggrColHeader(int level,
                                          int colBkValIdx)

getFirstRBColumnHeader

public ReportCell getFirstRBColumnHeader(int level)

getFirstCBAggrColFooter

public ReportCell getFirstCBAggrColFooter(int level,
                                          int colBkValIdx)

getData

public ReportCell getData(java.lang.String cellId)
Returns the cell with the given ID or customID of this Report Section.


getSectionCell

public ReportCell getSectionCell(int i,
                                 java.util.Vector<java.lang.Integer> key)
internal use only


getAllColors

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

Overrides:
getAllColors in class ReportElement

getSecurityLevels

public java.lang.String[] getSecurityLevels()
Get all security level names in this section.

Overrides:
getSecurityLevels in class ReportElement

getSecuredScripts

public java.lang.String[] getSecuredScripts()
For internal use only.

Overrides:
getSecuredScripts in class ReportElement

setSecurityLevelProperties

public void setSecurityLevelProperties(java.lang.String levelName,
                                       ReportElement level)
For internal use only.

Overrides:
setSecurityLevelProperties in class ReportElement

setReportObjectForSubReports

public void setReportObjectForSubReports(java.lang.String filename,
                                         ISubReport rptobject)
For internal use only. This method is used only with the API. This method performs overhead updating when the user calls getSubReport() from a SubReportObject.


updateSubReportFileName

public void updateSubReportFileName(java.lang.String oldfilename,
                                    java.lang.String newfilename)
For internal use only. This method is used only with the API. This method performs overhead updating when the user exports a QbReport with subreports to RPT or XML.


setHTMLParameters

public void setHTMLParameters(java.lang.String dirLocation,
                              java.lang.String url,
                              java.lang.String fileName)
changing all the chart path location for ReportChartObject.


setChartPath

public void setChartPath(java.lang.String path)
changing all the chart path location for ReportChartObject.


setImagePath

public void setImagePath(java.lang.String path)
changing all the image path location for ReportImage.


setSubReportPath

public void setSubReportPath(java.lang.String path)
changing all the image path location for ReportImage.


findSectionCellIndex

public int[] findSectionCellIndex(double cx,
                                  double cy,
                                  java.util.Vector<java.lang.Integer> key)
internal use only


findTOC

public quadbase.reportdesigner.ReportElements.TableOfContents findTOC(double cx,
                                                                      double cy)
internal use only


getTOC

public quadbase.reportdesigner.ReportElements.TableOfContents getTOC()
internal use only


findImageIndex

public int[] findImageIndex(double cx,
                            double cy,
                            java.util.Vector key)
internal use only


findReportCellIndex

public int[] findReportCellIndex(double cx,
                                 double cy,
                                 java.util.Vector key)
internal use only Returns the index of the cell that contains the coordinate point (cx, cy).


indexOf

public int indexOf(ReportCell reportcell)
Returns the index of the ReportCell object within this ReportSection.


update

public int update(ReportCell reportcell)
internal use only


removeData

public void removeData(int i)
Removes the ReportCell object at the specified index within this ReportSection.


removeData

public void removeData(ReportCell reportcell)
Removes the specified ReportCell object within this ReportSection.


setData

public void setData(ReportCell reportcell,
                    int i)
Re-sets the ReportCell object at the specified index within this ReportSection.


setData

public void setData(ReportCell[] areportcell)
Re-sets the data object used by this ReportSection.


setDataForDeepCopy

public void setDataForDeepCopy(ReportCell[] reportCell)
internal use only


setID

public void setID(java.lang.String newID)
Description copied from class: ReportElement
Set the id of this element

Overrides:
setID in class ReportElement
Parameters:
newID - the value of new id

customIDExists

public boolean customIDExists(java.lang.String id)

containsZIndex

public boolean containsZIndex()
internal use only


formulaReferenced

public boolean formulaReferenced(Formula formula)
Whether the specified formula is referenced (used) in this section.


scriptReferenced

public boolean scriptReferenced(Script script)
Whether the specified script is referenced (used) in this section.

Overrides:
scriptReferenced in class ReportElement

scriptReferenced

public boolean scriptReferenced(Script script,
                                boolean checkThisSectionOnly)
Whether the specified script is referenced (used) in this section.


securityScriptReferenced

public boolean securityScriptReferenced(Script script)
Whether the specified script is referenced (used) in this section.

Overrides:
securityScriptReferenced in class ReportElement

securityScriptReferenced

public boolean securityScriptReferenced(Script script,
                                        boolean checkThisSectionOnly)
Whether the specified script is referenced (used) in this section.


removeScriptReferenced

public void removeScriptReferenced(Script script)
Description copied from class: ReportElement
internal use only. *

Overrides:
removeScriptReferenced in class ReportElement

removeScriptReferenced

public boolean removeScriptReferenced(Script script,
                                      boolean checkThisSectionOnly)

createFormulaObject

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


createFormulaObjectFromName

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


createScriptObject

public void createScriptObject(java.util.Vector<Script> scripts)
internal use only

Overrides:
createScriptObject in class ReportElement

createScriptObjectFromName

public void createScriptObjectFromName(java.util.Vector<Script> scripts)
For internal use only.

Overrides:
createScriptObjectFromName in class quadbase.reportdesigner.ReportElements.ReportTableElement

setGridLineLink

public void setGridLineLink(IReport report)
internal use only


sortCell

public ReportCell[] sortCell(int order,
                             boolean isAsc)
Sorts the cells,

Parameters:
order - use ReportElement.SORT_X, or ReportElement.SORT_Y.
isAsc - specifies if sorting in the ascending order.

sortCell

public ReportCell[] sortCell(int order,
                             boolean isAsc,
                             java.util.Vector<java.lang.Integer> key)
internal use only


getMinHeight

public double getMinHeight()
internal use only


getMinWidth

public double getMinWidth()
internal use only


resize

public void resize(double xratio,
                   double yratio)
resizes the section according to the specified x and y ratios

Overrides:
resize in class ReportElement

formatSection

public void formatSection()
For internal use only.


isRepeatOnEveryPage

public boolean isRepeatOnEveryPage()
Show status if section header is repeated, when the section is cut off and continued on the next page.


setRepeatOnEveryPage

public void setRepeatOnEveryPage(boolean state)
Specify if section header is repeated, when the section is cut off and continued on the next page.


isResetPageNumber

public boolean isResetPageNumber()
Show the status if the page number is reset


setResetPageNumber

public void setResetPageNumber(boolean state)
Specify if the page number is ought to be reset from this Group header If is set to reset page number, set print on new page to be true


isNewExcelSheet

public boolean isNewExcelSheet()
Whether to create a new excel sheet


setNewExcelSheet

public void setNewExcelSheet(boolean state)
Specify if the a new excel sheet will be created based on the value change


setBorderThickness

public void setBorderThickness(int border)
Sets the thickness of the border in pixels.

Overrides:
setBorderThickness in class ReportElement

setBorder

@Deprecated
public void setBorder(int border)
Deprecated. 

Overrides:
setBorder in class ReportElement

setBorderColor

public void setBorderColor(java.awt.Color color)
Sets the color of the border.

Overrides:
setBorderColor in class ReportElement
Parameters:
color - new border color of this element

getHeight

public double getHeight()
Returns the height of this ReportSection.

Overrides:
getHeight in class ReportElement
Returns:
height value of this element

getWidth

public double getWidth()
Returns the width of this ReportSection.

Overrides:
getWidth in class ReportElement
Returns:
width value of this element

setHeight

public void setHeight(double h)
Specifies the height of this ReportSection.

Overrides:
setHeight in class ReportElement
Parameters:
h - height of this element

setWidth

public void setWidth(double w)
Specifies the width of this ReportSection.

Overrides:
setWidth in class ReportElement
Parameters:
w - width of this element

setSectionStyle

public void setSectionStyle(ReportCell cell)
internal use only


getSectionStyle

public ReportCell getSectionStyle()
internal use only


hasSectionStyle

public boolean hasSectionStyle()
internal use only


isSectionStyle

public boolean isSectionStyle(ReportCell cell)

write

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

Overrides:
write in class quadbase.reportdesigner.ReportElements.ReportTableElement
Throws:
java.io.IOException

write

public void write(java.io.DataOutput out,
                  boolean pack)
           throws java.io.IOException
internal use only

Throws:
java.io.IOException

read

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

Overrides:
read in class quadbase.reportdesigner.ReportElements.ReportTableElement
Throws:
java.lang.Exception

read

public void read(java.io.DataInput in,
                 int version,
                 boolean pack,
                 boolean fromReportDesigner,
                 quadbase.common.util.internal.FileInMemTable subFilesTable,
                 java.lang.String domainPath)
          throws java.lang.Exception
internal use only

Throws:
java.lang.Exception

writeXML

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

Overrides:
writeXML in class quadbase.reportdesigner.ReportElements.ReportTableElement
Throws:
java.io.IOException

createSection

public static ReportSection createSection(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 quadbase.reportdesigner.ReportElements.ReportTableElement
Throws:
java.lang.Exception

createSection

public static ReportSection createSection(java.io.DataInput in,
                                          int version,
                                          boolean pack,
                                          boolean fromReportDesigner,
                                          quadbase.common.util.internal.FileInMemTable subFilesTable,
                                          java.lang.String domainPath)
                                   throws java.lang.Exception
For internal use only.

Throws:
java.lang.Exception

writeSTL

public void writeSTL(java.io.DataOutput out)
              throws java.lang.Exception
Throws:
java.lang.Exception

readSTL

public void readSTL(java.io.DataInput in,
                    int version)
             throws java.lang.Exception
Throws:
java.lang.Exception

cellsNoGL

public ReportCell[] cellsNoGL()
internal use only


cellsNoGLWithSecuredMode

public ReportCell[] cellsNoGLWithSecuredMode()
internal use only


shift

public void shift(ReportElement elt,
                  boolean isHorizontal,
                  double change)
internal use only shift after resizing one ReportElement


shiftOnMove

public void shiftOnMove(ReportElement elt,
                        boolean isHorizontal,
                        double change)
internal use only


resizeForCrossTabFixedField

public void resizeForCrossTabFixedField(java.util.Vector resizeItems,
                                        double ratioW,
                                        double ratioH,
                                        double startXD,
                                        double startYD)
internal use only


shiftObjectsOnMove

public void shiftObjectsOnMove(ReportElement elt,
                               boolean isHorizontal,
                               double change)
internal use only


findElementstoRight

public static ReportElement[] findElementstoRight(ReportElement t,
                                                  ReportSection relt)
for internal use


findElementstoLeft

public static ReportElement[] findElementstoLeft(ReportElement t,
                                                 ReportSection relt)
For internal use only.


findElementsAbove

public static ReportElement[] findElementsAbove(ReportElement t,
                                                ReportSection relt)
internal use only


resizeHorizontallyAndShift

public static void resizeHorizontallyAndShift(ReportElement t,
                                              ReportSection relt,
                                              double heightChange)
internal use only


resizeVerticallyAndShift

public static void resizeVerticallyAndShift(ReportElement t,
                                            ReportSection relt,
                                            double heightChange)
internal use only


copyImage

public void copyImage(ReportSection rs)
for internal use only


removeSubReportWithFileName

public void removeSubReportWithFileName(java.lang.String filename)
For internal use only. Remove any SubReportObject object with the same file name.


renameSubReportFileNames

public void renameSubReportFileNames(java.lang.String[] oldFileNames,
                                     java.lang.String[] newFileNames)
Update filenames of all SubReportObject objects. This is likely the result of a 'Save As' operation.


setSubReportParameterMap

public void setSubReportParameterMap(java.lang.String filename,
                                     java.lang.String[] paramMap)
For internal use only. Set SubReport parameter map with the same file name.


setChartParameterMap

public void setChartParameterMap(java.lang.String filename,
                                 java.lang.String[] paramMap)
For internal use only. Set chart parameter map with the same file name.


getSubReports

public SubReportObject[] getSubReports()
For internal use only.


containsSubReport

public boolean containsSubReport(SubReportObject robj)

getSubReports

public SubReportObject[] getSubReports(boolean includeSubSections)
internal use only


getSectionCount

public int getSectionCount()
How many sub sections exist


addSection

public ReportSection addSection()
Add a new section in the beginning of the section list. The new section will be in position 0.


insertSection

public ReportSection insertSection(int index)
                            throws java.lang.Exception
Insert a new section after the specific section. Return the newly created section.

Throws:
java.lang.Exception

getSectionIndex

public int getSectionIndex(ReportSection section)
Gets the index for the specified section.


getSection

public ReportSection getSection(int index)
                         throws java.lang.Exception
Gets the section based on the specified index.

Throws:
java.lang.Exception

removeSection

public void removeSection(int index)
                   throws java.lang.Exception
removes a section at the specified index.

Throws:
java.lang.Exception

removeSection

public void removeSection(ReportSection section)
removes the specified section.


getParentSection

public ReportSection getParentSection()
gets this section's parent section.


adjustHeaderFormulas

public void adjustHeaderFormulas(int count,
                                 java.util.Vector columns,
                                 quadbase.reportdesigner.report.Report report,
                                 ReportCell globalFormatTemplate,
                                 boolean addExtra)
For internal use only. Remove any extra headers if this report contains less columns than it originally has.


adjustFooterFormulas

public void adjustFooterFormulas(int count,
                                 java.util.Vector columns,
                                 quadbase.reportdesigner.report.Report report,
                                 ReportCell[] formats,
                                 boolean addExtra)
internal use only


repositionCells

public static void repositionCells(ReportSection orgSec,
                                   ReportSection sec,
                                   java.util.Vector cols,
                                   int[] fieldsCount,
                                   boolean repositionNestLevelOnly,
                                   boolean isCTSummaryColumnToL,
                                   boolean isAddCrossTabSubTotalColumn)

repositionCells

public static void repositionCells(ReportSection orgSec,
                                   ReportSection sec,
                                   java.util.Vector columns,
                                   int[] fieldsCount,
                                   boolean repositionNestLevelOnly,
                                   boolean isCTSummaryColumnToL,
                                   boolean isAddCrossTabSubTotalColumn,
                                   java.util.Vector orgCellRows,
                                   java.util.Vector cellRows,
                                   int orgCellRowsID,
                                   int cellRowsID)

isCrossTabFixedFieldHeader

public boolean isCrossTabFixedFieldHeader()

setSnapToGrid

public void setSnapToGrid(boolean snapToGrid,
                          boolean metric,
                          double stepSize)
internal use only

Overrides:
setSnapToGrid in class ReportElement

setSnapToGrid

public void setSnapToGrid(boolean snapToGrid,
                          double stepSize,
                          double cmStepSize)
internal use only

Overrides:
setSnapToGrid in class ReportElement

copyAllGuideLineElts

public void copyAllGuideLineElts(quadbase.reportdesigner.report.Report report,
                                 quadbase.reportdesigner.report.Report _report,
                                 ReportSection section)
internal use only


containsSection

public boolean containsSection(ReportSection sec)
whether this section contains the specified section.


setFitGroupOnPage

public void setFitGroupOnPage(quadbase.reportdesigner.report.Report report,
                              boolean b)
FitGroupOnPage is a property of each group. When set to true, the whole group will be printed on the same page. If there is not enough space to print the whole group on the current page, start on the next page. In other words, the group won't break up.

Parameters:
report - : the main report object
b - : fitGroupOnPage: true or false

renameSecurityLevel

public void renameSecurityLevel(java.lang.String oldName,
                                java.lang.String newName)
internal use only

Overrides:
renameSecurityLevel in class ReportElement

setLocale

public void setLocale(java.util.Locale l)
For internal use only


setPackedSubReportByteArray

public void setPackedSubReportByteArray(quadbase.common.util.internal.FileInMemTable subFilesTable,
                                        java.util.Vector subReports)

loadStyle

public void loadStyle(quadbase.reportdesigner.report.Report report,
                      ReportSection _section)
for internal use only


applyStyle

public void applyStyle(java.util.Vector setting,
                       ReportSection section)

applyStyleForDHTMLViewer

public void applyStyleForDHTMLViewer(ReportSection section)

applyStyle

public void applyStyle(ReportSection section)

createReportTitle

public void createReportTitle(java.lang.String text)

hasExtendVertLineOrGrid

public boolean hasExtendVertLineOrGrid()
internal use only


deleteSubReportColData

public void deleteSubReportColData()

EspressReport 6.6