Package ca.phon.app.opgraph.report.tree
Class ReportTreeNode
java.lang.Object
ca.phon.app.opgraph.report.tree.ReportTreeNode
- All Implemented Interfaces:
Iterable<ReportTreeNode>
- Direct Known Subclasses:
SectionHeaderNode
,TableNode
,TextNode
Tree node for report templates.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(int index, ReportTreeNode element) boolean
void
addReportTreeListener
(ReportTreeListener listener) void
clear()
abstract ReportTreeNode
boolean
findRoot()
void
fireNodeAdded
(ReportTreeNode parent, int index, ReportTreeNode child) void
fireNodeRemoved
(ReportTreeNode parent, int index, ReportTreeNode child) int
getLevel()
getPath()
abstract String
Return the markdown template code for this report node.getTitle()
iterator()
remove
(int index) boolean
void
removeReportTreeListener
(ReportTreeListener listener) void
setParent
(ReportTreeNode parent) void
int
size()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ReportTreeNode
public ReportTreeNode() -
ReportTreeNode
-
-
Method Details
-
getTitle
-
setTitle
-
getParent
-
setParent
-
getChildren
-
size
public int size() -
contains
-
add
-
remove
-
clear
public void clear() -
add
-
remove
-
iterator
- Specified by:
iterator
in interfaceIterable<ReportTreeNode>
-
getLevel
public int getLevel() -
getPath
-
findRoot
-
addReportTreeListener
-
removeReportTreeListener
-
getListeners
-
fireNodeAdded
-
fireNodeRemoved
-
getReportTemplateBlock
Return the markdown template code for this report node.- Returns:
-
cloneWithoutChildren
-