Class ReportSection
java.lang.Object
quadbase.reportdesigner.ReportElements.ReportElement
quadbase.reportdesigner.ReportElements.ReportTableElement
quadbase.reportdesigner.ReportElements.ReportSection
- All Implemented Interfaces:
Serializable
public class ReportSection
extends quadbase.reportdesigner.ReportElements.ReportTableElement
This class can be used to modify the look invalid input: '&' feel, as well as the contents of the header, and
footer.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ReportCell[]protected booleanprotected ReportSectionprotected Vector<ReportSection> static final StringFields 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
ConstructorsConstructorDescriptioninternal use only Constructs a ReportSection with no border, background color, or data.ReportSection(String sectionID) internal use onlyReportSection(String sectionID, String text) internal use onlyReportSection(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. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddData(ReportCell reportcell) Adds an object--text, formula, chart, or static image--to this ReportSection.voidaddFormattedCell(ReportCell newCell, ReportCell oldCell, Vector<Integer> key) internal use onlyAdd a new section in the beginning of the section list.voidaddSectionCell(ReportCell reportcell, int[] tree) adds a cell to a specific section or sub sectionvoidaddSectionCell(ReportCell reportcell, Vector<Integer> key) internal use onlyvoidaddToHeightTable(double height, Vector<Integer> key) internal use onlyprotected voidadjustColumnIndex(int columnOffSet, int separatingIndex, Vector columns, ReportCell[] globalFormatTemplates, int newColSize) For internal use only.voidadjustFooterFormulas(int count, Vector columns, quadbase.reportdesigner.report.Report report, ReportCell[] formats, boolean addExtra) internal use onlyvoidadjustHeaderFormulas(int count, Vector columns, quadbase.reportdesigner.report.Report report, ReportCell globalFormatTemplate, boolean addExtra) For internal use only.voidapplyStyle(Vector setting, ReportSection section) voidapplyStyle(ReportSection section) voidapplyStyleForDHTMLViewer(ReportSection section) voidapplyTemplate(ReportSection reportSection) Deprecated.This method is not used.internal use onlyinternal use onlybooleanwhether this section contains the specified section.booleanbooleaninternal use onlyvoidcopy(ReportSection reportSection) internal use only This method is only used by copyTemplate and in LoadReport when opening a report.voidcopy(ReportSection reportSection, int columnOffset, int separatingIndex, Vector columns, ReportCell[] globalFormatTemplates, boolean isApplyTemplateOp) internal use onlyvoidcopy(ReportSection reportSection, int columnOffset, int separatingIndex, Vector columns, ReportCell[] globalFormatTemplates, boolean isApplyTemplateOp, boolean copyEmptySection) internal use onlyvoidcopy(ReportSection reportSection, int columnOffset, int separatingIndex, Vector columns, ReportCell[] globalFormatTemplates, boolean isApplyTemplateOp, boolean copyEmptySection, boolean copyGuideLine) internal use onlyvoidcopy(ReportSection reportSection, int columnOffset, int separatingIndex, Vector columns, ReportCell[] globalFormatTemplates, boolean isApplyTemplateOp, boolean copyEmptySection, boolean copyGuideLine, boolean applyScript) internal use onlyvoidcopy(ReportSection reportSection, int columnOffset, int separatingIndex, Vector columns, ReportCell[] globalFormatTemplates, boolean isApplyTemplateOp, boolean copyEmptySection, boolean copyGuideLine, boolean applyScript, boolean keepElt) internal use onlyvoidcopy(ReportSection reportSection, int columnOffset, int separatingIndex, Vector columns, ReportCell[] globalFormatTemplates, boolean isApplyTemplateOp, boolean copyEmptySection, boolean copyGuideLine, boolean applyScript, boolean keepElt, int[] fieldsCount, ReportSection parentHeader, Vector newColumns) internal use onlyvoidcopyAllGuideLineElts(quadbase.reportdesigner.report.Report report, quadbase.reportdesigner.report.Report _report, ReportSection section) internal use onlyvoidfor internal use onlyvoidcopyTemplate(ReportSection reportSection) For internal use only.voidcopyTemplate(ReportSection reportSection, boolean copyEmptySection) voidcopyTemplate(ReportSection reportSection, boolean copyEmptySection, boolean applyScript) internal use onlyvoidcopyTemplate(ReportSection reportSection, boolean copyEmptySection, boolean applyScript, Vector columns, int[] fieldsCount) internal use onlyprotected voidcopyTemplates(Vector<ReportCell> oldsubreports, Vector<ReportSection> oldSectionList) voidcreateFormulaObject(quadbase.reportdesigner.report.Report report) internal use onlyvoidcreateFormulaObjectFromName(quadbase.reportdesigner.report.Report report) internal use onlyvoidcreateReportTitle(String text) voidcreateScriptObject(Vector<Script> scripts) internal use onlyvoidcreateScriptObjectFromName(Vector<Script> scripts) For internal use only.static ReportSectioncreateSection(DataInput in, int version, boolean pack, boolean fromReportDesigner, quadbase.common.util.internal.FileInMemTable subFilesTable, String domainPath) For internal use only.static ReportSectioncreateSection(Node node, int version) For internal use only.booleancustomIDExists(String id) voiddeepCopy(ReportSection reportSection) internal use only Create an exact duplicate of a section.voiddeleteSectionCell(ReportCell reportCell, int[] tree) deletes a cell to a specific section or sub sectionvoiddeleteSectionCell(ReportCell reportCell, Vector<Integer> key) internal use onlyvoidstatic ReportElement[]findElementsAbove(ReportElement t, ReportSection relt) internal use onlystatic ReportElement[]findElementstoLeft(ReportElement t, ReportSection relt) For internal use only.static ReportElement[]for internal useint[]findImageIndex(double cx, double cy, Vector key) internal use onlyint[]findReportCellIndex(double cx, double cy, Vector key) internal use only Returns the index of the cell that contains the coordinate point (cx, cy).int[]findSectionCellIndex(double cx, double cy, Vector<Integer> key) internal use onlyquadbase.reportdesigner.ReportElements.TableOfContentsfindTOC(double cx, double cy) internal use onlyvoidFor internal use only.booleanformulaReferenced(Formula formula) Whether the specified formula is referenced (used) in this section.getAllColors(Vector<Color> colors) internal use onlyintReturns the number of cells within this Report Section.For internal use only.getCells()Gets all ReportCell objects contained in this ReportSection.getData()Returns the cells within this Report Section.getData(boolean includeSubSections) getData(int i) Returns the cell at the specified index of this Report Section.Returns the cell with the given ID or customID of this Report Section.internal use onlygetFirstCBAggrColFooter(int level, int colBkValIdx) getFirstCBAggrColHeader(int level, int colBkValIdx) getFirstCBColumnFooter(int colBkValIdx) quadbase.reportdesigner.ReportElements.CBColumnHeadergetFirstCBColumnHeader(int colBkValIdx) getFirstRBColumnHeader(int level) static Vector<ReportElement> getFirstRowOfColumns(Vector<ReportElement> columns) static Vector<ReportElement> getFirstRowOfUnsortedColumns(Vector<ReportElement> columns) getFormattedCell(ReportCell old, int[] tree) Gets a formatted cellgetFormattedCell(ReportCell old, Vector<Integer> key) internal use onlygetFormattedCells(int[] tree) Gets a formatted cellgetFormattedCells(Vector<Integer> key) internal use onlyintinternal use onlyReturns the preview editing table.doubleReturns the height of this ReportSection.doubleinternal use onlydoublegetHeightOfSection(int[] tree) Gets the height of the section specified by a tree.internal use onlyintinternal use onlydoubleinternal use onlydoubleinternal use onlyprotected Vector<ReportCell> gets this section's parent section.Return an array of ReportChartObjects in this section including it's subsectionsgetReportChartObjects(boolean includeSubSections) Return an array of ReportChartObjects in this section to include it's subsectionsReturn an array of ReportImages in this section including it's subsectionsgetReportImages(boolean includeSubSections) Return an array of ReportImages in this section to include the subsectionsgetSection(int index) Gets the section based on the specified index.getSectionCell(int i, Vector<Integer> key) internal use onlygetSectionCells(int[] tree) internal use onlygetSectionCells(Vector<Integer> key) internal use onlyintinternal use onlyinternal use onlyintHow many sub sections existintgetSectionIndex(ReportSection section) Gets the index for the specified section.internal use onlyString[]For internal use only.String[]Get all security level names in this section.For internal use only.For internal use only.getSubReports(boolean includeSubSections) internal use onlyFor internal use only.getTextCellForHTML(boolean reverseOrder) Gets ReportCell objects that are text cells (not an ReportImage)quadbase.reportdesigner.ReportElements.TableOfContentsgetTOC()internal use onlydoublegetWidth()Returns the width of this ReportSection.booleanhasCell(ReportCell cell) Whether the specified cell is contained in this ReportSectionbooleaninternal use onlybooleanhasFormattedCell(int[] tree) whether a formatted cell exists at the specified tree indexbooleanhasFormattedCell(Vector<Integer> key) internal use onlybooleanhasFormattedCell(ReportCell old, int[] tree) internal use onlybooleanhasFormattedCell(ReportCell old, Vector<Integer> key) internal use onlybooleaninternal use onlybooleanhasNoDrawableData(Vector key) internal use onlybooleanhasSectionCell(ReportCell cell, int[] tree) internal use onlybooleanhasSectionCell(ReportCell cell, Vector<Integer> key) internal use onlybooleanhasSectionCells(int[] tree) internal use onlybooleanhasSectionCells(Vector<Integer> key) internal use onlybooleaninternal use onlybooleanhasThisFormattedCell(ReportCell cell, Vector<Integer> key) internal use onlyintindexOf(ReportCell reportcell) Returns the index of the ReportCell object within this ReportSection.insertSection(int index) Insert a new section after the specific section.booleanbooleanWhether to create a new excel sheetbooleanShow status if section header is repeated, when the section is cut off and continued on the next page.booleanShow the status if the page number is resetbooleanisSectionStyle(ReportCell cell) voidloadStyle(quadbase.reportdesigner.report.Report report, ReportSection _section) for internal use onlyvoidFor internal use only.voidread(DataInput in, int version, boolean pack, boolean fromReportDesigner, quadbase.common.util.internal.FileInMemTable subFilesTable, String domainPath) internal use onlyvoidvoidFor internal use only.voidremoveData(int i) Removes the ReportCell object at the specified index within this ReportSection.voidremoveData(ReportCell reportcell) Removes the specified ReportCell object within this ReportSection.voidremoveScriptReferenced(Script script) internal use only.booleanremoveScriptReferenced(Script script, boolean checkThisSectionOnly) voidremoveSection(int index) removes a section at the specified index.voidremoveSection(ReportSection section) removes the specified section.voidremoveSubReportWithFileName(String filename) For internal use only.voidrenameSecurityLevel(String oldName, String newName) internal use onlyvoidrenameSubReportFileNames(String[] oldFileNames, String[] newFileNames) Update filenames of all SubReportObject objects.voidreplaceCell(ReportCell newCell, ReportCell oldCell, int[] tree) replaces a formatted cell (preview editing) to the section.voidresize(double xratio, double yratio) resizes the section according to the specified x and y ratiosvoidresizeForCrossTabFixedField(Vector resizeItems, double ratioW, double ratioH, double startXD, double startYD) internal use onlystatic voidresizeHorizontallyAndShift(ReportElement t, ReportSection relt, double heightChange) internal use onlystatic voidresizeVerticallyAndShift(ReportElement t, ReportSection relt, double heightChange) internal use onlybooleansameSection(ReportElement _sec, boolean includeSubSections) booleanscriptReferenced(Script script) Whether the specified script is referenced (used) in this section.booleanscriptReferenced(Script script, boolean checkThisSectionOnly) Whether the specified script is referenced (used) in this section.booleansecurityScriptReferenced(Script script) Whether the specified script is referenced (used) in this section.booleansecurityScriptReferenced(Script script, boolean checkThisSectionOnly) Whether the specified script is referenced (used) in this section.voidsetBorder(int border) Deprecated.voidsetBorderColor(Color color) Sets the color of the border.voidsetBorderThickness(int border) Sets the thickness of the border in pixels.voidsetChartParameterMap(String filename, String[] paramMap) For internal use only.voidsetChartPath(String path) changing all the chart path location for ReportChartObject.voidsetData(ReportCell[] areportcell) Re-sets the data object used by this ReportSection.voidsetData(ReportCell reportcell, int i) Re-sets the ReportCell object at the specified index within this ReportSection.voidsetDataForDeepCopy(ReportCell[] reportCell) internal use onlyvoidsetFitGroupOnPage(quadbase.reportdesigner.report.Report report, boolean b) FitGroupOnPage is a property of each group.voidsetFormattedCellsTable(Hashtable cellArray) Sets the preview editing table.voidsetGridLineLink(IReport report) internal use onlyvoidsetHeight(double h) Specifies the height of this ReportSection.voidsetHeightOfSection(double height, int[] tree) internal use onlyvoidsetHeightTable(Hashtable<Vector<Integer>, Double> table) internal use onlyvoidsetHTMLParameters(String dirLocation, String url, String fileName) changing all the chart path location for ReportChartObject.voidSet the id of this elementvoidsetImagePath(String path) changing all the image path location for ReportImage.voidFor internal use onlyvoidsetNewExcelSheet(boolean state) Specify if the a new excel sheet will be created based on the value changevoidsetPackedSubReportByteArray(quadbase.common.util.internal.FileInMemTable subFilesTable, Vector subReports) voidsetRepeatOnEveryPage(boolean state) Specify if section header is repeated, when the section is cut off and continued on the next page.voidsetReportObjectForSubReports(String filename, ISubReport rptobject) For internal use only.voidsetResetPageNumber(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 truevoidsetSectionStyle(ReportCell cell) internal use onlyvoidsetSecurityLevelProperties(String levelName, ReportElement level) For internal use only.voidsetSnapToGrid(boolean snapToGrid, boolean metric, double stepSize) internal use onlyvoidsetSnapToGrid(boolean snapToGrid, double stepSize, double cmStepSize) internal use onlyvoidsetSubReportParameterMap(String filename, String[] paramMap) For internal use only.voidsetSubReportPath(String path) changing all the image path location for ReportImage.voidsetWidth(double w) Specifies the width of this ReportSection.voidshift(ReportElement elt, boolean isHorizontal, double change) internal use only shift after resizing one ReportElementvoidshiftObjectsOnMove(ReportElement elt, boolean isHorizontal, double change) internal use onlyvoidshiftOnMove(ReportElement elt, boolean isHorizontal, double change) internal use onlysortCell(int order, boolean isAsc) Sorts the cells,internal use onlyvoidsortSection(int order, boolean isAsc) voidsuperCopy(ReportSection reportSection) intupdate(ReportCell reportcell) internal use onlyvoidupdateSubReportFileName(String oldfilename, String newfilename) For internal use only.voidwrite(DataOutput out) For internal use only.voidwrite(DataOutput out, boolean pack) internal use onlyvoidwriteSTL(DataOutput out) voidFor 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, setSkipFirstValueMethods inherited from class quadbase.reportdesigner.ReportElements.ReportElement
addSecurityLevel, applyImageTemplate, applyImageTemplateExceptBound, applySecurity, applyStyle, applyStyleButNotWH, applyTemplate, applyTemplate, applyTemplate, contains, contains, containsX, containsY, copy, copyStyleWithScriptsButNotWH, 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, 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
-
Field Details
-
cells
-
isModified
protected boolean isModified -
parentSection
-
sectionList
-
XMLTAG
- See Also:
-
-
Constructor Details
-
ReportSection
public ReportSection()internal use only Constructs a ReportSection with no border, background color, or data. -
ReportSection
internal use only -
ReportSection
internal use only -
ReportSection
public ReportSection(quadbase.reportdesigner.ReportElements.ReportTableElement reporttableelement) internal use only Constructs a ReportSection from a ReportTableElement object. -
ReportSection
internal use only Constructs a ReportSection from a ReportCell object.
-
-
Method Details
-
getCells
Gets all ReportCell objects contained in this ReportSection. -
hasCell
Whether the specified cell is contained in this ReportSection -
getReportImages
Return an array of ReportImages in this section including it's subsections -
getReportImages
Return an array of ReportImages in this section to include the subsections -
getReportChartObjects
Return an array of ReportChartObjects in this section including it's subsections -
getReportChartObjects
Return an array of ReportChartObjects in this section to include it's subsections -
getTextCells
Gets ReportCell objects that are text cells (not an ReportImage) -
addData
Adds an object--text, formula, chart, or static image--to this ReportSection. -
addSectionCell
adds a cell to a specific section or sub section- Parameters:
reportcell- the cell to addtree- 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
internal use only -
deleteSectionCell
deletes a cell to a specific section or sub section- Parameters:
reportCell- the cell to addtree- 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
internal use only -
hasSectionCells
public boolean hasSectionCells(int[] tree) internal use only -
hasSectionCells
internal use only -
hasSectionCell
internal use only -
hasSectionCell
internal use only -
getSectionCells
internal use only -
getSectionCells
internal use only -
getSectionCellsTable
internal use only -
getSectionCellsCount
public int getSectionCellsCount()internal use only -
setHeightOfSection
public void setHeightOfSection(double height, int[] tree) internal use only -
addToHeightTable
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
internal use only -
getHeightTable
internal use only -
setHeightTable
internal use only -
getHeightTableCount
public int getHeightTableCount()internal use only -
addFormattedCell
internal use only -
hasFormattedCell
internal use only -
hasFormattedCell
internal use only -
hasThisFormattedCell
internal use only -
getFormattedCell
internal use only -
getFormattedCells
internal use only -
replaceCell
replaces a formatted cell (preview editing) to the section.- Parameters:
newCell- the cell to addoldCell- , the old cell to replace 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
internal use only -
getFormattedCell
Gets a formatted cell- Parameters:
old- the cell to gettree- 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
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
Returns the preview editing table. -
setFormattedCellsTable
Sets the preview editing table. Pass in null to disable all preview editing for this ReportSection. -
getFormattedCellsCount
public int getFormattedCellsCount()internal use only -
superCopy
-
copy
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, Vector columns, ReportCell[] globalFormatTemplates, boolean isApplyTemplateOp) internal use only -
copy
public void copy(ReportSection reportSection, int columnOffset, int separatingIndex, Vector columns, ReportCell[] globalFormatTemplates, boolean isApplyTemplateOp, boolean copyEmptySection) internal use only -
copy
public void copy(ReportSection reportSection, int columnOffset, int separatingIndex, Vector columns, ReportCell[] globalFormatTemplates, boolean isApplyTemplateOp, boolean copyEmptySection, boolean copyGuideLine) internal use only -
copy
public void copy(ReportSection reportSection, int columnOffset, int separatingIndex, 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, Vector columns, ReportCell[] globalFormatTemplates, boolean isApplyTemplateOp, boolean copyEmptySection, boolean copyGuideLine, boolean applyScript, boolean keepElt) internal use only -
getFirstRowOfColumns
-
getFirstRowOfUnsortedColumns
-
copy
public void copy(ReportSection reportSection, int columnOffset, int separatingIndex, Vector columns, ReportCell[] globalFormatTemplates, boolean isApplyTemplateOp, boolean copyEmptySection, boolean copyGuideLine, boolean applyScript, boolean keepElt, int[] fieldsCount, ReportSection parentHeader, Vector newColumns) internal use only -
deepCopy
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
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
-
copyTemplate
public void copyTemplate(ReportSection reportSection, boolean copyEmptySection, boolean applyScript) internal use only -
copyTemplate
public void copyTemplate(ReportSection reportSection, boolean copyEmptySection, boolean applyScript, Vector columns, int[] fieldsCount) internal use only -
getOldSubReports
-
copyTemplates
protected void copyTemplates(Vector<ReportCell> oldsubreports, Vector<ReportSection> oldSectionList) -
applyTemplate
Deprecated.This method is not used. Use copyTemplate instead for applying another section.internal use only -
getCellForHTML
For internal use only. -
getTextCellForHTML
For internal use only. -
getTextCellForHTML
-
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
internal use only -
getData
Returns the cells within this Report Section. -
getData
-
sameSection
-
getDataNoGuideLine
internal use only -
getData
Returns the cell at the specified index of this Report Section. -
getDataIgnoreRepeatCells
-
getDataIgnoreReportImages
-
getFirstCBColumnHeader
public quadbase.reportdesigner.ReportElements.CBColumnHeader getFirstCBColumnHeader(int colBkValIdx) -
getFirstCBAggrColHeader
-
getFirstRBColumnHeader
-
getData
Returns the cell with the given ID or customID of this Report Section. -
getSectionCell
internal use only -
getAllColors
internal use only- Overrides:
getAllColorsin classReportElement
-
getSecurityLevels
Get all security level names in this section.- Overrides:
getSecurityLevelsin classReportElement
-
getSecuredScripts
For internal use only.- Overrides:
getSecuredScriptsin classReportElement
-
setSecurityLevelProperties
For internal use only.- Overrides:
setSecurityLevelPropertiesin classReportElement
-
setReportObjectForSubReports
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
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
changing all the chart path location for ReportChartObject. -
setChartPath
changing all the chart path location for ReportChartObject. -
setImagePath
changing all the image path location for ReportImage. -
setSubReportPath
changing all the image path location for ReportImage. -
findSectionCellIndex
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
internal use only -
findReportCellIndex
internal use only Returns the index of the cell that contains the coordinate point (cx, cy). -
indexOf
Returns the index of the ReportCell object within this ReportSection. -
update
internal use only -
removeData
public void removeData(int i) Removes the ReportCell object at the specified index within this ReportSection. -
removeData
Removes the specified ReportCell object within this ReportSection. -
setData
Re-sets the ReportCell object at the specified index within this ReportSection. -
setData
Re-sets the data object used by this ReportSection. -
setDataForDeepCopy
internal use only -
setID
Description copied from class:ReportElementSet the id of this element- Overrides:
setIDin classReportElement- Parameters:
newID- the value of new id
-
customIDExists
-
containsZIndex
public boolean containsZIndex()internal use only -
formulaReferenced
Whether the specified formula is referenced (used) in this section. -
scriptReferenced
Whether the specified script is referenced (used) in this section.- Overrides:
scriptReferencedin classReportElement
-
scriptReferenced
Whether the specified script is referenced (used) in this section. -
securityScriptReferenced
Whether the specified script is referenced (used) in this section.- Overrides:
securityScriptReferencedin classReportElement
-
securityScriptReferenced
Whether the specified script is referenced (used) in this section. -
removeScriptReferenced
Description copied from class:ReportElementinternal use only. *- Overrides:
removeScriptReferencedin classReportElement
-
removeScriptReferenced
-
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
internal use only- Overrides:
createScriptObjectin classReportElement
-
createScriptObjectFromName
For internal use only.- Overrides:
createScriptObjectFromNamein classquadbase.reportdesigner.ReportElements.ReportTableElement
-
setGridLineLink
internal use only -
sortCell
Sorts the cells,- Parameters:
order- use ReportElement.SORT_X, or ReportElement.SORT_Y.isAsc- specifies if sorting in the ascending order.
-
sortSection
public void sortSection(int order, boolean isAsc) -
sortCell
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:
resizein classReportElement
-
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:
setBorderThicknessin classReportElement
-
setBorder
Deprecated.- Overrides:
setBorderin classReportElement
-
setBorderColor
Sets the color of the border.- Overrides:
setBorderColorin classReportElement- Parameters:
color- new border color of this element
-
getHeight
public double getHeight()Returns the height of this ReportSection.- Overrides:
getHeightin classReportElement- Returns:
- height value of this element
-
getWidth
public double getWidth()Returns the width of this ReportSection.- Overrides:
getWidthin classReportElement- Returns:
- width value of this element
-
setHeight
public void setHeight(double h) Specifies the height of this ReportSection.- Overrides:
setHeightin classReportElement- Parameters:
h- height of this element
-
setWidth
public void setWidth(double w) Specifies the width of this ReportSection.- Overrides:
setWidthin classReportElement- Parameters:
w- width of this element
-
setSectionStyle
internal use only -
getSectionStyle
internal use only -
hasSectionStyle
public boolean hasSectionStyle()internal use only -
isSectionStyle
-
write
For internal use only.- Overrides:
writein classquadbase.reportdesigner.ReportElements.ReportTableElement- Throws:
IOException
-
write
internal use only- Throws:
IOException
-
read
For internal use only.- Overrides:
readin classquadbase.reportdesigner.ReportElements.ReportTableElement- Throws:
Exception
-
read
public void read(DataInput in, int version, boolean pack, boolean fromReportDesigner, quadbase.common.util.internal.FileInMemTable subFilesTable, String domainPath) throws Exception internal use only- Throws:
Exception
-
writeXML
For internal use only.- Overrides:
writeXMLin classquadbase.reportdesigner.ReportElements.ReportTableElement- Throws:
IOException
-
createSection
For internal use only.- Throws:
Exception
-
readXML
For internal use only.- Overrides:
readXMLin classquadbase.reportdesigner.ReportElements.ReportTableElement- Throws:
Exception
-
createSection
public static ReportSection createSection(DataInput in, int version, boolean pack, boolean fromReportDesigner, quadbase.common.util.internal.FileInMemTable subFilesTable, String domainPath) throws Exception For internal use only.- Throws:
Exception
-
writeSTL
- Throws:
Exception
-
readSTL
- Throws:
Exception
-
cellsNoGL
internal use only -
cellsNoGLWithSecuredMode
internal use only -
shift
internal use only shift after resizing one ReportElement -
shiftOnMove
internal use only -
resizeForCrossTabFixedField
public void resizeForCrossTabFixedField(Vector resizeItems, double ratioW, double ratioH, double startXD, double startYD) internal use only -
shiftObjectsOnMove
internal use only -
findElementstoRight
for internal use -
findElementstoLeft
For internal use only. -
findElementsAbove
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
for internal use only -
removeSubReportWithFileName
For internal use only. Remove any SubReportObject object with the same file name. -
renameSubReportFileNames
Update filenames of all SubReportObject objects. This is likely the result of a 'Save As' operation. -
setSubReportParameterMap
For internal use only. Set SubReport parameter map with the same file name. -
setChartParameterMap
For internal use only. Set chart parameter map with the same file name. -
getSubReports
For internal use only. -
containsSubReport
-
getSubReports
internal use only -
getSectionCount
public int getSectionCount()How many sub sections exist -
addSection
Add a new section in the beginning of the section list. The new section will be in position 0. -
insertSection
Insert a new section after the specific section. Return the newly created section.- Throws:
Exception
-
getSectionIndex
Gets the index for the specified section. -
getSection
Gets the section based on the specified index.- Throws:
Exception
-
removeSection
removes a section at the specified index.- Throws:
Exception
-
removeSection
removes the specified section. -
getParentSection
gets this section's parent section. -
adjustHeaderFormulas
public void adjustHeaderFormulas(int count, 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. -
adjustColumnIndex
protected void adjustColumnIndex(int columnOffSet, int separatingIndex, Vector columns, ReportCell[] globalFormatTemplates, int newColSize) For internal use only. This method is only for CrossTab reports and only when there is a column count differnece during open or refresh. This method will modify any formulas containing the function 'COL(N)' to reflect column changes. The column index for those formula will change to N + columnOffSet and the X position will change accordingly to the columns. -
isCrossTabFixedFieldHeader
public boolean isCrossTabFixedFieldHeader() -
setSnapToGrid
public void setSnapToGrid(boolean snapToGrid, boolean metric, double stepSize) internal use only- Overrides:
setSnapToGridin classReportElement
-
setSnapToGrid
public void setSnapToGrid(boolean snapToGrid, double stepSize, double cmStepSize) internal use only- Overrides:
setSnapToGridin classReportElement
-
copyAllGuideLineElts
public void copyAllGuideLineElts(quadbase.reportdesigner.report.Report report, quadbase.reportdesigner.report.Report _report, ReportSection section) internal use only -
containsSection
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 objectb- : fitGroupOnPage: true or false
-
renameSecurityLevel
internal use only- Overrides:
renameSecurityLevelin classReportElement
-
setLocale
For internal use only -
setPackedSubReportByteArray
public void setPackedSubReportByteArray(quadbase.common.util.internal.FileInMemTable subFilesTable, Vector subReports) -
loadStyle
for internal use only -
applyStyle
-
applyStyleForDHTMLViewer
-
applyStyle
-
createReportTitle
-
hasExtendVertLineOrGrid
public boolean hasExtendVertLineOrGrid()internal use only -
deleteSubReportColData
public void deleteSubReportColData()
-