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, currentOverflowWithElements, currentOverflowWithWhiteSpace, deepElements, evaluatedStyles, expressionEvaluator, filler, hasPrintWhenOverflowElement, isOverflow, stylesToEvaluate, willOverflowWithElements, willOverflowWithWhiteSpace
bottomElementInGroup, children, elementGroup, elements, topElementInGroup
NOT_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.
|
boolean |
isSplitTypePreventInhibited(boolean isTopLevelCall) |
protected void |
prepare(int availableHeight) |
void |
releaseWorkingClone() |
protected void |
setBox(JRLineBox box) |
protected void |
setCellProperties(JRTemplatePrintFrame printCell) |
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) |
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, willOverflow
clone, clone, getChildren, getElementByKey, getElementGroup, getElements, getStretchHeightDiff, reset, visit
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildren, getElementByKey, getElementGroup, getElements
visit
clone
public 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()
JRCellContents
The cell is filled with the background color only if the cell has opaque mode.
getBackcolor
in interface JRCellContents
public JRLineBox getLineBox()
getLineBox
in interface JRBoxContainer
protected void setBox(JRLineBox box)
public int getHeight()
JRCellContents
getHeight
in interface JRCellContents
JRCellContents.NOT_CALCULATED
public int getWidth()
JRCellContents
getWidth
in interface JRCellContents
JRCellContents.NOT_CALCULATED
public JRFillCellContents getBoxContents(boolean left, boolean right, boolean top)
public JRFillCellContents getTransformedContents(int newWidth, int newHeight, CrosstabColumnPositionEnum xPosition, CrosstabRowPositionEnum yPosition) throws JRException
JRException
protected void prepare(int availableHeight) throws JRException
JRException
protected JRPrintFrame fill() throws JRException
JRException
protected 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()
JRFillElementContainer
getContainerHeight
in class JRFillElementContainer
protected int getActualContainerHeight()
JRFillElementContainer
getActualContainerHeight
in class JRFillElementContainer
protected int getTopPadding()
protected int getBottomPadding()
public JRFillCloneable createClone()
public JRFillCloneable createClone(JRFillCloneFactory factory)
JRFillCloneable
createClone
in interface JRFillCloneable
createClone
in class JRFillElementGroup
factory
- 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 JRFillElementContainer
JRException
public JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider
in interface JRStyleContainer
public JRStyle getStyle()
JRStyleContainer
getStyle
in interface JRStyleContainer
protected void initConditionalStyles()
JRFillElementContainer
initConditionalStyles
in class JRFillElementContainer
public ModeEnum getModeValue()
JRCellContents
getModeValue
in interface JRCellContents
ModeEnum.OPAQUE
or ModeEnum.TRANSPARENT
public String getStyleNameReference()
JRStyleContainer
templates
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 JRStyleContainer
public void setStyle(JRStyle style)
JRStyleSetter
setStyle
in interface JRStyleSetter
style
- the style to be used by the objectpublic void setStyleNameReference(String name)
JRStyleSetter
setStyleNameReference
in interface JRStyleSetter
name
- the name of an external stylepublic Color getDefaultLineColor()
getDefaultLineColor
in interface JRBoxContainer
public boolean hasProperties()
JRPropertiesHolder
hasProperties
in interface JRPropertiesHolder
public JRPropertiesMap getPropertiesMap()
JRPropertiesHolder
getPropertiesMap
in interface JRPropertiesHolder
public JRPropertiesHolder getParentProperties()
JRPropertiesHolder
getParentProperties
in interface JRPropertiesHolder
null
if no parentprotected void addElement(int index, JRFillElement element)
protected void addHtmlClass(String className)
public boolean isSplitTypePreventInhibited(boolean isTopLevelCall)
isSplitTypePreventInhibited
in interface FillContainerContext
Copyright © 2019 TIBCO Software Inc.. All rights reserved.