|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Cell
Warning: This interface is no longer functional from the SAP BusinessObjects 4.0 release onwards.
TheCell interface represents a single cell in a report.
| Method Summary | |
|---|---|
boolean |
avoidPageBreak()
Returns if there should never be a page break in the element. |
void |
avoidPageBreak(boolean b)
Changes if there should never be a page break in the element. |
double |
estimateMinimalHeight()
Returns an estimate for the minimal height for this cell, given the current font size and
vertical padding, for a single line of
text. |
CellContentType |
getContentType()
Returns the Cell object's content type. |
double |
getHeight()
Returns the height of this cell. |
double |
getHorizontalPadding()
Returns the current Cell objects horizontal padding. |
double |
getVerticalPadding()
Returns the current Cell objects padding. |
double |
getWidth()
Returns the width of this cell. |
boolean |
isAutoFitHeight()
Informs wheather the cell's size is determined by its contents or by the values specified with setHeight(double). |
boolean |
isAutoFitWidth()
Informs wheather the cell's size is determined by its contents or by the values specified with setWidth(double). |
boolean |
isShowWhenEmpty()
Returns true if this cell will be shown when it is empty. |
boolean |
repeatOnEveryPage()
Returns true if the Cell is repeated on every page. |
void |
repeatOnEveryPage(boolean b)
Set to true for the Cell to be repeated on every page. |
void |
setAutoFitHeight(boolean autoFit)
Changes the automatic sizing of the cell. |
void |
setAutoFitWidth(boolean autoFit)
Changes the automatic sizing of the cell. |
void |
setContentType(CellContentType t)
Change the Cell object's content type. |
void |
setHeight(double size)
Changes the cell's height. |
void |
setHorizontalPadding(double padding)
Changes the current Cell objects horizontal padding. |
void |
setShowWhenEmpty(boolean show)
Set to true for this cell to be shown when it is empty. |
void |
setVerticalPadding(double padding)
Changes the current Cell objects vertical padding. |
void |
setWidth(double size)
Changes the cell's width. |
| 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 |
| Method Detail |
|---|
boolean isAutoFitWidth()
Informs wheather the cell's size is determined by its contents or by the values specified with
setWidth(double). When this method returns true,
the values specified for width will be ignored.
Note that when true, getWidth will not depend on the content;
this is only taken into account when the actual report is rendered.
true when the size depends on the contentsboolean isAutoFitHeight()
Informs wheather the cell's size is determined by its contents or by the values specified with
setHeight(double). When this method returns true,
the values specified for height will be ignored.
Note that when true, getHeight will not depend on the content;
this is only taken into account when the actual report is rendered.
true when the size depends on the contentsvoid setAutoFitWidth(boolean autoFit)
autoFit to true, you must set the
the cell width to 0 to ensure that the cell width matches its text content size.
Example: Applying autofit to cell
freeCell.setHeight(0);
freeCell.setWidth(0);
freeCell.setAutoFitHeight(true);
freeCell.setAutoFitWidth(true);
autoFit - when true, the cell's size will depend on the contentsCell.isAutoFitWidth()void setAutoFitHeight(boolean autoFit)
autoFit to true, you must set the
the cell height to 0 to ensure that the cell width matches its text content size.
Example: Applying autofit to cell
freeCell.setHeight(0);
freeCell.setWidth(0);
freeCell.setAutoFitHeight(true);
freeCell.setAutoFitWidth(true);
autoFit - when true, the cell's size will depend on the contentsCell.isAutoFitHeight()double getWidth()
isAutoFit() == true, this value is of
no meaning. The returned value will be in the unity specified in Unit.getUnit().
void setWidth(double size)
Unit.getUnit().
size - the new widthCell.isAutoFitWidth()double getHeight()
isAutoFit() == true, this value is of
no meaning. The returned value will be in the unity specified in Unit.getUnit().
void setHeight(double size)
Unit.getUnit().
size - the new heightCell.isAutoFitHeight()double getHorizontalPadding()
Cell objects horizontal padding.
The default padding is 3 points or 1/24 inch.
Cell in the current unit.
See Unit.getUnit() for information about the current unit.void setHorizontalPadding(double padding)
Cell objects horizontal padding.
If this value is negative, the default system value of 3 points or 1/24 inch is applied.
padding - The new value for the current Cell objects
horizontal padding in the current unit.
See Unit.getUnit() for information about the current unit.double getVerticalPadding()
Cell objects padding.
The default value is 1.5 points, or 1/48 inch.
Cell in the current unit.
See Unit.getUnit() for information about the current unit.void setVerticalPadding(double padding)
Cell objects vertical padding.
If this value is negative, the default system value of
1.5 points, or 1/48 inch is applied.
padding - The new value for the current Cell objects
vertical padding in the current unit.
See Unit.getUnit() for information about the current unit.boolean repeatOnEveryPage()
true if the Cell is repeated on every page.
true if the Cell is
repeated on every page.void repeatOnEveryPage(boolean b)
true for the Cell to be repeated on every page.
b - Set to true for the Cell to be repeated
on every page.void setShowWhenEmpty(boolean show)
true for this cell to be shown when it is empty.
Note: The default value is true.
show - when false, this cell will not appear in the
report when it is emptyboolean isShowWhenEmpty()
true if this cell will be shown when it is empty.
Note: The default value is true.
true when this cell will appear in the report when
it is emptyCellContentType getContentType()
Cell object's content type.
Possible types are:
CellContentType object.CellContentTypevoid setContentType(CellContentType t)
Cell object's content type.
Possible types are:
t - - CellContentType value.CellContentTypedouble estimateMinimalHeight()
font size and
vertical padding, for a single line of
text.
When used in combination with
setAutoFitHeight(true), this method
can ensure the cell to have a reasonable minimal height, even when it is
empty.
unit.TableCell.estimateMinimalHeight()boolean avoidPageBreak()
true when the element should never have a page break in it (when possible)void avoidPageBreak(boolean b)
b - true when the element should never have a page break in it (when possible)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||