public abstract class ReportComponent extends java.lang.Object implements java.io.Serializable, com.inet.report.ReferenceHolder, NodeParser
Modifier and Type | Method and Description |
---|---|
int |
getBackColor()
Returns the background color of this report element as ABGR, i.e. 0x000000FF for red.
|
FormulaField |
getBackColorFormula()
Returns the background color formula of this report element.
|
int |
getHeight()
Returns the height of this report element.
|
FormulaField |
getKeepTogetherFormula()
Returns the formula for the property 'keep together'.
|
java.util.List<FormulaField> |
getPropertyFormulas()
Returns a list with all property formulas that are set for this report element.
|
abstract java.util.List<? extends ReportComponent> |
getSubComponents()
Returns all
ReportComponent s that are descendants of this one. |
FormulaField |
getSuppressFormula()
Returns the formula for the property 'suppress'.
|
int |
getType()
Returns the type of this report element.
|
int |
getWidth()
Returns the width of this report element.
|
int |
getX()
Returns the x position of the left upper corner of the element in the report.
|
int |
getY()
Returns the y position of the left upper corner of the element in the report.
|
abstract int |
indexOf()
Returns the position of this object in the parent collection.
|
boolean |
isKeepTogether()
Returns the value of the property 'keep together'.
|
boolean |
isSuppress()
Returns the value of the property 'suppress'.
|
java.lang.String |
paramString()
Returns a string identifying this report component.
|
void |
setBackColor(int backColor)
Sets the background color of this report element.
|
void |
setBackColorFormula(FormulaField newFormula)
Sets the background color of this report element.
|
void |
setHeight(int height)
Sets the height of this report element.
|
void |
setKeepTogether(boolean newValue)
Sets the value of the property 'keep together'.
|
void |
setKeepTogetherFormula(FormulaField newFormula)
Sets the formula for the property 'keep together'.
|
void |
setSuppress(boolean newValue)
Sets the value of the property 'suppress'.
|
void |
setSuppressFormula(FormulaField newFormula)
Sets the formula for the property 'suppress'.
|
void |
setWidth(int width)
Sets the width of this report element.
|
void |
setX(int x)
Sets the x position of the left upper corner of the element in the report.
|
void |
setY(int y)
Sets the y position of the left upper corner of the element in the report.
|
isDOMParser, parseDOM, parseElement, parseEndElement, parseText
public int getType()
Element.FIELD
,
Element.TEXT
,
Element.LINE
,
Element.BOX
,
Element.SUBREPORT
,
Element.PICTURE
,
Element.CHART
,
Element.CROSSTAB
,
Element.DATABASE_PICTURE
,
Element.PARAGRAPH
,
Element.TEXTPART
,
Element.FIELDPART
,
Text
,
FieldElement
,
Line
,
Box
,
Chart2
,
Picture
,
Subreport
,
DatabasePicture
,
CrossTab
,
Paragraph
,
TextPart
,
FieldPart
public abstract int indexOf() throws ReportException
ReportException
- If there is no parent or the object does not exist.public void setX(int x)
x
- The x position in twips.java.lang.IllegalArgumentException
- if x is negativepublic int getX()
public void setY(int y)
y
- position in twips.java.lang.IllegalArgumentException
- if y is negativepublic int getY()
public void setWidth(int width)
width
- The width in twips.java.lang.IllegalArgumentException
- if width is negativepublic int getWidth()
java.lang.UnsupportedOperationException
- if this element spans multiple sectionspublic void setHeight(int height)
height
- The height in twips.java.lang.IllegalArgumentException
- if height is negativepublic int getHeight()
java.lang.UnsupportedOperationException
- if this element spans multiple sectionspublic void setSuppress(boolean newValue)
newValue
- The new value of the property 'suppress'.public boolean isSuppress()
public void setSuppressFormula(FormulaField newFormula)
newFormula
- The new formula for the property 'suppress'.public FormulaField getSuppressFormula()
setSuppress(boolean)
,
setSuppressFormula(com.inet.report.FormulaField)
public void setBackColor(int backColor)
backColor
- The new ABGR value of the background color.ColorUtils.toCcColor(Color)
,
ColorUtils.toJavaColor(int)
public int getBackColor()
ColorUtils.toCcColor(Color)
,
ColorUtils.toJavaColor(int)
public void setBackColorFormula(FormulaField newFormula)
newFormula
- Sets the new formula for 'back color'.public FormulaField getBackColorFormula()
FormulaField
The formula of the property 'back color'.ColorUtils.toCcColor(Color)
,
ColorUtils.toJavaColor(int)
public boolean isKeepTogether()
public void setKeepTogether(boolean newValue)
newValue
- The new value of the property 'keep together'.public FormulaField getKeepTogetherFormula()
public void setKeepTogetherFormula(FormulaField newFormula)
newFormula
- The new formula for the property 'keep together'.public java.util.List<FormulaField> getPropertyFormulas()
ReportComponent
of this one. To get the property formulas for descendant ReportComponent
use getSubComponents()
public abstract java.util.List<? extends ReportComponent> getSubComponents()
ReportComponent
s that are descendants of this one. E.G. this will return all Element
of a Section
. But it's as well useful for CrossTab
s or Text
elements which have
additional elements.null
if the component has no descendantspublic java.lang.String paramString()
Copyright © 1999-2020 by i-net software GmbH