|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.asset.AbstractAssetEngine
inetsoft.report.internal.StyleCore
inetsoft.report.ReportSheet
inetsoft.report.TabularSheet
public class TabularSheet
TabularSheet is one of the two report types in Style Report. It uses a grid layout model. Report contents are divided into grid cells. Each cell is independently processed. It is best suited for reports with contents divided into tabular sections.
ReportSheet contains the common API for report generation. Please refer to the Style Report Programming Guide for more details on the concepts and features of the TabularSheet.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class inetsoft.report.internal.StyleCore |
|---|
inetsoft.report.internal.StyleCore.ActionScriptable |
| Nested classes/interfaces inherited from class inetsoft.uql.asset.AbstractAssetEngine |
|---|
AbstractAssetEngine.ReportSheetDependencyFinder, AbstractAssetEngine.SheetTransformListener, AbstractAssetEngine.StorageChangeListener |
| Field Summary |
|---|
| Fields inherited from class inetsoft.report.ReportSheet |
|---|
BODY, DEFAULT_FOOTER, DEFAULT_HEADER, DOWN, EVEN_PAGE_FOOTER, EVEN_PAGE_HEADER, FIRST_PAGE_FOOTER, FIRST_PAGE_HEADER, ODD_PAGE_FOOTER, ODD_PAGE_HEADER, PAINTER_BREAKABLE, PAINTER_NON_BREAK, TABLE_EQUAL_WIDTH, TABLE_FIT_CONTENT, TABLE_FIT_CONTENT_1PP, TABLE_FIT_CONTENT_PAGE, TABLE_FIT_PAGE, UP, WRAP_BOTH, WRAP_LEFT, WRAP_NONE, WRAP_RIGHT, WRAP_TOP_BOTTOM |
| Fields inherited from class inetsoft.report.internal.StyleCore |
|---|
advanceLine, alignment, anchor, autosize, background, bg, bgimage, bglayout, bgsize, burstInfo, chartinfo, cmargin, COMPLETED, contexts, current, currFooter, currFrame, currHeader, DESIGN_MODE, elemFooter, elemHeader, evenFooter, evenHeader, firstFooter, firstHeader, font, footerElements, footerFromEdge, foreground, formatmap, frames, g_pmargin, header, headerElements, headerFromEdge, headingCnt, headingMap, hfFmt, hindent, horFlow, idmap, indent, initCalled, initCmd, initScript, justify, lastHead, lineH, LIVE_MODE, loadCmd, loadScript, locale, margin, MORE_ELEM, MORE_FLOW, nextOrient, npframes, nplayout, numHeadingMap, oddFooter, oddHeader, orphan, overrideFooter, overrideFooterContinue, overrideHeader, overrideHeaderContinue, padding, pageBox, pagebreakCmd, pagebreakScript, painterLayout, painterMargin, parameters, parentElem, pglayout, pgStart, pgTotal, pmargin, presentermap, printBox, printCmd, printHead, printMode, printScript, prop, psheet, queries, reportmode, rewinded, RUN_MODE, runningScript, runningTotals, scriptenv, secHeadingMap, secNumHeadingMap, sepadv, spacing, tableadv, tableorphan, tableW, tabStops, textadv, wrapping |
| Fields inherited from class inetsoft.uql.asset.AbstractAssetEngine |
|---|
admin, catalog, editing, istore, LOCAL, parent, scopes |
| Fields inherited from interface inetsoft.uql.XQueryRepository |
|---|
GLOBAL_SCOPE, LOCAL_QUERY, LOCAL_SCOPE, NORMAL_QUERY |
| Fields inherited from interface inetsoft.report.internal.ParameterSheetRepository |
|---|
EMBED_PARAMETER_SHEET, EMBED_SECTION |
| Fields inherited from interface inetsoft.uql.asset.AssetRepository |
|---|
ASSET_ERRORS, COMPONENT_SCOPE, GLOBAL_SCOPE, IGNORE_PERM, LOCAL_QUERY, QUERY_SCOPE, REPORT_SCOPE, REPORT_WORKSHEET, REPOSITORY_SCOPE, TEMPORARY_SCOPE, USER_SCOPE |
| Constructor Summary | |
|---|---|
TabularSheet()
Create an empty TabularSheet. |
|
| Method Summary | |
|---|---|
String |
addAreaBreak(int r,
int c)
Add a area break to the document. |
String |
addBean(int r,
int c,
String name)
Add a bean to the report. |
String |
addBreak(int r,
int c)
Add a break to the document. |
String |
addBullet(int r,
int c)
Add a bullet to the document. |
String |
addBullet(int r,
int c,
Image icon)
Add a bullet with user specified image as bullet icon. |
String |
addButton(int r,
int c,
String form,
String name,
String text)
Add a form button to the report. |
String |
addButton(int r,
int c,
String form,
String name,
String script,
String text)
Add a form button to the report. |
String |
addChart(int r,
int c,
DataSet chart)
Add a chart to the report. |
String |
addChart(int r,
int c,
DataSet chart,
double winch,
double hinch)
This is same as addChart() exception an explicit size of the chart area is specified. |
String |
addCheckBox(int r,
int c,
String form,
String name,
String text,
boolean selected)
Add a checkbox to the report. |
String |
addCheckBox(int r,
int c,
String form,
String name,
String script,
String text,
boolean selected)
Add a checkbox to the report. |
String |
addChoiceElement(int r,
int c,
String form,
String name,
String selected,
String[] choices)
Add a choice field to the report. |
String |
addChoiceElement(int r,
int c,
String form,
String name,
String script,
String selected,
String[] choices)
Add a choice field to the report. |
String |
addComponent(int r,
int c,
Component comp)
Add an AWT component to the document. |
String |
addComponent(int r,
int c,
Component component,
double winch,
double hinch)
This is same as addComponent() exception an explicit size of the painter area is specified. |
String |
addComposite(int r,
int c,
CompositeLens container)
Add a composite element to the report. |
String |
addConditionalPageBreak(int r,
int c,
double inch)
Add a conditional page break. |
String |
addConditionalPageBreak(int r,
int c,
int min)
Add a conditional page break. |
String |
addDateCombo(int r,
int c,
String form,
String name,
Date date)
Add a date combobox to a report. |
String |
addDateCombo(int r,
int c,
String form,
String name,
String script,
Date date)
Add a date combobox to a report. |
String |
addElement(int r,
int c,
ReportElement e)
Add an element to the document. |
String |
addForm(int r,
int c,
FormLens form)
Add a form to the document. |
String |
addImage(int r,
int c,
Image image)
Add an image to the document. |
String |
addImage(int r,
int c,
Image image,
double winch,
double hinch)
This is same as addImage() exception an explicit size of the painter area is specified. |
String |
addImage(int r,
int c,
URL image)
Add an image to the document. |
String |
addImageButton(int r,
int c,
String form,
String name,
String resource)
Add a form image button to the report. |
String |
addImageButton(int r,
int c,
String form,
String name,
String script,
String resource)
Add a form image button to the report. |
String |
addListElement(int r,
int c,
String form,
String name,
String[] selected,
String[] choices)
Add a list field to the report. |
String |
addListElement(int r,
int c,
String form,
String name,
String script,
String[] selected,
String[] choices)
Add a list field to the report. |
String |
addNewline(int r,
int c,
int n)
Add one or more newline to the document. |
String |
addObject(int r,
int c,
Object obj)
Add an object to the document. |
String |
addPageBreak(int r,
int c)
Add a page break to the document. |
String |
addPainter(int r,
int c,
Painter area)
Add a painter element to the document. |
String |
addPainter(int r,
int c,
Painter area,
double winch,
double hinch)
This is same as addPainter() except an explicit size of the painter area is specified. |
String |
addRadioButton(int r,
int c,
String form,
String name,
String text,
boolean selected,
String group)
Add a radio button to the report. |
String |
addRadioButton(int r,
int c,
String form,
String name,
String script,
String text,
boolean selected,
String group)
Add a radio button to the report. |
String |
addRightTab(int r,
int c)
Add a right aligned tab. |
String |
addSection(int r,
int c,
SectionLens section)
Add a section element to the report. |
String |
addSection(int r,
int c,
SectionLens section,
TableLens table)
Add a section element to the report. |
String |
addSeparator(int r,
int c,
int style)
Add a separator. |
void |
addShape(PageLayout.Shape shape)
Add a shape to the report. |
String |
addSpace(int r,
int c,
int pixels)
Add horizontal space to the document. |
String |
addTab(int r,
int c,
int fill)
Add a tab. |
String |
addTable(int r,
int c,
TableLens table)
Add a table to the document. |
String |
addText(int r,
int c,
String text)
Add a text element to the document. |
String |
addText(int r,
int c,
TextLens text)
Add a text element to the document. |
String |
addTextArea(int r,
int c,
String form,
String name,
String text,
int rows,
int cols)
Add a textarea to a report. |
String |
addTextArea(int r,
int c,
String form,
String name,
String script,
String text,
int rows,
int cols)
Add a textarea to a report. |
String |
addTextBox(int r,
int c,
String text)
Add a text box to the document. |
String |
addTextBox(int r,
int c,
String text,
int border,
double winch,
double hinch,
int textalign)
Add a text box to the document. |
String |
addTextBox(int r,
int c,
TextLens text)
Add a text box to the document. |
String |
addTextBox(int r,
int c,
TextLens text,
int border,
double winch,
double hinch,
int textalign)
Add a text box to the document. |
String |
addTextField(int r,
int c,
String form,
String name,
String text,
int cols)
Add a textfield to a report. |
String |
addTextField(int r,
int c,
String form,
String name,
String script,
String text,
int cols)
Add a textfield to a report. |
String |
addTOC(int r,
int c,
TOC toc)
Add a table of contents section to the report. |
Object |
clone()
Make a copy of this report. |
Object |
clone(boolean deep)
Make a copy of this report. |
protected void |
copyTabularSheet(TabularSheet report,
boolean flag)
Copy this report to that report. |
protected void |
copyTabularSheet(TabularSheet report,
boolean flag,
boolean deep)
Copy this report to that report. |
Vector |
getAllElements()
Get all elements in the report body. |
Object |
getCellBackground(int r,
int c)
Get the background image or color of the specified cell. |
int |
getCellBackgroundLayout(int r,
int c)
Get the background layout of the specified cell. |
Dimension |
getCellBackgroundSize(int r,
int c)
Get the background size of the specified cell. |
Color |
getCellBorderColor(int r,
int c)
Get the border color of the specified cell. |
Insets |
getCellBorders(int r,
int c)
Get the borders of the specified cell. |
Rectangle |
getCellSpan(int r,
int c)
Get the span setting of the specified cell. |
int |
getColCount()
Get number of columns in the grid. |
String |
getColWidth(int c)
Get the column width setting. |
float |
getColWidthPoints(int c)
Get the column width in number of points. |
ReportElement |
getElement(int r,
int c,
int idx)
Get the specified element. |
Point |
getElementCell(ReportElement e)
Find the cell an element is contained. |
int |
getElementCount(int r,
int c)
Return the number of elements in the document. |
int |
getElementIndex(int r,
int c,
ReportElement e)
Get the index of the specified element. |
int |
getMinRowHeight(int r)
Get the row height. |
Integer |
getNextOrientation()
Get the page orientation for the next page. |
int |
getRowCount()
Get number of rows in the grid. |
int |
getRowHeight(int r)
Get the actual row height. |
Margin |
getRowMargin(int r)
Get the margin of a row. |
Integer |
getRowOrientation(int r)
Get the orientation of a row. |
PageLayout.Shape |
getShape(int idx)
Get the specified shape. |
int |
getShapeCount()
Get the number of shapes contained in this report. |
void |
insertCols(int c,
int ncol)
Insert columns before the specified column. |
String |
insertElement(int r,
int c,
int idx,
ReportElement e)
Insert the element at specified position (before). |
void |
insertRows(int r,
int nrow)
Insert rows before the specified row. |
boolean |
isCellRepeat(int r,
int c)
Check if the cell contents is repeated. |
boolean |
isFitPage(int r,
int c)
Check if the cell fit page. |
void |
mergeCells(int r,
int c,
int nrow,
int ncol)
Merge the cells in the region. |
void |
moveElement(String id,
int direction)
Move element up or down. |
boolean |
printNext(StylePage pg)
Print one page. |
boolean |
printNextPage(StylePage pg)
Print the next page. |
void |
removeAllElements(int r,
int c)
Remove all elements from the specified cell. |
void |
removeCols(int c,
int ncol)
Remove columns at specified column. |
protected void |
removeContents()
Remove all elements from the contents. |
void |
removeElement(int r,
int c,
int idx)
Remove the specified element. |
void |
removeElement(String id)
Remove the specified element. |
void |
removeRows(int r,
int nrow)
Remove rows at specified row. |
void |
removeShape(int idx)
Remove the specified shape. |
protected void |
replaceElement(int r,
int c,
int idx,
ReportElement e)
Replace the specified element. |
protected void |
replaceElement(String id,
ReportElement e)
Replace the specified element. |
protected void |
resetContents()
Reset all elements in the contents. |
void |
setCellBackground(int r,
int c,
Object bg)
Set the background image or color of the specified cell. |
void |
setCellBackgroundLayout(int r,
int c,
int layout)
Set the background layout of the specified cell. |
void |
setCellBackgroundSize(int r,
int c,
Dimension d)
Set the background size of the specified cell. |
void |
setCellBackgroundSize(int r,
int c,
int width,
int height)
Set the background size of the specified cell. |
void |
setCellBorderColor(int r,
int c,
Color color)
Set the border color of the specified cell. |
void |
setCellBorders(int r,
int c,
Insets borders)
Set the borders of the specified cell. |
void |
setCellRepeat(int r,
int c,
boolean repeat)
Set the repeat flag of a cell. |
void |
setCellSpan(int r,
int c,
int nrow,
int ncol)
Merge the cells in the region. |
void |
setCellSpan(int r,
int c,
Rectangle rec)
Set cell span directly. |
void |
setColWidth(int c,
String width)
Set the column width. |
void |
setFitPage(int r,
int c,
boolean print)
Set the fitPage of a cell. |
void |
setMinRowHeight(int r,
int height)
Set the row height in pixels (points). |
void |
setRowMargin(int r,
Margin margin)
Set the page margin for a row. |
void |
setRowOrientation(int r,
Integer orientation)
Set the page orientation for a row. |
void |
splitCols(int r,
int c,
int ncol)
Split a cell into columns. |
void |
splitRows(int r,
int c,
int nrow)
Split a cell into rows. |
String |
toString()
|
| Methods inherited from class inetsoft.report.internal.StyleCore |
|---|
addChangeListener, addr, addScriptObject, advance, alignLine, append, append, calcGrid, checkDataSourceFolderPermission, checkDataSourcePermission, checkQueryFolderPermission, checkQueryPermission, cloneElements, cloneElements, complete, completeElement, copyQueries, copyStyleCore, createFinder, createFormatMap, createPresenterMap, deleteScriptEnv, fireEvent, format, format, getActionScriptable, getAllFooterElements, getAllHeaderElements, getBackgroundImageLocation, getBuildNumber, getBurstInfo, getCompositeElement, getDefaultFooter, getDefaultHeader, getDependencyFile, getDependencyFileName, getElementFooters, getElementHeaders, getElementWidth, getElemInfoBoundsMap, getElemInfoMap, getFinder, getFormat, getFormats, getFrames, getHeadingNumberArray, getHFTextFormatter, getLocalQueryRepository, getNextHeadingNumberArray, getNextID, getNumHeadingMap, getOnLoadResult, getOutputType, getPageTotalStart, getPagingLock, getParameterSheet, getParentScope, getPresenter, getProperties, getQueryManager, getReportManager, getReportMode, getScriptEnv, getScriptObject, getSecNumHeadingMap, getSheet, getTextSize, getTopReport, getVariableTable, hasOnPrint, isDesignTime, isLimited, isPrintMode, isReusePages, isRunTime, isSubreport, parseAssetRepository, printFixedContainer, printFixedContainer, processHF, processHF, putElemWarnings, removeChangeListener, renameQuery, renameQuery, resetCache, resetHeadingNumberArray, resetOnLoad, resetScriptEnv, restoreHeadingNumberArray, runOnInit, runOnLoad, runOnPrint, setBackgroundImageLocation, setBurstInfo, setDesignTime, setElemInfoBoundsMap, setFooterContinue, setHeaderContinue, setHeadingNumberArray, setHFTextFormatter, setHindent, setOverrideFooter, setOverrideHeader, setPageTotalStart, setParentScope, setPrintMode, setReportMode, setReportMode, setReusePages, setScriptEnv, setSubreport, setValue, setVariableTable, skip, toString, updateParameterSheet, writeAssetRepository |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TabularSheet()
| Method Detail |
|---|
public int getRowCount()
public int getColCount()
public void mergeCells(int r,
int c,
int nrow,
int ncol)
public void splitRows(int r,
int c,
int nrow)
r - row index.c - column index.nrow - number of rows to split the cell into.
public void splitCols(int r,
int c,
int ncol)
r - row index.c - column index.ncol - number of columns to split the cell into.
public Object getCellBackground(int r,
int c)
r - row index.c - column index.
public void setCellBackground(int r,
int c,
Object bg)
r - row index.c - column index.bg - cell background image or color.
public int getCellBackgroundLayout(int r,
int c)
r - row index.c - column index.
public void setCellBackgroundLayout(int r,
int c,
int layout)
r - row index.c - column index.layout - cell background layout.
public Dimension getCellBackgroundSize(int r,
int c)
r - row index.c - column index.
public void setCellBackgroundSize(int r,
int c,
Dimension d)
r - row index.c - column index.d - cell background size.
public void setCellBackgroundSize(int r,
int c,
int width,
int height)
r - row index.c - column index.width - cell background width.height - cell background height.
public Insets getCellBorders(int r,
int c)
r - row index.c - column index.
public void setCellBorders(int r,
int c,
Insets borders)
r - row index.c - column index.borders - cell borders line styles.
public Color getCellBorderColor(int r,
int c)
r - row index.c - column index.
public void setCellBorderColor(int r,
int c,
Color color)
r - row index.c - column index.color - cell border color.
public boolean isCellRepeat(int r,
int c)
r - row index.c - column index.
public void setCellRepeat(int r,
int c,
boolean repeat)
r - row index.c - column index.repeat - repeat flag.
public boolean isFitPage(int r,
int c)
r - row index.c - column index.
public void setFitPage(int r,
int c,
boolean print)
r - row index.c - column index.print - print flag.
public void setCellSpan(int r,
int c,
Rectangle rec)
r - row index.c - column index.rec - span rectangle.
public void setCellSpan(int r,
int c,
int nrow,
int ncol)
public Rectangle getCellSpan(int r,
int c)
public void setMinRowHeight(int r,
int height)
r - row index.height - row height in points (1/72 inch).public int getMinRowHeight(int r)
r - row index.
public int getRowHeight(int r)
public void setRowOrientation(int r,
Integer orientation)
orientation - a Integer object with value in
StyleConstants.PORTRAIT or StyleConstants.LANDSCAPE.public Integer getRowOrientation(int r)
public void setRowMargin(int r,
Margin margin)
margin - margin in inches.public Margin getRowMargin(int r)
public void setColWidth(int c,
String width)
c - column index.width - width specification.public String getColWidth(int c)
c - column index.
public float getColWidthPoints(int c)
public void insertRows(int r,
int nrow)
r - row index.nrow - number of rows to insert.
public void insertCols(int c,
int ncol)
c - column index.ncol - number of columns to insert.
public void removeRows(int r,
int nrow)
r - row index.nrow - number of rows.
public void removeCols(int c,
int ncol)
c - column index.ncol - number of columns.public void addShape(PageLayout.Shape shape)
shape - a shape (line, rectangle, or oval).public int getShapeCount()
public PageLayout.Shape getShape(int idx)
public void removeShape(int idx)
public String addObject(int r,
int c,
Object obj)
If there is no presenter registered at the document for this type of object, the TabularSheet then check if a Format is register for this class. If there is a Format, it's used to format the object into string and treated as a regular text.
If there is no format registered for this object type, the object is converted to a string (toString()) and treated as a regular text element.
r - row index.c - column index.obj - object value.
public String addText(int r,
int c,
String text)
r - row index.c - column index.text - text string.
public String addText(int r,
int c,
TextLens text)
The inetsoft.report.lens package also contains a StreamTextLens, which allows retrieving text from a file, URL, or any input stream.
r - row index.c - column index.text - text content lens.
public String addTextBox(int r,
int c,
TextLens text)
r - row index.c - column index.text - text content.
public String addTextBox(int r,
int c,
String text)
r - row index.c - column index.text - text content.
public String addTextBox(int r,
int c,
TextLens text,
int border,
double winch,
double hinch,
int textalign)
r - row index.c - column index.text - text content.border - border line style. One of the line styles defined in
the StyleConstants class.winch - area width in inches. Pass 0 to use default.hinch - area height in inches. Pass 0 to use default.textalign - text alignment within the box.
public String addTextBox(int r,
int c,
String text,
int border,
double winch,
double hinch,
int textalign)
r - row index.c - column index.text - text content.border - border line style. One of the line styles defined in
the StyleConstants class.winch - area width in inches. Pass 0 to use default.hinch - area height in inches. Pass 0 to use default.textalign - text alignment within the box.
public String addPainter(int r,
int c,
Painter area)
r - row index.c - column index.area - the painter element.
public String addPainter(int r,
int c,
Painter area,
double winch,
double hinch)
r - row index.c - column index.area - the painter element.winch - area width in inches.hinch - area height in inches.
public String addChart(int r,
int c,
DataSet chart)
r - row index.c - column index.chart - chart data model.
public String addChart(int r,
int c,
DataSet chart,
double winch,
double hinch)
r - row index.c - column index.chart - the chart element.winch - area width in inches.hinch - area height in inches.
public String addComponent(int r,
int c,
Component comp)
r - row index.c - column index.comp - component.
public String addComponent(int r,
int c,
Component component,
double winch,
double hinch)
r - row index.c - column index.component - component to paint.winch - area width in inches.hinch - area height in inches.
public String addImage(int r,
int c,
Image image)
r - row index.c - column index.image - image object.
public String addImage(int r,
int c,
Image image,
double winch,
double hinch)
r - row index.c - column index.image - image to paint.winch - area width in inches.hinch - area height in inches.
public String addImage(int r,
int c,
URL image)
throws IOException
r - row index.c - column index.image - image URL.
IOException
public String addBullet(int r,
int c)
r - row index.c - column index.
public String addBullet(int r,
int c,
Image icon)
r - row index.c - column index.icon - icon to used for bullet.
public String addSpace(int r,
int c,
int pixels)
r - row index.c - column index.pixels - space in pixels.
public String addNewline(int r,
int c,
int n)
r - row index.c - column index.n - number of newline.
public String addBreak(int r,
int c)
r - row index.c - column index.
public String addPageBreak(int r,
int c)
r - row index.c - column index.
public String addAreaBreak(int r,
int c)
r - row index.c - column index.
public String addConditionalPageBreak(int r,
int c,
int min)
r - row index.c - column index.min - minimu space in pixels.
public String addConditionalPageBreak(int r,
int c,
double inch)
r - row index.c - column index.inch - minimu space in inches.
public String addSeparator(int r,
int c,
int style)
r - row index.c - column index.style - the line style (defined in StyleConstants).
public String addTab(int r,
int c,
int fill)
fill - a line style defined in StyleConstants.r - row index.c - column index.
public String addRightTab(int r,
int c)
r - row index.c - column index.
public String addTable(int r,
int c,
TableLens table)
r - row index.c - column index.table - table lens.
public String addForm(int r,
int c,
FormLens form)
r - row index.c - column index.form - form lens.
public String addTOC(int r,
int c,
TOC toc)
r - row index.c - column index.toc - table of contents style.
public String addBean(int r,
int c,
String name)
r - row index.c - column index.name - bean name, must be an existing bean in the bean library.
public String addComposite(int r,
int c,
CompositeLens container)
r - row index.c - column index.container - composite lens.
public String addSection(int r,
int c,
SectionLens section)
r - row index.c - column index.section - section contents.
public String addSection(int r,
int c,
SectionLens section,
TableLens table)
r - row index.c - column index.section - section contents.table - section data.
public String addButton(int r,
int c,
String form,
String name,
String text)
form - form name.name - field name.text - button text.
public String addButton(int r,
int c,
String form,
String name,
String script,
String text)
form - form name.name - field name.script - onSubmit java script.text - button text.
public String addImageButton(int r,
int c,
String form,
String name,
String resource)
form - form name.name - field name.resource - image resource name.
public String addImageButton(int r,
int c,
String form,
String name,
String script,
String resource)
form - form name.name - field name.script - onSubmit java script.resource - image resource name.
public String addCheckBox(int r,
int c,
String form,
String name,
String text,
boolean selected)
form - form name.name - field name.text - checkbox label.selected - true if the default is selected.
public String addCheckBox(int r,
int c,
String form,
String name,
String script,
String text,
boolean selected)
form - form name.name - field name.script - onSubmit java script.text - checkbox label.selected - true if the default is selected.
public String addRadioButton(int r,
int c,
String form,
String name,
String text,
boolean selected,
String group)
form - form name.name - field name.text - button label.selected - true if the default is selected.group - radio button group name.
public String addRadioButton(int r,
int c,
String form,
String name,
String script,
String text,
boolean selected,
String group)
form - form name.name - field name.script - onSubmit java script.text - button label.selected - true if the default is selected.group - radio button group name.
public String addChoiceElement(int r,
int c,
String form,
String name,
String selected,
String[] choices)
form - form name.name - field name.selected - the default selected item.choices - the list of choices.
public String addChoiceElement(int r,
int c,
String form,
String name,
String script,
String selected,
String[] choices)
form - form name.name - field name.script - onSubmit java script.selected - the default selected item.choices - the list of choices.
public String addListElement(int r,
int c,
String form,
String name,
String[] selected,
String[] choices)
form - form name.name - field name.selected - the default selected item.choices - the list of choices.
public String addListElement(int r,
int c,
String form,
String name,
String script,
String[] selected,
String[] choices)
form - form name.name - field name.script - onSubmit java script.selected - the default selected item.choices - the list of choices.
public String addDateCombo(int r,
int c,
String form,
String name,
Date date)
form - form name.name - field name.date - default date/
public String addDateCombo(int r,
int c,
String form,
String name,
String script,
Date date)
form - form name.name - field name.script - onSubmit java script.date - default date.
public String addTextField(int r,
int c,
String form,
String name,
String text,
int cols)
form - form name.name - field name.text - default text.cols - number of columns.
public String addTextField(int r,
int c,
String form,
String name,
String script,
String text,
int cols)
form - form name.name - field name.script - onSubmit java script.text - default text.cols - number of columns.
public String addTextArea(int r,
int c,
String form,
String name,
String text,
int rows,
int cols)
form - form name.name - field name.text - default text.rows - number of rows.cols - number of columns.
public String addTextArea(int r,
int c,
String form,
String name,
String script,
String text,
int rows,
int cols)
form - form name.name - field name.script - onSubmit java script.text - default text.rows - number of rows.cols - number of columns.
public String addElement(int r,
int c,
ReportElement e)
r - row index.c - column index.e - document element.
public int getElementCount(int r,
int c)
r - row index.c - column index.
public ReportElement getElement(int r,
int c,
int idx)
r - row index.c - column index.idx - element index.
public Point getElementCell(ReportElement e)
e - element.
public int getElementIndex(int r,
int c,
ReportElement e)
r - row index.c - column index.e - element.
public void removeElement(int r,
int c,
int idx)
r - row index.c - column index.idx - element index.
public void removeAllElements(int r,
int c)
r - row index.c - column index.public void removeElement(String id)
removeElement in class ReportSheetid - element id in string format.
protected void replaceElement(int r,
int c,
int idx,
ReportElement e)
r - row index.c - column index.idx - element index.
protected void replaceElement(String id,
ReportElement e)
replaceElement in class ReportSheetid - element id in string format.
public void moveElement(String id,
int direction)
moveElement in class ReportSheetid - element id in string format.direction - move direction, up or down.
public String insertElement(int r,
int c,
int idx,
ReportElement e)
idx - position to insert.r - row index.c - column index.e - element.
public Vector getAllElements()
getAllElements in class inetsoft.report.internal.StyleCorepublic boolean printNext(StylePage pg)
A StylePage contains information on how to print a particular page. Its print() method can be used to perform the actual printing of the page contents to a printer graphics.
printNext in class ReportSheetpg - style page.public Integer getNextOrientation()
getNextOrientation in class ReportSheetpublic boolean printNextPage(StylePage pg)
printNextPage in class ReportSheetprotected void removeContents()
removeContents in class ReportSheetprotected void resetContents()
resetContents in class ReportSheetpublic String toString()
toString in class Objectpublic Object clone()
ReportSheet
clone in class ReportSheetpublic Object clone(boolean deep)
ReportSheet
clone in class ReportSheet
protected void copyTabularSheet(TabularSheet report,
boolean flag)
report - the report copied to.flag - if true flag all copied elements as from template.
protected void copyTabularSheet(TabularSheet report,
boolean flag,
boolean deep)
report - the report copied to.flag - if true flag all copied elements as from template.
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||