public class JRFillCellContents extends JRFillElementContainer implements JRCellContents, JRStyleSetter
| Modifier and Type | Class and Description |
|---|---|
protected static class |
JRFillCellContents.BoxContents |
protected static class |
JRFillCellContents.StretchedContents |
| Modifier and Type | Field and Description |
|---|---|
static String |
EXCEPTION_MESSAGE_KEY_CANNOT_SHRINK_CONTENTS |
atLeastOneElementIsToPrint, deepElements, evaluatedStyles, expressionEvaluator, filler, hasPrintWhenOverflowElement, isOverflow, stylesToEvaluatebottomElementInGroup, children, elementGroup, elements, topElementInGroupNOT_CALCULATED, PROPERTIES_PREFIX, PROPERTY_COLUMN_SPAN, PROPERTY_ROW_SPAN, PROPERTY_TYPE, TYPE_COLUMN_HEADER, TYPE_CROSSTAB_HEADER, TYPE_CROSSTAB_TITLE, TYPE_DATA, TYPE_NO_DATA_CELL, TYPE_ROW_HEADER| Modifier | Constructor and Description |
|---|---|
|
JRFillCellContents(JRBaseFiller filler,
JRCellContents cell,
String cellType,
JRFillCrosstabObjectFactory factory) |
protected |
JRFillCellContents(JRFillCellContents cellContents,
JRFillCloneFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addElement(int index,
JRFillElement element) |
protected void |
addHtmlClass(String className) |
JRFillCloneable |
createClone() |
JRFillCloneable |
createClone(JRFillCloneFactory factory)
Creates a working clone of itself.
|
protected void |
evaluate(byte evaluation) |
protected JRPrintFrame |
fill() |
protected int |
getActualContainerHeight()
Returns the actual height of the element container.
|
Color |
getBackcolor()
Returns the cell background color.
|
protected int |
getBottomPadding() |
JRFillCellContents |
getBoxContents(boolean left,
boolean right,
boolean top) |
protected int |
getContainerHeight()
Returns the height of the element container.
|
Color |
getDefaultLineColor() |
JRDefaultStyleProvider |
getDefaultStyleProvider() |
int |
getHeight()
Returns the computed cell height.
|
int |
getHorizontalSpan() |
JRLineBox |
getLineBox() |
ModeEnum |
getModeValue()
Returns the cell transparency mode.
|
protected JROrigin |
getOrigin() |
JRPropertiesHolder |
getParentProperties()
Returns the parent properties holder, whose properties are used as defaults
for this object.
|
protected int |
getPrintHeight() |
JRPropertiesMap |
getPropertiesMap()
Returns this object's properties map.
|
JRStyle |
getStyle()
Returns this object's style.
|
String |
getStyleNameReference()
Returns the name of an external style which is to be used by this object.
|
protected JRTemplateFrame |
getTemplateFrame() |
protected int |
getTopPadding() |
JRFillCellContents |
getTransformedContents(int newWidth,
int newHeight,
CrosstabColumnPositionEnum xPosition,
CrosstabRowPositionEnum yPosition) |
int |
getVerticalSpan() |
int |
getWidth()
Returns the computed cell width.
|
JRFillCellContents |
getWorkingClone() |
boolean |
hasProperties()
Checks whether the object has any properties.
|
protected void |
initConditionalStyles()
Find all styles containing conditional styles which are referenced by elements in this band.
|
protected void |
prepare(int availableHeight) |
void |
releaseWorkingClone() |
protected void |
setBox(JRLineBox box) |
protected void |
setCellProperties(JRTemplatePrintFrame printCell) |
protected void |
setHeight(int height) |
void |
setHorizontalSpan(int horizontalSpan) |
void |
setPrintProperty(String name,
String value) |
void |
setStyle(JRStyle style)
Set the style on the object.
|
void |
setStyleNameReference(String name)
Set the name of an external style that is to be used by the object.
|
void |
setVerticalPositionType(CrosstabRowPositionEnum positionType) |
void |
setVerticalSpan(int span) |
protected void |
setWidth(int width) |
void |
setX(int x) |
void |
setY(int y) |
protected void |
stretchTo(int stretchHeight) |
protected void |
verticallyPositionElements(JRTemplatePrintFrame printCell) |
_initElements, _prepareElements, _removeBlankElements, _setStretchHeight, addSubElements, buildConsolidatedStyle, calculateStretchHeight, collectConditionalStyle, evaluateConditionalStyle, evaluateConditionalStyles, fillElements, getEvaluatedConditionalStyle, getFirstY, getStretchHeight, initDeepElements, initElements, initFill, isCurrentOverflow, isCurrentOverflowAllowed, isLegacyElementStretchEnabled, moveBandBottomElements, prepareElements, prepareStretchHeight, removeBlankElements, resetElements, rewind, setElementOriginProvider, setStretchHeight, stretchElements, stretchElementsToContainer, stretchElementsToElementGroup, willOverflowclone, clone, getChildren, getElementByKey, getElementGroup, getElements, getStretchHeightDiff, reset, visitequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildren, getElementByKey, getElementGroup, getElementsvisitclonepublic static final String EXCEPTION_MESSAGE_KEY_CANNOT_SHRINK_CONTENTS
public JRFillCellContents(JRBaseFiller filler, JRCellContents cell, String cellType, JRFillCrosstabObjectFactory factory)
protected JRFillCellContents(JRFillCellContents cellContents, JRFillCloneFactory factory)
public Color getBackcolor()
JRCellContentsThe cell is filled with the background color only if the cell has opaque mode.
getBackcolor in interface JRCellContentspublic JRLineBox getLineBox()
getLineBox in interface JRBoxContainerprotected void setBox(JRLineBox box)
public int getHeight()
JRCellContentsgetHeight in interface JRCellContentsJRCellContents.NOT_CALCULATEDpublic int getWidth()
JRCellContentsgetWidth in interface JRCellContentsJRCellContents.NOT_CALCULATEDprotected void setHeight(int height)
protected void setWidth(int width)
public JRFillCellContents getBoxContents(boolean left, boolean right, boolean top)
public JRFillCellContents getTransformedContents(int newWidth, int newHeight, CrosstabColumnPositionEnum xPosition, CrosstabRowPositionEnum yPosition) throws JRException
JRExceptionprotected void prepare(int availableHeight)
throws JRException
JRExceptionprotected JRPrintFrame fill() throws JRException
JRExceptionprotected void setCellProperties(JRTemplatePrintFrame printCell)
protected JRTemplateFrame getTemplateFrame()
protected JROrigin getOrigin()
protected void verticallyPositionElements(JRTemplatePrintFrame printCell)
protected int getPrintHeight()
protected void stretchTo(int stretchHeight)
protected int getContainerHeight()
JRFillElementContainergetContainerHeight in class JRFillElementContainerprotected int getActualContainerHeight()
JRFillElementContainergetActualContainerHeight in class JRFillElementContainerprotected int getTopPadding()
protected int getBottomPadding()
public JRFillCloneable createClone()
public JRFillCloneable createClone(JRFillCloneFactory factory)
JRFillCloneablecreateClone in interface JRFillCloneablecreateClone in class JRFillElementGroupfactory - the clone factory to use while creating the clonepublic JRFillCellContents getWorkingClone()
public void releaseWorkingClone()
public void setX(int x)
public void setY(int y)
public int getVerticalSpan()
public void setVerticalSpan(int span)
public void setVerticalPositionType(CrosstabRowPositionEnum positionType)
public int getHorizontalSpan()
public void setHorizontalSpan(int horizontalSpan)
protected void evaluate(byte evaluation)
throws JRException
evaluate in class JRFillElementContainerJRExceptionpublic JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider in interface JRStyleContainerpublic JRStyle getStyle()
JRStyleContainergetStyle in interface JRStyleContainerprotected void initConditionalStyles()
JRFillElementContainerinitConditionalStyles in class JRFillElementContainerpublic ModeEnum getModeValue()
JRCellContentsgetModeValue in interface JRCellContentsModeEnum.OPAQUE
or ModeEnum.TRANSPARENTpublic String getStyleNameReference()
JRStyleContainertemplates and are resolved
at fill time.
This attribute is only effective if no direct style (as returned by getStyle()
is specified for this object.getStyleNameReference in interface JRStyleContainerpublic void setStyle(JRStyle style)
JRStyleSettersetStyle in interface JRStyleSetterstyle - the style to be used by the objectpublic void setStyleNameReference(String name)
JRStyleSettersetStyleNameReference in interface JRStyleSettername - the name of an external stylepublic Color getDefaultLineColor()
getDefaultLineColor in interface JRBoxContainerpublic boolean hasProperties()
JRPropertiesHolderhasProperties in interface JRPropertiesHolderpublic JRPropertiesMap getPropertiesMap()
JRPropertiesHoldergetPropertiesMap in interface JRPropertiesHolderpublic JRPropertiesHolder getParentProperties()
JRPropertiesHoldergetParentProperties in interface JRPropertiesHoldernull if no parentprotected void addElement(int index,
JRFillElement element)
protected void addHtmlClass(String className)
Copyright © 2017. All rights reserved.