public class CellHeader
extends java.lang.Object
| Constructor and Description |
|---|
CellHeader(Group group,
XBRLStructuralNode nu,
CellHeader parent,
EffectiveBreakdown effectiveBreakdown,
int openNodeValueIndex)
Instantiates a new cell header.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChildren(CellHeader cellHeader)
Adds the children.
|
CellHeader |
findAspect(Aspect<?> aspect,
java.util.Hashtable<CellHeader,Aspect<?>> byAspectCell)
Find aspect.
|
java.util.Iterator<AspectAndDistanceToLeaf> |
getAspects(java.lang.String tag)
Returns the consolidated aspects from this cell header and up to the first cell header.
|
java.util.Collection<CellHeader> |
getChildren()
Gets the children.
|
int |
getColNumber()
Access to the absolute column number after dealing with horizontal span and cells in the left of this cell.
|
Group |
getGroup()
Gets the group.
|
int |
getIndexNumber()
For open nodes, this is a relative number starting from 0 that indicates this column index relaive to
the parent.
|
java.lang.String |
getLabel()
Returns a proper label for the cell based on the cell type
and the aspects linked with this cell along with the
parameters set in the DTS such as preferred languages.
|
CellHeader |
getParent()
Gets the parent.
|
int |
getRowNumber()
Access to the absolute row number after dealing with vertical in previous cells.
|
int |
getSpan()
Gets the span.
|
XBRLStructuralNode |
getTableStructuralNode()
Gets the table structural node.
|
java.util.HashSet<java.lang.String> |
getTagSelector()
Gets the tag selector.
|
boolean |
hasRollUp()
this method returns true if this cell has a descendant roll up cell.
|
boolean |
isLeaf()
Checks if is leaf.
|
boolean |
isOpen()
Returns true when this cell header represents an open node.
|
boolean |
isRollUp()
Checks if is roll up.
|
boolean |
isRollUpPositionLeft()
Returns true if this cell has a roll up cell on the left.
|
boolean |
isRollUpPositionRight()
Returns true if this cell has a roll up cell on the right.
|
boolean |
isTitle()
A cell is title when it contains children in a group that is not
the group of this cell.
|
int |
setRowColumnNumber(int rowNumber,
int columnNumber)
Sets the row column number.
|
java.lang.String |
toString() |
public CellHeader(Group group, XBRLStructuralNode nu, CellHeader parent, EffectiveBreakdown effectiveBreakdown, int openNodeValueIndex)
group - the group this cell belongs tonu - the structural node this cell is derived fromparent - the parent cell header up in the hierarchyeffectiveBreakdown - the effective breakdownopenNodeValueIndex - if the CellHeader comes from an open structural node, this is the index of the value to be used for this columnpublic int getRowNumber()
public int getColNumber()
public int getIndexNumber()
public XBRLStructuralNode getTableStructuralNode()
public CellHeader getParent()
public Group getGroup()
public boolean isLeaf()
public void addChildren(CellHeader cellHeader)
cellHeader - the cell headerpublic int getSpan()
public java.util.Collection<CellHeader> getChildren()
public int setRowColumnNumber(int rowNumber,
int columnNumber)
rowNumber - the row numbercolumnNumber - the column numberpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.HashSet<java.lang.String> getTagSelector()
public CellHeader findAspect(Aspect<?> aspect, java.util.Hashtable<CellHeader,Aspect<?>> byAspectCell)
aspect - the aspectbyAspectCell - (optional) if not null, this hashtable will be set so the cell header can be used to locate the aspect laterpublic java.util.Iterator<AspectAndDistanceToLeaf> getAspects(java.lang.String tag)
tag - the tagpublic boolean isRollUp()
public java.lang.String getLabel()
public boolean isTitle()
public boolean isOpen()
public boolean hasRollUp()
public boolean isRollUpPositionLeft()
public boolean isRollUpPositionRight()