|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TableFormBase
Warning: This interface is no longer functional from the SAP BusinessObjects 4.0 release onwards.
The TableFormBase class provides a common base between forms and tables. This class is used to configure table decoration.
| Method Summary | |
|---|---|
java.awt.Color |
getAlternateColor()
Returns the background color for alternate rows. |
int |
getAlternateColorFrequency()
Returns the frequency with which alternate color rows are displayed. |
Decoration |
getBodyTableDecoration()
Returns the default graphical attributes of table background. |
double |
getCellPadding()
Deprecated. Each cell now exposes a vertical and horizontal padding, so the preferred way to get the padding is by calling TableCell.getVerticalPadding() and
TableCell.getHorizontalPadding(). |
double |
getCellSpacing()
Returns the size of empty space between all table cells. |
TableCell |
getTableCell(java.lang.String cellID)
Returns the table cell with the specified ID, or null when
there is no cell with cellID in this table. |
void |
setAlternateColor(int frequency,
java.awt.Color color)
Sets the alternate row frequency and color. |
void |
setCellPadding(double padding)
Sets the default padding for all cells. |
void |
setCellSpacing(double spacing)
Changes the size of empty space between all table cells. |
| Methods inherited from interface com.businessobjects.rebean.wi.Representation |
|---|
getBlock, getType, setType |
| Methods inherited from interface com.businessobjects.rebean.wi.Unit |
|---|
getUnit, setUnit |
| Method Detail |
|---|
void setAlternateColor(int frequency,
java.awt.Color color)
Sets the alternate row frequency and color. Alternate rows are rows that
are displayed with a different background color for each
frequency appearances.
For a frequency of 0, no alternate rows will be displayed.
A frequency of 1 will show all rows in alternate color.
Frequency 2 will have one row in alternate color and then
one row in normal color. A frequency of 3 will show the
first row in alternate color and then two rows in normal color, and so
on.
As a general rule, for a given row n, with first row
n = 0, the row will be displayed in alternate color if
(frequency > 0) && (n % frequency == 0), that
is so say, if n is a product of frequency.
frequency - the frequency with which rows of alternate color are
displayedcolor - the background color to use, or null for the
default color
java.lang.IllegalArgumentException - when frequency < 0int getAlternateColorFrequency()
TableFormBase.setAlternateColor(int, Color)java.awt.Color getAlternateColor()
TableFormBase.setAlternateColor(int, Color)double getCellPadding()
TableCell.getVerticalPadding() and
TableCell.getHorizontalPadding().
Returns the default padding for all cells.
This method will return the padding for all table cells only if all cells
have the same vertical and horizontal padding. If any cell has a
different value, this method will return -1.
-1 if any cell has a
different vertical or horizontal padding.Unit.getUnit()void setCellPadding(double padding)
TableCell.setVerticalPadding(double) and
TableCell.setHorizontalPadding(double) on each cell.
padding - The new padding for all cells.
java.lang.IllegalArgumentException - Thrown when padding < 0.0.Unit.getUnit()double getCellSpacing()
Unit.getUnit()void setCellSpacing(double spacing)
spacing - the new cell spacing
java.lang.IllegalArgumentException - when spacing < 0.0Unit.getUnit()TableCell getTableCell(java.lang.String cellID)
null when
there is no cell with cellID in this table.
cellID - the cell ID to look for
null when not
foundDecoration getBodyTableDecoration()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||