Class TableNode
java.lang.Object
de.hybris.platform.commons.translator.nodes.AbstractNode
de.hybris.platform.commons.translator.nodes.TableNode
Table node that holds a 2-dimensional array of table cells.
(First row has number 1, first column has number 1. Column 0 of each row contains a "new row starting node" for the related
tag)
(First row has number 1, first column has number 1. Column 0 of each row contains a "new row starting node" for the related
-
Field Summary
Fields inherited from class de.hybris.platform.commons.translator.nodes.AbstractNode
OPEN_TAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCell(int colNumber, int rowNumber) get cell (node) from position x,y ((x,y-1) from the TableNode's array)intgetCols()intgetRows()voidinitializeNodesTable(int colCount, int rowCount) method to initialize nodesTablevoidsetCell(AbstractNode cell, int colNumber, int rowNumber) set cell (node) to position x,y ((x,y-1) in the TableNode's array) we set cell even if it is a row cellMethods inherited from class de.hybris.platform.commons.translator.nodes.AbstractNode
addAttribute, addAttributes, addChildNode, addChildNodes, getAttributeByName, getAttributes, getChildNodeByName, getChildNodes, getNodeName, getNodeText, getParentNode, getStyleClass, isOpenTag, setAttributes, setChildNodes, setNodeName, setNodeText, setParentNode
-
Constructor Details
-
TableNode
- Parameters:
nodeName-nodeText-
-
-
Method Details
-
initializeNodesTable
public void initializeNodesTable(int colCount, int rowCount) method to initialize nodesTable- Parameters:
colCount- number of colsrowCount- number of rows
-
setCell
set cell (node) to position x,y ((x,y-1) in the TableNode's array) we set cell even if it is a row cell- Parameters:
cell-colNumber-rowNumber-
-
getCell
get cell (node) from position x,y ((x,y-1) from the TableNode's array)- Parameters:
colNumber-rowNumber-
-
getCols
public int getCols() -
getRows
public int getRows()
-