public class JRDesignCrosstabRowGroup extends JRDesignCrosstabGroup implements JRCrosstabRowGroup
| Modifier and Type | Field and Description |
|---|---|
protected CrosstabRowPositionEnum |
positionValue |
static String |
PROPERTY_POSITION |
static String |
PROPERTY_WIDTH |
protected int |
width |
designVariable, parent, PROPERTY_BUCKET, PROPERTY_HEADER, PROPERTY_MERGE_HEADER_CELLS, PROPERTY_NAME, PROPERTY_TOTAL_HEADER, PROPERTY_TOTAL_POSITIONbucket, header, mergeHeaderCells, name, totalHeader, totalPositionValue, variable| Constructor and Description |
|---|
JRDesignCrosstabRowGroup() |
| Modifier and Type | Method and Description |
|---|---|
CrosstabRowPositionEnum |
getPositionValue()
Returns the position of the header contents for header stretching.
|
int |
getWidth()
Returns the width of the group headers.
|
void |
setHeader(JRDesignCellContents header)
Sets the group header cell.
|
void |
setPosition(CrosstabRowPositionEnum positionValue)
Sets the header contents stretch position.
|
void |
setTotalHeader(JRDesignCellContents totalHeader)
Sets the group total header cell.
|
void |
setWidth(int width)
Sets the header cell width.
|
clone, clone, getEventSupport, getParent, setBucket, setCellOrigin, setMergeHeaderCells, setName, setTotalPositionclone, getBucket, getHeader, getMergeHeaderCells, getName, getTotalHeader, getTotalPositionValue, getVariable, hasTotalequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBucket, getHeader, getMergeHeaderCells, getName, getTotalHeader, getTotalPositionValue, getVariable, hasTotalclonepublic static final String PROPERTY_POSITION
public static final String PROPERTY_WIDTH
protected int width
protected CrosstabRowPositionEnum positionValue
public CrosstabRowPositionEnum getPositionValue()
JRCrosstabRowGroupThe row group headers stretch vertically when there are multiple sub group entries. The header contents will be adjusted to the new height depending on this attribute:
CrosstabRowPositionEnum.TOP - the contents will be rendered at the top of of the headerCrosstabRowPositionEnum.MIDDLE - the contents will be rendered on the center of the headerJCrosstabRowPositionEnum.BOTTOM - the contents will be rendered at the bottom of the headerCrosstabRowPositionEnum.STRETCH - the contents will be proportionally stretched to the new header sizegetPositionValue in interface JRCrosstabRowGrouppublic void setPosition(CrosstabRowPositionEnum positionValue)
positionValue - the header contents stretch positionJRCrosstabRowGroup.getPositionValue()public int getWidth()
JRCrosstabRowGroupgetWidth in interface JRCrosstabRowGroupJRCrosstabGroup.getHeader(),
JRCrosstabGroup.getTotalHeader()public void setWidth(int width)
width - the widthJRCrosstabRowGroup.getWidth()public void setHeader(JRDesignCellContents header)
JRDesignCrosstabGroupsetHeader in class JRDesignCrosstabGroupheader - the header cellJRCrosstabGroup.getHeader()public void setTotalHeader(JRDesignCellContents totalHeader)
JRDesignCrosstabGroupsetTotalHeader in class JRDesignCrosstabGrouptotalHeader - the total headerJRCrosstabGroup.getTotalHeader()Copyright © 2017. All rights reserved.