public interface

INode

implements IItem
com.pnfsoftware.jeb.core.output.tree.INode
Known Indirect Subclasses

Class Overview

A tree node definition, the main constituent of tree documents.

Summary

Public Methods
abstract String[] getAdditionalLabels()
Get the additional labels for table trees.
abstract List<? extends INode> getChildren()
Get the children of this node.
abstract String getLabel()
Get the primary label of this node.

Public Methods

public abstract String[] getAdditionalLabels ()

Get the additional labels for table trees. Simple trees should return null.

It is recommended to avoid new-line characters in the label. If new line characters are found, what happens to them is client-specific.

Returns
  • the list of additional labels. Example: If the table tree has 3 columns, that method should return at most 2 additional labels

public abstract List<? extends INode> getChildren ()

Get the children of this node.

Returns
  • a list of children nodes, possibly empty

public abstract String getLabel ()

Get the primary label of this node. That label is used by simple trees as the primary label, or as the first label in a row for table trees.

It is recommended to avoid new-line characters in the label. If new line characters are found, what happens to them is client-specific.

Returns
  • the label