public class GralTable.NodeTableLine extends TreeNodeBase<GralTable.TableLineData,UserData,GralTableLine_ifc<UserData>>
GralTable.TableLineData
which presents a line as a node in a tree.
Therefore it implements the TreeNodeBase
interface. A line as parent node can be presented folded (default)
or unfolded in several levels to present a tree instead a simple table.
GralTable.rootLine
is a pure instance of this class The root line is never visible. It is the root.
All other lines are instances of GralTable.TableLineData
derived from this class.TreeNodeBase.IteratorDerivedImpl, TreeNodeBase.IteratorDerivedNode, TreeNodeBase.IteratorImpl, TreeNodeBase.IteratorMetaNode, TreeNodeBase.IteratorOneNode, TreeNodeBase.MetaNode<DerivedNode extends TreeNodeBase<DerivedNode,Data,IfcType> & SortedTree<IfcType>,Data,IfcType extends SortedTree<IfcType>>, TreeNodeBase.TreeNode<Data>
data, firstChild, idxChildren, key, lastChild, leafData, next, nrofChildren, parent, prev, version
Modifier and Type | Method and Description |
---|---|
GralTable.TableLineData |
addChildLine(java.lang.String lineKey,
java.lang.String[] lineTexts,
UserData userDataP)
Inserts a line as child of this.
|
GralTable.TableLineData |
addNextLine(java.lang.String lineKey,
java.lang.String[] lineTexts,
UserData userDataP)
Inserts a line behind the current line.
|
GralTable.TableLineData |
addPrevLine(java.lang.String lineKey,
java.lang.String[] lineTexts,
UserData userDataP)
Inserts a line before the current line.
|
void |
deleteLine() |
addNode, addNode, addNodeFirst, addSiblingNext, addSiblingPrev, childNodes, childNodes, detach, firstChild, getChild, getContainerChildren, getKey, getNode, getOrCreateNode, getParent, getParentData, hasChildren, iterator, iteratorChildren, iteratorChildren, iterChildren, iterChildren, lastChild, listChildren, listChildren, movetoFirstChild, movetoSiblingNext, movetoSiblingPrev, newNode, nextSibling, nrofChildren, parent, parentEquals, prevSibling, removeChildren, swap, toString, walkTree
public GralTable.TableLineData addChildLine(java.lang.String lineKey, java.lang.String[] lineTexts, UserData userDataP)
addPrevLine(String, String[], Object)
or addNextLine(String, String[], Object)
in respect to a given child line too.lineKey
- The key for the linelineTexts
- maybe null, elsewhere texts for the cells (column texts) of the line.userDataP
- public GralTable.TableLineData addNextLine(java.lang.String lineKey, java.lang.String[] lineTexts, UserData userDataP)
lineKey
- The key for the linelineTexts
- maybe null, elsewhere texts for the cells (column texts) of the line.userDataP
- public GralTable.TableLineData addPrevLine(java.lang.String lineKey, java.lang.String[] lineTexts, UserData userDataP)
lineKey
- The key for the linelineTexts
- maybe null, elsewhere texts for the cells (column texts) of the line.userDataP
- public void deleteLine()