public abstract class JRBaseElement extends Object implements JRElement, Serializable, JRChangeEventsSupport
| Modifier | Constructor and Description |
|---|---|
protected |
JRBaseElement(JRDefaultStyleProvider defaultStyleProvider) |
protected |
JRBaseElement(JRElement element,
JRBaseObjectFactory factory)
Initializes basic properties of the element.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
Object |
clone(JRElementGroup parentGroup) |
JRElement |
clone(JRElementGroup parentGroup,
int y) |
Color |
getBackcolor() |
protected JRStyle |
getBaseStyle() |
JRDefaultStyleProvider |
getDefaultStyleProvider() |
JRElementGroup |
getElementGroup()
Indicates the logical group that the element belongs to.
|
JRPropertyChangeSupport |
getEventSupport()
Returns the property change support object for this instance.
|
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.
|
protected StyleResolver |
getStyleResolver() |
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(ModeEnum modeValue)
Sets the element transparency mode.
|
void |
setPositionType(PositionTypeEnum positionTypeValue)
Sets the position type for the element.
|
void |
setPrintInFirstWholeBand(boolean isPrint)
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 isPrint)
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 isRemoveLine)
Specifies whether the remaining blank space appearing when the value is not printed will be removed.
|
void |
setStretchType(StretchTypeEnum stretchTypeValue)
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.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcollectExpressionsvisitpublic static final String PROPERTY_POSITION_TYPE
public static final String PROPERTY_PRINT_IN_FIRST_WHOLE_BAND
public static final String PROPERTY_PRINT_REPEATED_VALUES
public static final String PROPERTY_PRINT_WHEN_DETAIL_OVERFLOWS
public static final String PROPERTY_REMOVE_LINE_WHEN_BLANK
public static final String PROPERTY_STRETCH_TYPE
public static final String PROPERTY_WIDTH
public static final String PROPERTY_X
protected UUID uuid
protected String key
protected PositionTypeEnum positionTypeValue
protected StretchTypeEnum stretchTypeValue
protected boolean isPrintRepeatedValues
protected ModeEnum modeValue
protected int x
protected int y
protected int width
protected int height
protected boolean isRemoveLineWhenBlank
protected boolean isPrintInFirstWholeBand
protected boolean isPrintWhenDetailOverflows
protected Color forecolor
protected Color backcolor
protected JRExpression printWhenExpression
protected JRGroup printWhenGroupChanges
protected JRElementGroup elementGroup
protected final JRDefaultStyleProvider defaultStyleProvider
protected JRStyle parentStyle
protected String parentStyleNameReference
protected JRBaseElement(JRDefaultStyleProvider defaultStyleProvider)
protected JRBaseElement(JRElement element, JRBaseObjectFactory factory)
element - an element whose properties are copied to this element. Usually it is a
JRDesignElement that must be transformed into an
JRBaseElement at compile time.factory - a factory used in the compile processpublic JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider in interface JRStyleContainerprotected StyleResolver getStyleResolver()
protected JRStyle getBaseStyle()
public UUID getUUID()
getUUID in interface JRIdentifiablepublic String getKey()
JRElementgetKey in interface JRCommonElementgetKey in interface JRElementpublic PositionTypeEnum getPositionTypeValue()
JRElementgetPositionTypeValue in interface JRElementpublic void setPositionType(PositionTypeEnum positionTypeValue)
JRElementsetPositionType in interface JRElementpositionTypeValue - the position typepublic StretchTypeEnum getStretchTypeValue()
JRElementgetStretchTypeValue in interface JRElementStretchTypeEnumpublic void setStretchType(StretchTypeEnum stretchTypeValue)
JRElementsetStretchType in interface JRElementstretchTypeValue - a value representing one of the stretch type constants in StretchTypeEnumpublic boolean isPrintRepeatedValues()
JRElementisPrintRepeatedValues in interface JRElementJRElement.isRemoveLineWhenBlank(),
JRElement.isPrintInFirstWholeBand()public void setPrintRepeatedValues(boolean isPrintRepeatedValues)
setPrintRepeatedValues in interface JRElementpublic ModeEnum getModeValue()
JRCommonElementgetModeValue in interface JRCommonElementpublic ModeEnum getOwnModeValue()
getOwnModeValue in interface JRCommonElementpublic void setMode(ModeEnum modeValue)
JRCommonElementsetMode in interface JRCommonElementpublic int getX()
JRElementpublic void setX(int x)
JRElementpublic int getY()
JRElementpublic int getWidth()
getWidth in interface JRCommonElementpublic int getHeight()
getHeight in interface JRCommonElementpublic boolean isRemoveLineWhenBlank()
JRElementisRemoveLineWhenBlank in interface JRElementpublic void setRemoveLineWhenBlank(boolean isRemoveLine)
JRElementsetRemoveLineWhenBlank in interface JRElementpublic boolean isPrintInFirstWholeBand()
JRElementisPrintInFirstWholeBand in interface JRElementJRElement.isPrintRepeatedValues()public void setPrintInFirstWholeBand(boolean isPrint)
JRElementsetPrintInFirstWholeBand in interface JRElementJRElement.isPrintRepeatedValues()public boolean isPrintWhenDetailOverflows()
JRElementisPrintWhenDetailOverflows in interface JRElementpublic void setPrintWhenDetailOverflows(boolean isPrint)
JRElementsetPrintWhenDetailOverflows in interface JRElementpublic Color getForecolor()
getForecolor in interface JRCommonElementpublic Color getOwnForecolor()
getOwnForecolor in interface JRCommonElementpublic void setForecolor(Color forecolor)
setForecolor in interface JRCommonElementpublic Color getBackcolor()
getBackcolor in interface JRCommonElementpublic Color getOwnBackcolor()
getOwnBackcolor in interface JRCommonElementpublic void setBackcolor(Color backcolor)
setBackcolor in interface JRCommonElementpublic JRExpression getPrintWhenExpression()
JRElementgetPrintWhenExpression in interface JRElementpublic JRGroup getPrintWhenGroupChanges()
JRElementgetPrintWhenGroupChanges in interface JRElementJRElement.isPrintRepeatedValues()public JRElementGroup getElementGroup()
JRElementgetElementGroup in interface JRElementStretchTypeEnumpublic 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 JRPropertyChangeSupport getEventSupport()
JRChangeEventsSupportgetEventSupport in interface JRChangeEventsSupportpublic Object clone()
clone in interface JRCloneableclone in class Objectpublic Object clone(JRElementGroup parentGroup)
public JRElement clone(JRElementGroup parentGroup, int y)
public boolean hasProperties()
JRPropertiesHolderhasProperties in interface JRPropertiesHolderpublic JRPropertiesMap getPropertiesMap()
JRPropertiesHoldergetPropertiesMap in interface JRPropertiesHolderpublic JRPropertiesHolder getParentProperties()
JRPropertiesHoldergetParentProperties in interface JRPropertiesHoldernull if no parentpublic JRPropertyExpression[] getPropertyExpressions()
JRElementgetPropertyExpressions in interface JRElementCopyright © 2017. All rights reserved.