|
EspressReport 6.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectquadbase.reportdesigner.ReportElements.ReportElement
quadbase.reportdesigner.ReportElements.ReportTableElement
quadbase.reportdesigner.ReportElements.ReportSection
public class ReportSection
This class can be used to modify the look & feel, as well as the contents of the header, and footer.
| Field Summary | |
|---|---|
static java.lang.String |
XMLTAG
|
| Fields inherited from class quadbase.reportdesigner.ReportElements.ReportElement |
|---|
bgColor, border, borderColor, CHART, COLUMN, FORMULA, GRID, height, ID_TYPE, IMAGE, isLocked, LABEL, LINE, min_height, min_width, RTFOBJECT, SECTION, securityMap, snap, SORT_X, SORT_Y, SORT_Z, SUBREPORT, TABLE, TABLEOFCONTENTS, 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 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 key)
internal use only |
void |
addToHeightTable(double height,
java.util.Vector 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 isCrossTabSummaryColumnToL,
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 isCrossTabSummaryColumnToL,
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)
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 scripts)
internal use only |
void |
createScriptObjectFromName(java.util.Vector scripts)
For internal use only. |
static ReportSection |
createSection(java.io.DataInput in,
int version,
boolean pack,
boolean fromReportDesigner,
java.util.Hashtable subFilesTable,
java.lang.String domainPath)
For internal use only. |
static ReportSection |
createSection(java.io.DataInput in,
int version,
boolean pack,
boolean fromReportDesigner,
java.util.Hashtable subFilesTable,
java.lang.String domainPath,
boolean loadNewOnly)
|
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 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 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 |
getAllColors(java.util.Vector 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 |
getFirstRowOfColumns(java.util.Vector columns)
|
static java.util.Vector |
getFirstRowOfUnsortedColumns(java.util.Vector columns)
|
ReportCell |
getFormattedCell(ReportCell old,
int[] tree)
Gets a formatted cell |
ReportCell |
getFormattedCell(ReportCell old,
java.util.Vector key)
internal use only |
java.util.Hashtable |
getFormattedCells(int[] tree)
Gets a formatted cell |
java.util.Hashtable |
getFormattedCells(java.util.Vector key)
internal use only |
int |
getFormattedCellsCount()
internal use only |
java.util.Hashtable |
getFormattedCellsTable()
Returns the preview editing table. |
double |
getHeight()
Returns the height of this ReportSection. |
double |
getHeight(java.util.Vector key)
internal use only |
double |
getHeightOfSection(int[] tree)
Gets the height of the section specified by a tree. |
java.util.Hashtable |
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 key)
internal use only |
java.util.Vector |
getSectionCells(int[] tree)
internal use only |
java.util.Vector |
getSectionCells(java.util.Vector key)
internal use only |
int |
getSectionCellsCount()
internal use only |
java.util.Hashtable |
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 key)
internal use only |
boolean |
hasFormattedCell(java.util.Vector 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 key)
internal use only |
boolean |
hasSectionCells(int[] tree)
internal use only |
boolean |
hasSectionCells(java.util.Vector key)
internal use only |
boolean |
hasSectionStyle()
internal use only |
boolean |
hasThisFormattedCell(ReportCell cell,
java.util.Vector 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 |
moveForCrossTabFixedField(java.util.Vector groupFormat,
boolean isHorizontal,
double change)
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,
java.util.Hashtable subFilesTable,
java.lang.String domainPath)
internal use only |
void |
read(java.io.DataInput in,
int version,
boolean pack,
boolean fromReportDesigner,
java.util.Hashtable subFilesTable,
java.lang.String domainPath,
boolean loadNewOnly)
|
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)
|
static void |
repositionCells(ReportSection orgSec,
ReportSection sec,
java.util.Vector columns,
int[] fieldsCount,
boolean repositionNestLevelOnly,
boolean isCTSummaryColumnToL,
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 |
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)
Sets the thickness of the border in pixels. |
void |
setBorderColor(java.awt.Color color)
Sets the color of the border. |
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 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(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 |
setSectionCellsTable(java.util.Hashtable cellArray)
internal use only |
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 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String XMLTAG
| Constructor Detail |
|---|
public ReportSection()
public ReportSection(java.lang.String sectionID)
public ReportSection(java.lang.String sectionID,
java.lang.String text)
public ReportSection(quadbase.reportdesigner.ReportElements.ReportTableElement reporttableelement)
public ReportSection(ReportCell[] areportcell)
| Method Detail |
|---|
public ReportCell[] getCells()
public boolean hasCell(ReportCell cell)
public ReportImage[] getReportImages()
public ReportImage[] getReportImages(boolean includeSubSections)
whether - to include the subsectionspublic ReportChartObject[] getReportChartObjects()
public ReportChartObject[] getReportChartObjects(boolean includeSubSections)
whether - to include it's subsectionspublic ReportCell[] getTextCells()
public void addData(ReportCell reportcell)
public void addSectionCell(ReportCell reportcell,
int[] tree)
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.
public void addSectionCell(ReportCell reportcell,
java.util.Vector key)
public void deleteSectionCell(ReportCell reportCell,
int[] tree)
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.
public void deleteSectionCell(ReportCell reportCell,
java.util.Vector key)
public boolean hasSectionCells(int[] tree)
public boolean hasSectionCells(java.util.Vector key)
public boolean hasSectionCell(ReportCell cell,
int[] tree)
public boolean hasSectionCell(ReportCell cell,
java.util.Vector key)
public java.util.Vector getSectionCells(int[] tree)
public java.util.Vector getSectionCells(java.util.Vector key)
public java.util.Hashtable getSectionCellsTable()
public void setSectionCellsTable(java.util.Hashtable cellArray)
public int getSectionCellsCount()
public void setHeightOfSection(double height,
int[] tree)
public void addToHeightTable(double height,
java.util.Vector key)
public double getHeightOfSection(int[] tree)
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.public double getHeight(java.util.Vector key)
public java.util.Hashtable getHeightTable()
public void setHeightTable(java.util.Hashtable table)
public int getHeightTableCount()
public void addFormattedCell(ReportCell newCell,
ReportCell oldCell,
java.util.Vector key)
public boolean hasFormattedCell(java.util.Vector key)
public boolean hasFormattedCell(ReportCell old,
java.util.Vector key)
public boolean hasThisFormattedCell(ReportCell cell,
java.util.Vector key)
public ReportCell getFormattedCell(ReportCell old,
java.util.Vector key)
public java.util.Hashtable getFormattedCells(java.util.Vector key)
public void replaceCell(ReportCell newCell,
ReportCell oldCell,
int[] tree)
newCell - the cell to addoldCell, - the old cell to replacekey - 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.public boolean hasFormattedCell(int[] tree)
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.
public boolean hasFormattedCell(ReportCell old,
int[] tree)
public ReportCell getFormattedCell(ReportCell old,
int[] tree)
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.public java.util.Hashtable getFormattedCells(int[] tree)
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.public java.util.Hashtable getFormattedCellsTable()
public void setFormattedCellsTable(java.util.Hashtable cellArray)
public int getFormattedCellsCount()
public void copy(ReportSection reportSection)
public void copy(ReportSection reportSection,
int columnOffset,
int separatingIndex,
java.util.Vector columns,
ReportCell[] globalFormatTemplates,
boolean isApplyTemplateOp)
public void copy(ReportSection reportSection,
int columnOffset,
int separatingIndex,
java.util.Vector columns,
ReportCell[] globalFormatTemplates,
boolean isApplyTemplateOp,
boolean copyEmptySection)
public void copy(ReportSection reportSection,
int columnOffset,
int separatingIndex,
java.util.Vector columns,
ReportCell[] globalFormatTemplates,
boolean isApplyTemplateOp,
boolean copyEmptySection,
boolean copyGuideLine)
public void copy(ReportSection reportSection,
int columnOffset,
int separatingIndex,
java.util.Vector columns,
ReportCell[] globalFormatTemplates,
boolean isApplyTemplateOp,
boolean copyEmptySection,
boolean copyGuideLine,
boolean applyScript)
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)
public static java.util.Vector getFirstRowOfColumns(java.util.Vector columns)
public static java.util.Vector getFirstRowOfUnsortedColumns(java.util.Vector columns)
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 isCrossTabSummaryColumnToL,
ReportSection parentHeader,
java.util.Vector newColumns)
public void copyExtraCells(ReportSection reportSection)
public void applyStyleForFixedFieldSection(ReportSection _section)
public void calcRBColumnHeaderWidth(quadbase.reportdesigner.ReportElements.RBColumnHeader colHeader,
java.util.Vector newColumns,
int[] fieldsCount,
boolean isCrossTabSummaryColumnToL,
int rbIdx)
public void deepCopy(ReportSection reportSection)
public void copyTemplate(ReportSection reportSection)
public void copyTemplate(ReportSection reportSection,
boolean copyEmptySection)
public void copyTemplate(ReportSection reportSection,
boolean copyEmptySection,
boolean applyScript)
public void copyTemplate(ReportSection reportSection,
boolean copyEmptySection,
boolean applyScript,
java.util.Vector columns,
int[] fieldsCount,
boolean isCrossTabSummaryColToL)
public void applyTemplate(ReportSection reportSection)
public java.util.Vector getCellForHTML()
public java.util.Vector getTextCellForHTML()
public java.util.Vector getTextCellForHTML(boolean reverseOrder)
public java.util.Vector getSubReportForHTML()
public int getCellCount()
public boolean hasNoDrawableData()
public boolean hasNoDrawableData(java.util.Vector key)
public ReportCell[] getData()
public ReportCell[] getData(boolean includeSubSections)
public boolean sameSection(ReportElement _sec,
boolean includeSubSections)
public ReportCell[] getDataNoGuideLine()
public ReportCell getData(int i)
public ReportCell[] getDataIgnoreRepeatCells()
public ReportCell[] getDataIgnoreReportImages()
public quadbase.reportdesigner.ReportElements.CBColumnHeader getFirstCBColumnHeader(int colBkValIdx)
public ReportCell getFirstCBColumnFooter(int colBkValIdx)
public ReportCell getFirstCBAggrColHeader(int level,
int colBkValIdx)
public ReportCell getFirstRBColumnHeader(int level)
public ReportCell getFirstCBAggrColFooter(int level,
int colBkValIdx)
public ReportCell getData(java.lang.String cellId)
public ReportCell getSectionCell(int i,
java.util.Vector key)
public java.util.Vector getAllColors(java.util.Vector colors)
getAllColors in class ReportElementpublic java.lang.String[] getSecurityLevels()
getSecurityLevels in class ReportElementpublic java.lang.String[] getSecuredScripts()
getSecuredScripts in class ReportElement
public void setSecurityLevelProperties(java.lang.String levelName,
ReportElement level)
setSecurityLevelProperties in class ReportElement
public void setReportObjectForSubReports(java.lang.String filename,
ISubReport rptobject)
public void updateSubReportFileName(java.lang.String oldfilename,
java.lang.String newfilename)
public void setHTMLParameters(java.lang.String dirLocation,
java.lang.String url,
java.lang.String fileName)
public void setChartPath(java.lang.String path)
public void setImagePath(java.lang.String path)
public void setSubReportPath(java.lang.String path)
public int[] findSectionCellIndex(double cx,
double cy,
java.util.Vector key)
public quadbase.reportdesigner.ReportElements.TableOfContents findTOC(double cx,
double cy)
public quadbase.reportdesigner.ReportElements.TableOfContents getTOC()
public int[] findImageIndex(double cx,
double cy,
java.util.Vector key)
public int[] findReportCellIndex(double cx,
double cy,
java.util.Vector key)
public int indexOf(ReportCell reportcell)
public int update(ReportCell reportcell)
public void removeData(int i)
public void removeData(ReportCell reportcell)
public void setData(ReportCell reportcell,
int i)
public void setData(ReportCell[] areportcell)
public void setDataForDeepCopy(ReportCell[] reportCell)
public void setID(java.lang.String newID)
ReportElement
setID in class ReportElementnewID - the value of new idpublic boolean customIDExists(java.lang.String id)
public boolean containsZIndex()
public boolean formulaReferenced(Formula formula)
public boolean scriptReferenced(Script script)
scriptReferenced in class ReportElement
public boolean scriptReferenced(Script script,
boolean checkThisSectionOnly)
public boolean securityScriptReferenced(Script script)
securityScriptReferenced in class ReportElement
public boolean securityScriptReferenced(Script script,
boolean checkThisSectionOnly)
public void removeScriptReferenced(Script script)
ReportElement
removeScriptReferenced in class ReportElement
public boolean removeScriptReferenced(Script script,
boolean checkThisSectionOnly)
public void createFormulaObject(quadbase.reportdesigner.report.Report report)
public void createFormulaObjectFromName(quadbase.reportdesigner.report.Report report)
public void createScriptObject(java.util.Vector scripts)
createScriptObject in class ReportElementpublic void createScriptObjectFromName(java.util.Vector scripts)
createScriptObjectFromName in class quadbase.reportdesigner.ReportElements.ReportTableElementpublic void setGridLineLink(IReport report)
public ReportCell[] sortCell(int order,
boolean isAsc)
order - use ReportElement.SORT_X, or ReportElement.SORT_Y.isAsc - specifies if sorting in the ascending order.
public ReportCell[] sortCell(int order,
boolean isAsc,
java.util.Vector key)
public double getMinHeight()
public double getMinWidth()
public void resize(double xratio,
double yratio)
resize in class ReportElementpublic void formatSection()
public boolean isRepeatOnEveryPage()
public void setRepeatOnEveryPage(boolean state)
public boolean isResetPageNumber()
public void setResetPageNumber(boolean state)
public boolean isNewExcelSheet()
public void setNewExcelSheet(boolean state)
public void setBorder(int border)
setBorder in class ReportElementborder - new border thickness of this elementpublic void setBorderColor(java.awt.Color color)
setBorderColor in class ReportElementcolor - new border color of this elementpublic double getHeight()
getHeight in class ReportElementpublic double getWidth()
getWidth in class ReportElementpublic void setHeight(double h)
setHeight in class ReportElementh - height of this elementpublic void setWidth(double w)
setWidth in class ReportElementw - width of this elementpublic void setSectionStyle(ReportCell cell)
public ReportCell getSectionStyle()
public boolean hasSectionStyle()
public boolean isSectionStyle(ReportCell cell)
public void write(java.io.DataOutput out)
throws java.io.IOException
write in class quadbase.reportdesigner.ReportElements.ReportTableElementjava.io.IOException
public void write(java.io.DataOutput out,
boolean pack)
throws java.io.IOException
java.io.IOException
public void read(java.io.DataInput in,
int version)
throws java.lang.Exception
read in class quadbase.reportdesigner.ReportElements.ReportTableElementjava.lang.Exception
public void read(java.io.DataInput in,
int version,
boolean pack,
boolean fromReportDesigner,
java.util.Hashtable subFilesTable,
java.lang.String domainPath)
throws java.lang.Exception
java.lang.Exception
public void read(java.io.DataInput in,
int version,
boolean pack,
boolean fromReportDesigner,
java.util.Hashtable subFilesTable,
java.lang.String domainPath,
boolean loadNewOnly)
throws java.lang.Exception
java.lang.Exception
public void writeXML(java.io.Writer out,
boolean writeElementTag)
throws java.io.IOException
writeXML in class quadbase.reportdesigner.ReportElements.ReportTableElementjava.io.IOException
public static ReportSection createSection(org.w3c.dom.Node node,
int version)
throws java.lang.Exception
java.lang.Exception
public void readXML(org.w3c.dom.Node node,
int version)
throws java.lang.Exception
readXML in class quadbase.reportdesigner.ReportElements.ReportTableElementjava.lang.Exception
public static ReportSection createSection(java.io.DataInput in,
int version,
boolean pack,
boolean fromReportDesigner,
java.util.Hashtable subFilesTable,
java.lang.String domainPath)
throws java.lang.Exception
java.lang.Exception
public static ReportSection createSection(java.io.DataInput in,
int version,
boolean pack,
boolean fromReportDesigner,
java.util.Hashtable subFilesTable,
java.lang.String domainPath,
boolean loadNewOnly)
throws java.lang.Exception
java.lang.Exception
public void writeSTL(java.io.DataOutput out)
throws java.lang.Exception
java.lang.Exception
public void readSTL(java.io.DataInput in,
int version)
throws java.lang.Exception
java.lang.Exceptionpublic ReportCell[] cellsNoGL()
public ReportCell[] cellsNoGLWithSecuredMode()
public void shift(ReportElement elt,
boolean isHorizontal,
double change)
public void shiftOnMove(ReportElement elt,
boolean isHorizontal,
double change)
public void moveForCrossTabFixedField(java.util.Vector groupFormat,
boolean isHorizontal,
double change)
public void resizeForCrossTabFixedField(java.util.Vector resizeItems,
double ratioW,
double ratioH,
double startXD,
double startYD)
public void shiftObjectsOnMove(ReportElement elt,
boolean isHorizontal,
double change)
public static ReportElement[] findElementstoRight(ReportElement t,
ReportSection relt)
public static ReportElement[] findElementstoLeft(ReportElement t,
ReportSection relt)
public static ReportElement[] findElementsAbove(ReportElement t,
ReportSection relt)
public static void resizeVerticallyAndShift(ReportElement t,
ReportSection relt,
double heightChange)
public void copyImage(ReportSection rs)
public void removeSubReportWithFileName(java.lang.String filename)
public void renameSubReportFileNames(java.lang.String[] oldFileNames,
java.lang.String[] newFileNames)
public void setSubReportParameterMap(java.lang.String filename,
java.lang.String[] paramMap)
public void setChartParameterMap(java.lang.String filename,
java.lang.String[] paramMap)
public SubReportObject[] getSubReports()
public boolean containsSubReport(SubReportObject robj)
public SubReportObject[] getSubReports(boolean includeSubSections)
public int getSectionCount()
public ReportSection addSection()
public ReportSection insertSection(int index)
throws java.lang.Exception
java.lang.Exceptionpublic int getSectionIndex(ReportSection section)
public ReportSection getSection(int index)
throws java.lang.Exception
java.lang.Exception
public void removeSection(int index)
throws java.lang.Exception
java.lang.Exceptionpublic void removeSection(ReportSection section)
public ReportSection getParentSection()
public void adjustHeaderFormulas(int count,
java.util.Vector columns,
quadbase.reportdesigner.report.Report report,
ReportCell globalFormatTemplate,
boolean addExtra)
public void adjustFooterFormulas(int count,
java.util.Vector columns,
quadbase.reportdesigner.report.Report report,
ReportCell[] formats,
boolean addExtra)
public static void repositionCells(ReportSection orgSec,
ReportSection sec,
java.util.Vector cols,
int[] fieldsCount,
boolean repositionNestLevelOnly,
boolean isCTSummaryColumnToL)
public static void repositionCells(ReportSection orgSec,
ReportSection sec,
java.util.Vector columns,
int[] fieldsCount,
boolean repositionNestLevelOnly,
boolean isCTSummaryColumnToL,
java.util.Vector orgCellRows,
java.util.Vector cellRows,
int orgCellRowsID,
int cellRowsID)
public boolean isCrossTabFixedFieldHeader()
public void setSnapToGrid(boolean snapToGrid,
boolean metric,
double stepSize)
setSnapToGrid in class ReportElement
public void setSnapToGrid(boolean snapToGrid,
double stepSize,
double cmStepSize)
setSnapToGrid in class ReportElement
public void copyAllGuideLineElts(quadbase.reportdesigner.report.Report report,
quadbase.reportdesigner.report.Report _report,
ReportSection section)
public boolean containsSection(ReportSection sec)
public void setFitGroupOnPage(quadbase.reportdesigner.report.Report report,
boolean b)
report: - the main report objectb: - fitGroupOnPage: true or false
public void renameSecurityLevel(java.lang.String oldName,
java.lang.String newName)
renameSecurityLevel in class ReportElementpublic void setLocale(java.util.Locale l)
public void setPackedSubReportByteArray(java.util.Vector subReports)
public void loadStyle(quadbase.reportdesigner.report.Report report,
ReportSection _section)
public void applyStyle(java.util.Vector setting,
ReportSection section)
public void applyStyleForDHTMLViewer(ReportSection section)
public void applyStyle(ReportSection section)
public void createReportTitle(java.lang.String text)
public boolean hasExtendVertLineOrGrid()
public void deleteSubReportColData()
|
EspressReport 6.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||