Package com.inet.report
Class CrossTabBodyCell
java.lang.Object
com.inet.report.CrossTabBodyCell
- All Implemented Interfaces:
NodeParser
,Serializable
Described a cell in the body of the crosstab.
- Since:
- 12.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@Nonnull CrossTabHeader
Get the column header of this cell.@Nonnull FieldElement
getFieldElement
(int index) Get the FieldElement at the given index.int
Get the count of the FieldElements in this cell.int
the height of this cell in the design view.@Nonnull 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
FOR INTERNAL USE ONLY Internal method for reading report XMLvoid
FOR 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 XMLvoid
parseEndElement
(com.inet.report.parser.XMLTag group, String tag, Map<String, Object> parserMap) FOR INTERNAL USE ONLY Internal method for reading report XMLvoid
FOR INTERNAL USE ONLY Internal method for reading report XML
-
Method Details
-
getFieldElement
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 inCrossTabBody.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
Get the row header of the cell.- Returns:
- the row header
- Since:
- 12.0
-
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 XMLReturns whether this node is to be read via a DOM parser.
- Specified by:
isDOMParser
in interfaceNodeParser
- Returns:
- true if this node is to be read via a DOM parser, false otherwise.
- Since:
- 12.0
-
parseDOM
FOR INTERNAL USE ONLY Internal method for reading report XMLParses the node.
- Specified by:
parseDOM
in interfaceNodeParser
- Parameters:
node
- the nodeparserMap
- 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 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.
- Specified by:
parseElement
in interfaceNodeParser
- 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 parsedatts
- The set of attributes in the current XMLTagparserMap
- 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 FatalParserExceptionFOR INTERNAL USE ONLY Internal method for reading report XMLReceive notification of the end of an XML tag.
- Specified by:
parseEndElement
in interfaceNodeParser
- Parameters:
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.- 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
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)
- Specified by:
parseText
in interfaceNodeParser
- Parameters:
text
- text encountered and to be storedparserMap
- The map of current Parser.- Since:
- 12.0
-