|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReportBlock
Warning: This interface is no longer functional from the SAP BusinessObjects 4.0 release onwards.
Represents a block in a report. A block can be either a table or a graph.
Method Summary | |
---|---|
void |
changeAxes()
Changes the Axes |
BlockAxis |
getAxis(AxisType type)
Returns an axis of the block. |
BlockSort |
getBlockSort(boolean horizontal)
Returns the BlockSort object in the requested direction. |
boolean |
getDuplicateRowAggregation()
Checks if duplicate rows will be shown in the block or not. |
java.lang.String |
getName()
Returns the name of this block. |
Representation |
getRepresentation()
Returns the representation of this block. |
boolean |
isShowWhenEmpty()
Returns true if the block is visible when it contains no values. |
boolean |
repeatOnEveryPage()
Checks if the cell is repeated on every page or not. |
void |
repeatOnEveryPage(boolean b)
Specifies whether the cell is repeated on every page. |
void |
setDuplicateRowAggregation(boolean b)
Sets whether duplicate rows will be displayed in the block. |
void |
setName(java.lang.String name)
Changes the block name. |
void |
setShowWhenEmpty(boolean show)
Specifies if this block should be visible when it contains no values. |
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.PageLayout |
---|
avoidPageBreak, avoidPageBreak, startOnNewPage, startOnNewPage |
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.Filterable |
---|
copyFilter, createFilter, getFilter, hasFilter, removeFilter |
Method Detail |
---|
java.lang.String getName()
void setName(java.lang.String name)
name
- the new name
java.lang.NullPointerException
- when name
is null
BlockAxis getAxis(AxisType type)
Returns an axis of the block. An axis holds the report expressions that are displayed in the
block. For information on which block uses which axes, see the BlockType
interfaces.
It is not an error to request an axis that does not exist for a block; when one or more
expressions are added to an axis that does not currently exist, the block type will change
to something that can hold expressions in all current axes. For example, a TableType.VTABLE
block has all its expressions in TableAxis.HORIZONTAL
. When an expression is added
to TableAxis.VERTICAL
, the block will automatically be turned into a crosstable.
Note that changing block type may move some expressions from one axis to another, as described
in Representation.setType(BlockType)
.
type
- the axis type
java.lang.NullPointerException
- when type
is null
void changeAxes()
Representation getRepresentation()
Representation
. The Representation type can be tested
using Representation.getType()
.
boolean getDuplicateRowAggregation()
Note: When Query.getDuplicatedRows()
returns false
, duplicate
rows are already filtered out at the Query level.
false
when duplicate rows will be shown in the blockvoid setDuplicateRowAggregation(boolean b)
b
- set to false
for duplicate rows to be shown in the blockReportBlock.getDuplicateRowAggregation()
,
Query.setDuplicatedRows(boolean)
boolean repeatOnEveryPage()
true
when the cell is repeated on every pagevoid repeatOnEveryPage(boolean b)
b
- set to true
so the cell is repeated on every pageBlockSort getBlockSort(boolean horizontal)
BlockSort
object in the requested direction.
horizontal
- when true
, the horizontal sorts will be
returned
boolean isShowWhenEmpty()
true
if the block will be displayed in the
result when it is emptyvoid setShowWhenEmpty(boolean show)
show
- if set to true
, the block will be displayed in the
resulting report, even when it is empty
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |