public abstract class ElementDecorator extends Object implements JRElement
| Constructor and Description |
|---|
ElementDecorator(JRElement decorated) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
Object |
clone(JRElementGroup parentGroup) |
JRElement |
clone(JRElementGroup parentGroup,
int y) |
void |
collectExpressions(JRExpressionCollector collector) |
Color |
getBackcolor() |
JRDefaultStyleProvider |
getDefaultStyleProvider() |
JRElementGroup |
getElementGroup()
Indicates the logical group that the element belongs to.
|
Color |
getForecolor() |
int |
getHeight() |
String |
getKey()
Returns the string value that uniquely identifies the element.
|
ModeEnum |
getModeValue()
Returns the element transparency mode.
|
Color |
getOwnBackcolor() |
Color |
getOwnForecolor() |
ModeEnum |
getOwnModeValue() |
JRPropertiesHolder |
getParentProperties()
Returns the parent properties holder, whose properties are used as defaults
for this object.
|
PositionTypeEnum |
getPositionTypeValue()
Returns the position type for the element
|
JRExpression |
getPrintWhenExpression()
Gets the expression that is evaluated in order to decide if the element should be displayed.
|
JRGroup |
getPrintWhenGroupChanges()
Returns the group for which an element with a printRepeatedValues attribute set to true will be redisplayed
even if the value has not changed.
|
JRPropertiesMap |
getPropertiesMap()
Returns this object's properties map.
|
JRPropertyExpression[] |
getPropertyExpressions()
Returns the list of dynamic/expression-based properties for this report element.
|
StretchTypeEnum |
getStretchTypeValue()
Indicates the stretch type for the element
|
JRStyle |
getStyle()
Returns this object's style.
|
String |
getStyleNameReference()
Returns the name of an external style which is to be used by this object.
|
UUID |
getUUID() |
int |
getWidth() |
int |
getX()
Gets the the section relative horizontal offset of the element top left corner.
|
int |
getY()
Gets the the section relative vertical offset of the element top left corner.
|
boolean |
hasProperties()
Checks whether the object has any properties.
|
boolean |
isPrintInFirstWholeBand()
Returns true if an element with a printRepeatedValues attribute set to true will be redisplayed for every
new page or column that is not an overflow from a previous page or column.
|
boolean |
isPrintRepeatedValues()
Specifies if the element value will be printed for every iteration, even if its value has not changed.
|
boolean |
isPrintWhenDetailOverflows()
If this is set to true, the element will be reprinted on the next page if the band does not fit in the current page.
|
boolean |
isRemoveLineWhenBlank()
Returns true if the remaining blank space appearing when the value is not printed will be removed.
|
void |
setBackcolor(Color backcolor) |
void |
setForecolor(Color forecolor) |
void |
setMode(byte mode)
Deprecated.
|
void |
setMode(Byte mode)
Deprecated.
|
void |
setMode(ModeEnum mode)
Sets the element transparency mode.
|
void |
setPositionType(byte positionType)
Deprecated.
|
void |
setPositionType(PositionTypeEnum positionType)
Sets the position type for the element.
|
void |
setPrintInFirstWholeBand(boolean isPrintInFirstWholeBand)
Specifies whether an element with a printRepeatedValues attribute set to true should be redisplayed for every
new page or column that is not an overflow from a previous page or column.
|
void |
setPrintRepeatedValues(boolean isPrintRepeatedValues) |
void |
setPrintWhenDetailOverflows(boolean isPrintWhenDetailOverflows)
If this is set to true, the element will be reprinted on the next page if the band does not fit in the current page.
|
void |
setRemoveLineWhenBlank(boolean isRemoveLineWhenBlank)
Specifies whether the remaining blank space appearing when the value is not printed will be removed.
|
void |
setStretchType(byte stretchType)
Deprecated.
|
void |
setStretchType(StretchTypeEnum stretchTypeEnum)
Specifies how the engine should treat a missing image.
|
void |
setWidth(int width) |
void |
setX(int x)
Sets the the section relative horizontal offset of the element top left corner.
|
void |
visit(JRVisitor visitor) |
public ElementDecorator(JRElement decorated)
public Object clone()
clone in interface JRCloneableclone in class Objectpublic void collectExpressions(JRExpressionCollector collector)
collectExpressions in interface JRElementpublic JRElementGroup getElementGroup()
JRElementgetElementGroup in interface JRElementStretchTypeEnumpublic UUID getUUID()
getUUID in interface JRIdentifiablepublic String getKey()
JRElementgetKey in interface JRCommonElementgetKey in interface JRElementpublic PositionTypeEnum getPositionTypeValue()
JRElementgetPositionTypeValue in interface JRElementpublic JRExpression getPrintWhenExpression()
JRElementgetPrintWhenExpression in interface JRElementpublic JRGroup getPrintWhenGroupChanges()
JRElementgetPrintWhenGroupChanges in interface JRElementJRElement.isPrintRepeatedValues()public JRPropertyExpression[] getPropertyExpressions()
JRElementgetPropertyExpressions in interface JRElementpublic StretchTypeEnum getStretchTypeValue()
JRElementgetStretchTypeValue in interface JRElementStretchTypeEnumpublic int getX()
JRElementpublic int getY()
JRElementpublic boolean isPrintInFirstWholeBand()
JRElementisPrintInFirstWholeBand in interface JRElementJRElement.isPrintRepeatedValues()public boolean isPrintRepeatedValues()
JRElementisPrintRepeatedValues in interface JRElementJRElement.isRemoveLineWhenBlank(),
JRElement.isPrintInFirstWholeBand()public boolean isPrintWhenDetailOverflows()
JRElementisPrintWhenDetailOverflows in interface JRElementpublic boolean isRemoveLineWhenBlank()
JRElementisRemoveLineWhenBlank in interface JRElement@Deprecated public void setPositionType(byte positionType)
public void setPositionType(PositionTypeEnum positionType)
JRElementsetPositionType in interface JRElementpositionType - the position typepublic void setPrintInFirstWholeBand(boolean isPrintInFirstWholeBand)
JRElementsetPrintInFirstWholeBand in interface JRElementJRElement.isPrintRepeatedValues()public void setPrintRepeatedValues(boolean isPrintRepeatedValues)
setPrintRepeatedValues in interface JRElementpublic void setPrintWhenDetailOverflows(boolean isPrintWhenDetailOverflows)
JRElementsetPrintWhenDetailOverflows in interface JRElementpublic void setRemoveLineWhenBlank(boolean isRemoveLineWhenBlank)
JRElementsetRemoveLineWhenBlank in interface JRElement@Deprecated public void setStretchType(byte stretchType)
public void setStretchType(StretchTypeEnum stretchTypeEnum)
JRElementsetStretchType in interface JRElementstretchTypeEnum - a value representing one of the stretch type constants in StretchTypeEnumpublic void setX(int x)
JRElementpublic Object clone(JRElementGroup parentGroup)
public JRElement clone(JRElementGroup parentGroup, int y)
public void visit(JRVisitor visitor)
visit in interface JRVisitablepublic Color getBackcolor()
getBackcolor in interface JRCommonElementpublic Color getForecolor()
getForecolor in interface JRCommonElementpublic int getHeight()
getHeight in interface JRCommonElementpublic ModeEnum getModeValue()
JRCommonElementgetModeValue in interface JRCommonElementpublic Color getOwnBackcolor()
getOwnBackcolor in interface JRCommonElementpublic Color getOwnForecolor()
getOwnForecolor in interface JRCommonElementpublic ModeEnum getOwnModeValue()
getOwnModeValue in interface JRCommonElementpublic int getWidth()
getWidth in interface JRCommonElementpublic void setBackcolor(Color backcolor)
setBackcolor in interface JRCommonElementpublic void setForecolor(Color forecolor)
setForecolor in interface JRCommonElement@Deprecated public void setMode(byte mode)
@Deprecated public void setMode(Byte mode)
public void setMode(ModeEnum mode)
JRCommonElementsetMode in interface JRCommonElementpublic JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider in interface JRStyleContainerpublic JRStyle getStyle()
JRStyleContainergetStyle in interface JRStyleContainerpublic 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 JRPropertiesHolder getParentProperties()
JRPropertiesHoldergetParentProperties in interface JRPropertiesHoldernull if no parentpublic JRPropertiesMap getPropertiesMap()
JRPropertiesHoldergetPropertiesMap in interface JRPropertiesHolderpublic boolean hasProperties()
JRPropertiesHolderhasProperties in interface JRPropertiesHolderCopyright © 2017. All rights reserved.