Class CrossTabBodyCell

java.lang.Object
com.inet.report.CrossTabBodyCell
All Implemented Interfaces:
NodeParser, Serializable

public class CrossTabBodyCell extends Object implements NodeParser, Serializable
Described a cell in the body of the crosstab.
Since:
12.0
See Also:
  • Method Details

    • getFieldElement

      @Nonnull public @Nonnull FieldElement getFieldElement(int index)
      Get the FieldElement at the given index.
      Parameters:
      index - index of the element to return
      Returns:
      the FieldElement
      Since:
      12.0
    • getFieldElementCount

      public int getFieldElementCount()
      Get the count of the FieldElements in this cell. This should be identical in all cells and in CrossTabBody.getSummaryFieldsCount().
      Returns:
      the count
      Since:
      12.0
    • getX

      public int getX()
      The X position of this cell in the parent section in the design view.
      Returns:
      the position in twips
      Since:
      12.0
    • getY

      public int getY()
      The Y position of this cell in the parent section in the design view.
      Returns:
      the position in twips
      Since:
      12.0
    • getWidth

      public int getWidth()
      The width of this cell in the design view.
      Returns:
      the width in twips
      Since:
      12.0
    • getHeight

      public int getHeight()
      the height of this cell in the design view.
      Returns:
      the height in twips.
      Since:
      12.0
    • getRow

      @Nonnull public @Nonnull CrossTabHeader getRow()
      Get the row header of the cell.
      Returns:
      the row header
      Since:
      12.0
    • getColumn

      @Nonnull public @Nonnull CrossTabHeader getColumn()
      Get the column header of this cell.
      Returns:
      the column header
      Since:
      12.0
    • 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.

      Specified by:
      isDOMParser in interface NodeParser
      Returns:
      true if this node is to be read via a DOM parser, false otherwise.
      Since:
      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.

      Specified by:
      parseDOM in interface NodeParser
      Parameters:
      node - the node
      parserMap - The map of current Parser.
      Throws:
      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.
      Since:
      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.

      Specified by:
      parseElement in interface NodeParser
      Parameters:
      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.
      Returns:
      The NodeParser sub-element if one needed to be created, or null if none was created.
      Throws:
      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.
      Since:
      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.

      Specified by:
      parseEndElement in interface NodeParser
      Parameters:
      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.
      Throws:
      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.
      Since:
      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)

      Specified by:
      parseText in interface NodeParser
      Parameters:
      text - text encountered and to be stored
      parserMap - The map of current Parser.
      Since:
      12.0