Class CrossTabBodyCell

  • All Implemented Interfaces:
    NodeParser, java.io.Serializable

    public class CrossTabBodyCell
    extends java.lang.Object
    implements NodeParser, java.io.Serializable
    Described a cell in the body of the crosstab.
    Since:
    12.0
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CrossTabHeader getColumn()
      Get the column header of this cell.
      FieldElement getFieldElement​(int index)
      Get the FieldElement at the given index.
      int getFieldElementCount()
      Get the count of the FieldElements in this cell.
      int getHeight()
      the height of this cell in the design view.
      CrossTabHeader getRow()
      Get the row header of the cell.
      int getWidth()
      The width of this cell in the design view.
      int getX()
      The X position of this cell in the parent section in the design view.
      int getY()
      The Y position of this cell in the parent section in the design view.
      boolean isDOMParser()
      FOR INTERNAL USE ONLY Internal method for reading report XML
      void parseDOM​(org.w3c.dom.Node node, java.util.Map<java.lang.String,​java.lang.Object> parserMap)
      FOR INTERNAL USE ONLY Internal method for reading report XML
      NodeParser parseElement​(com.inet.report.parser.XMLTag group, java.lang.String tag, org.xml.sax.Attributes atts, java.util.Map<java.lang.String,​java.lang.Object> parserMap)
      FOR INTERNAL USE ONLY Internal method for reading report XML
      void parseEndElement​(com.inet.report.parser.XMLTag group, java.lang.String tag, java.util.Map<java.lang.String,​java.lang.Object> parserMap)
      FOR INTERNAL USE ONLY Internal method for reading report XML
      void parseText​(java.lang.String text, java.util.Map<java.lang.String,​java.lang.Object> parserMap)
      FOR INTERNAL USE ONLY Internal method for reading report XML
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getFieldElement

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

        @Nonnull
        public 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​(org.w3c.dom.Node node,
                             java.util.Map<java.lang.String,​java.lang.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,
                                       java.lang.String tag,
                                       org.xml.sax.Attributes atts,
                                       java.util.Map<java.lang.String,​java.lang.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,
                                    java.lang.String tag,
                                    java.util.Map<java.lang.String,​java.lang.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​(java.lang.String text,
                              java.util.Map<java.lang.String,​java.lang.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