Klasse CrossTabHeader

java.lang.Object
com.inet.report.CrossTabHeader
Alle implementierten Schnittstellen:
NodeParser, Serializable

public class CrossTabHeader extends Object implements NodeParser, Serializable
A single CrossTab header. There are headers for rows (left) and columns (top).
Seit:
12.0
Siehe auch:
  • 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 suppressed true or not (false).
      Gibt zurück:
      True if the sub total is suppressed or not.
      Seit:
      12.0
      Siehe auch:
    • getSuppressTotalFormula

      public @Nullable FormulaField 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

      public void setSuppressTotalFormula(FormulaField newFormula)
      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

      public void setSuppressGroupLabelFormula(FormulaField newFormula)
      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:
      • CrossTabRow.setSuppressGroupLabel(boolean)
    • getSuppressGroupLabelFormula

      public @Nullable FormulaField 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

      public @Nullable Group getGroup()
      Returns the group object of this row. The group will be null if 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

      public @Nullable Field getField()
      The field of the grouping.
      Gibt zurück:
      the field
      Seit:
      12.0
    • setField

      public void setField(Field field)
      Set the field of grouping.
      Parameter:
      field - the new field, can not be null
      Seit:
      12.0
    • getText

      public @Nonnull Text 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

      public @Nonnull Text getText(int sumIdx)
      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

      public @Nullable FieldElement 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

      public void setBackColorFormula(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.
      Parameter:
      backColorFormula - the new ABGR value of the grand total background color.
      Seit:
      12.0
      Siehe auch:
    • getBackColorFormula

      public @Nullable FormulaField 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:
      • ColorUtils.toCcColor(Color)
      • ColorUtils.toJavaColor(int)
    • isDOMParser

      public boolean isDOMParser()
      FOR INTERNAL USE ONLY Internal method for reading report XML

      Returns whether this node is to be read via a DOM parser.

      Angegeben von:
      isDOMParser in Schnittstelle NodeParser
      Gibt zurück:
      true if this node is to be read via a DOM parser, false otherwise.
      Seit:
      12.0
    • parseDOM

      public void parseDOM(Node node, Map<String,Object> parserMap) throws FatalParserException
      FOR INTERNAL USE ONLY Internal method for reading report XML

      Parses the node.

      Angegeben von:
      parseDOM in Schnittstelle NodeParser
      Parameter:
      node - the node
      parserMap - 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 FatalParserException
      FOR INTERNAL USE ONLY Internal method for reading report XML

      Parses 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:
      parseElement in Schnittstelle NodeParser
      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 parsed
      atts - The set of attributes in the current XMLTag
      parserMap - 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 FatalParserException
      FOR INTERNAL USE ONLY Internal method for reading report XML

      Receive notification of the end of an XML tag.

      Angegeben von:
      parseEndElement in Schnittstelle NodeParser
      Parameter:
      group - XMLTag of the current node to be parsed, or null if there is no such current group.
      tag - The XMLTag to be parsed
      parserMap - 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

      public void parseText(String text, Map<String,Object> parserMap)
      FOR INTERNAL USE ONLY Internal method for reading report XML

      This 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:
      parseText in Schnittstelle NodeParser
      Parameter:
      text - text encountered and to be stored
      parserMap - The map of current Parser.
      Seit:
      12.0