Klasse CrossTabHeader
java.lang.Object
com.inet.report.CrossTabHeader
- Alle implementierten Schnittstellen:
NodeParser, Serializable
A single CrossTab header. There are headers for rows (left) and columns (top).
- Seit:
- 12.0
- Siehe auch:
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungintReturns the background color of the header as ABGR, i.e. 0x000000FF for red.@Nullable FormulaFieldReturns the formula of the background color of the header as ABGR, i.e. 0x000000FF for red.@Nullable FieldgetField()The field of the grouping.@Nullable FieldElementReturns the field element of this row.@Nullable GroupgetGroup()Returns the group object of this row.intPosition of this header, is used from designer.booleanReturns whether group labels should be suppressed (true) or not (false).@Nullable FormulaFieldReturns the formula for the property 'suppress group labels'.booleanReturns whether total of this header should be suppressedtrueor not (false).@Nullable FormulaFieldReturns the formula for the property 'suppress total'.@Nonnull TextgetText()Returns the text element of this row.@Nonnull TextgetText(int sumIdx) Get the total value label of this row for the xth summary operation.intgetWidth()Position of this header, is used from designer.intgetX()Position of this header, is used from designer.intgetY()Position of this header, is used from designer.booleanFOR INTERNAL USE ONLY Internal method for reading report XMLbooleanisRow()If this header is currently a row header or a column header.voidFOR INTERNAL USE ONLY Internal method for reading report XMLparseElement(com.inet.report.parser.XMLTag group, String tag, Attributes atts, Map<String, Object> parserMap) FOR INTERNAL USE ONLY Internal method for reading report XMLvoidparseEndElement(com.inet.report.parser.XMLTag group, String tag, Map<String, Object> parserMap) FOR INTERNAL USE ONLY Internal method for reading report XMLvoidFOR INTERNAL USE ONLY Internal method for reading report XMLvoidsetBackColor(int backColor) Sets the background color of the header.
You can use the ABGR value (i.e. 0x000000FF for red) or use the color constants in class RDC.voidsetBackColorFormula(FormulaField backColorFormula) Sets the formula of the background color of the header.
You can use the ABGR value (i.e. 0x000000FF for red) or one of the color constants in class RDC.voidSet the field of grouping.voidsetSuppressGroupLabel(boolean suppressGroupLabel) Sets whether group labels should be suppressed (true) or not (false).voidsetSuppressGroupLabelFormula(FormulaField newFormula) Sets the formula for the property 'suppress group labels'.voidsetSuppressTotal(boolean suppressTotal) Sets whether sub total should be suppressed (true) or not (false).voidsetSuppressTotalFormula(FormulaField newFormula) Sets the formula for the property 'suppress sub totals'.
-
Methodendetails
-
isRow
public boolean isRow()If this header is currently a row header or a column header.- Gibt zurück:
- true, if it is a row header.
- Seit:
- 12.0
-
getX
public int getX()Position of this header, is used from designer.- Gibt zurück:
- the x position
- Seit:
- 12.0
-
getY
public int getY()Position of this header, is used from designer.- Gibt zurück:
- the y position
- Seit:
- 12.0
-
getWidth
public int getWidth()Position of this header, is used from designer.- Gibt zurück:
- the width
- Seit:
- 12.0
-
getHeight
public int getHeight()Position of this header, is used from designer.- Gibt zurück:
- the height
- Seit:
- 12.0
-
getSuppressTotal
public boolean getSuppressTotal()Returns whether total of this header should be suppressedtrueor not (false).- Gibt zurück:
- True if the sub total is suppressed or not.
- Seit:
- 12.0
- Siehe auch:
-
getSuppressTotalFormula
Returns the formula for the property 'suppress total'. If this property is enabled total of this header will not be printed.- Gibt zurück:
- The FormulaField of suppress sub total formula.
- Seit:
- 12.0
-
setSuppressTotal
public void setSuppressTotal(boolean suppressTotal) Sets whether sub total should be suppressed (true) or not (false).- Parameter:
suppressTotal- True if sub total should be suppressed else false.- Seit:
- 12.0
-
setSuppressTotalFormula
Sets the formula for the property 'suppress sub totals'. If this property is enabled group label of the row will not be printed.- Parameter:
newFormula- The new formula for the property 'suppress sub totals'.- Seit:
- 12.0
-
setSuppressGroupLabel
public void setSuppressGroupLabel(boolean suppressGroupLabel) Sets whether group labels should be suppressed (true) or not (false).- Parameter:
suppressGroupLabel- True if group label should be suppressed else false.- Seit:
- 12.0
-
setSuppressGroupLabelFormula
Sets the formula for the property 'suppress group labels'. If this property is enabled group label of the row will not be printed.- Parameter:
newFormula- The new formula for the property 'suppress group labels'.- Seit:
- 12.0
-
getSuppressGroupLabel
public boolean getSuppressGroupLabel()Returns whether group labels should be suppressed (true) or not (false).- Gibt zurück:
- boolean True if the group labels is suppressed or not.
- Seit:
- 12.0
- Siehe auch:
-
getSuppressGroupLabelFormula
Returns the formula for the property 'suppress group labels'. If this property is enabled group label of the row will not be printed.- Gibt zurück:
- The formulaField of Suppress Group Label Formula.
- Seit:
- 12.0
-
getGroup
Returns the group object of this row. The group will benullif this row is a total row. Set the group options of this row with the returned group object, i.e. the customize group name options and sort options.- Gibt zurück:
- Group The group object of this row
- Seit:
- 12.0
- Siehe auch:
-
getField
-
setField
Set the field of grouping.- Parameter:
field- the new field, can not be null- Seit:
- 12.0
-
getText
Returns the text element of this row. This text will displayed as total text of this row. You can use this method to set your own total text.- Gibt zurück:
- Total text of this row.
- Seit:
- 12.0
- Siehe auch:
-
getText
Get the total value label of this row for the xth summary operation.- Parameter:
sumIdx- the summary index- Gibt zurück:
- the text
- Seit:
- 25.4
-
getFieldElement
Returns the field element of this row. You can use this method to format the fieldelement of this row.- Gibt zurück:
- FieldElement of this row.
- Seit:
- 12.0
-
setBackColor
public void setBackColor(int backColor) Sets the background color of the header.
You can use the ABGR value (i.e. 0x000000FF for red) or use the color constants in class RDC.- Parameter:
backColor- the new ABGR value of the grand total background color.- Seit:
- 12.0
- Siehe auch:
-
getBackColor
public int getBackColor()Returns the background color of the header as ABGR, i.e. 0x000000FF for red.- Gibt zurück:
- ABGR value of the grand total row background color or -1 if cross table contains no rows.
- Seit:
- 12.0
- Siehe auch:
-
setBackColorFormula
Sets the formula of the background color of the header.
You can use the ABGR value (i.e. 0x000000FF for red) or one of the color constants in class RDC.- Parameter:
backColorFormula- the new ABGR value of the grand total background color.- Seit:
- 12.0
- Siehe auch:
-
getBackColorFormula
Returns the formula of the background color of the header as ABGR, i.e. 0x000000FF for red.- Gibt zurück:
- ABGR value of the grand total row background color or -1 if cross table contains no rows.
- Seit:
- 12.0
- Siehe auch:
-
isDOMParser
public boolean isDOMParser()FOR INTERNAL USE ONLY Internal method for reading report XMLReturns whether this node is to be read via a DOM parser.
- Angegeben von:
isDOMParserin SchnittstelleNodeParser- Gibt zurück:
- true if this node is to be read via a DOM parser, false otherwise.
- Seit:
- 12.0
-
parseDOM
FOR INTERNAL USE ONLY Internal method for reading report XMLParses the node.
- Angegeben von:
parseDOMin SchnittstelleNodeParser- Parameter:
node- the nodeparserMap- The map of current Parser.- Löst aus:
FatalParserException- if an exception occurs which causes the report to not be able to be read: causes the abortion of the reading of the report.- Seit:
- 12.0
-
parseElement
public NodeParser parseElement(com.inet.report.parser.XMLTag group, String tag, Attributes atts, Map<String, Object> parserMap) throws FatalParserExceptionFOR INTERNAL USE ONLY Internal method for reading report XMLParses an XML node with the given information, and returns either a sub-element which was created as a result, or null if no sub-element was created, i.e. the information was applied to the ReportComponent itself. Note that the parsing is highly tolerant, i.e. exceptions are intercepted and suppressed if at all possible.
- Angegeben von:
parseElementin SchnittstelleNodeParser- Parameter:
group- XMLTag of the current node to be parsed, or null if there is no such current group. An XMLTag is a group of nodes bundled together, usually it is a Properties node such as CommonProperties, BorderProperties, etc.tag- The XMLTag to be parsedatts- The set of attributes in the current XMLTagparserMap- The map of current Parser.- Gibt zurück:
- The NodeParser sub-element if one needed to be created, or null if none was created.
- Löst aus:
FatalParserException- if an exception occurs which causes the report to not be able to be read: causes the abortion of the reading of the report.- Seit:
- 12.0
-
parseEndElement
public void parseEndElement(com.inet.report.parser.XMLTag group, String tag, Map<String, Object> parserMap) throws FatalParserExceptionFOR INTERNAL USE ONLY Internal method for reading report XMLReceive notification of the end of an XML tag.
- Angegeben von:
parseEndElementin SchnittstelleNodeParser- Parameter:
group- XMLTag of the current node to be parsed, or null if there is no such current group.tag- The XMLTag to be parsedparserMap- The map of current Parser.- Löst aus:
FatalParserException- if an exception occurs which causes the report to not be able to be read: causes the abortion of the reading of the report.- Seit:
- 12.0
-
parseText
FOR INTERNAL USE ONLY Internal method for reading report XMLThis method is called if text was encountered in the context of this node. (Examples would be a formula's text or a text element's text)
- Angegeben von:
parseTextin SchnittstelleNodeParser- Parameter:
text- text encountered and to be storedparserMap- The map of current Parser.- Seit:
- 12.0
-