Package com.inet.report
Class CrossTabBodyCell
- java.lang.Object
-
- com.inet.report.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 XMLvoid
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 XMLNodeParser
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 XMLvoid
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 XMLvoid
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
-
-
-
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 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
@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 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
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 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, 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 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, 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 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
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 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
-
-