|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReportCell
Warning: This interface is no longer functional from the SAP BusinessObjects 4.0 release onwards.
ReportCell is an extendedCell
object that holds a ReportExpression
value.
ReportBody.createReportCell(ReportExpression)
,
SectionContainer.createReportCell(ReportExpression)
Method Summary | |
---|---|
ReportExpression |
getExpr()
Returns the ReportExpression displayed by this ReportCell . |
FormatNumber |
getFormatNumber()
Returns the FormatNumber used for displaying values in this ReportCell . |
ReportExpression |
getNestedExpr()
Returns the ReportExpression displayed in this ReportCell . |
boolean |
isCustomFormula()
Returns true if the this cell contains a custom formula. |
boolean |
isSection()
Returns true when this cell identifies a section. |
void |
setExpr(ReportExpression expr)
Changes the ReportExpression displayed by this ReportCell . |
void |
setFormatNumber(FormatNumber format)
Sets the FormatNumber used for displaying values in this ReportCell . |
FreeCell |
toFreeCell()
Turns this ReportCell into a FreeCell . |
Methods inherited from interface com.businessobjects.rebean.wi.Cell |
---|
avoidPageBreak, avoidPageBreak, estimateMinimalHeight, getContentType, getHeight, getHorizontalPadding, getVerticalPadding, getWidth, isAutoFitHeight, isAutoFitWidth, isShowWhenEmpty, repeatOnEveryPage, repeatOnEveryPage, setAutoFitHeight, setAutoFitWidth, setContentType, setHeight, setHorizontalPadding, setShowWhenEmpty, setVerticalPadding, setWidth |
Methods inherited from interface com.businessobjects.rebean.wi.ReportElement |
---|
getFather, getID, getReportElement, getReportElement, getReportElementCount |
Methods inherited from interface com.businessobjects.rebean.wi.TreeNode |
---|
getChildAt, getChildCount, getIndex, getParent, isLeaf |
Methods inherited from interface com.businessobjects.rebean.wi.Decoration |
---|
getAlignment, getAttributes, getBackgroundAlignment, getFont, setAlignment, setAttributes, setBackgroundAlignment, setFont |
Methods inherited from interface com.businessobjects.rebean.wi.Attachable |
---|
deleteAttachment, getAttachTo, getHAttachTo, getHorizontalAnchor, getVAttachTo, getVerticalAnchor, setAttachTo, setAttachTo |
Methods inherited from interface com.businessobjects.rebean.wi.Position |
---|
getX, getY, setLocation, setX, setY |
Methods inherited from interface com.businessobjects.rebean.wi.Unit |
---|
getUnit, setUnit |
Methods inherited from interface com.businessobjects.rebean.wi.Alertable |
---|
getAlerters |
Methods inherited from interface com.businessobjects.rebean.wi.Filterable |
---|
copyFilter, createFilter, getFilter, hasFilter, removeFilter |
Method Detail |
---|
boolean isSection()
true
when this cell identifies a section.
For each expression in a SectionContainer
object's axis,
a ReportCell
is generated, displaying the value for
the current section.
To get the SectionContainer
holding this ReportCell
, call
SectionContainer section = (SectionContainer) mySectionReportCell.getParent();
.
true
when identifying a sectionSectionContainer.getSectionCells()
ReportExpression getExpr()
ReportExpression
displayed by this ReportCell
.
Note: this will usually be a formula; try
using getNestedExpr()
instead of this function to return
a ReportExpression
contained in the ReportDictionary
.
ReportDictionary
,
ReportExpression
ReportExpression getNestedExpr()
ReportExpression
displayed in this ReportCell
.
If this cell displays the name of the expression, a value or the result
of a calculation, this method always returns the base expression,
unless the expression is a complex formula (for example,
=[Revenue] / COUNT([Month])
).
null
the ReportCell does not contain an
expression.void setExpr(ReportExpression expr)
ReportExpression
displayed by this ReportCell
.
If it is not a FormulaExpression
, the expression will be automatically
transformed to a formula =expr
.
Note: after calling this method, isSection
returns false
.
Note: no call to SectionContainer.getSectionCells()
will return this cell.
expr
- the report expression this cell will now display
java.lang.NullPointerException
- when expr
is null
FormatNumber getFormatNumber()
FormatNumber
used for displaying values in this ReportCell
.
FormatNumber
used for values in this cell, or null
for the
default formatFormatNumber
,
FormatNumberType
void setFormatNumber(FormatNumber format)
FormatNumber
used for displaying values in this ReportCell
.
format
- the format for values in this cell, or null
for the default formatFormatNumber
,
FormatNumberType
FreeCell toFreeCell()
ReportCell
into a FreeCell
.
The resulting cell has all the same attributes as this cell,
but contains a text representation of the current expression.
Note: After calling this function, this cell is no longer part of the report and a new cell has taken its place.
FreeCell.toReportCell()
boolean isCustomFormula()
true
if the this cell contains a custom formula.
An expression is custom when it is a user-created formula (see
ReportDictionary.createFormula(String)
), that does not evaluate
to a single object. For example, =[Revenue]
is not custom,
but =[Revenue]*2
is. Formulas that evaluate as text only
(like ="text"
for example) are never custom.
true
if the expression in this cell is a custom
formulaTableCell.isCustomFormula()
,
GraphAxisProperties.isCustomFormula(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |