Package eu.bandm.tools.util
Class SwingForester.Leaf
java.lang.Object
eu.bandm.tools.util.SwingForester.TreeProxy
eu.bandm.tools.util.SwingForester.Leaf
- All Implemented Interfaces:
TreeNode
- Enclosing class:
- SwingForester
Tree node with no sub-nodes, representing a field of primitive type.
(Or of reference type, when no internal information shall be displayed.)
-
Field Summary
Fields inherited from class eu.bandm.tools.util.SwingForester.TreeProxy
label, parent, source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionchildren()
.boolean
.getChildAt
(int index) Must never be called.int
.int
.boolean
isLeaf()
.Deliver the string represetnation of the value field, but replaced for html print-out, seeSwingForester.setHTML(boolean)
.Methods inherited from class eu.bandm.tools.util.SwingForester.TreeProxy
getLabel, getParent, getSource, toString
-
Constructor Details
-
Leaf
Only constructor.- Parameters:
parent
- the tree node under which the new node will be placed (only null for top-most node)label
- the visible label textsource
- the object to display, in most cases simply a boxed primitiv value.
-
-
Method Details
-
valueToString
Deliver the string represetnation of the value field, but replaced for html print-out, seeSwingForester.setHTML(boolean)
.- Specified by:
valueToString
in classSwingForester.TreeProxy
-
getChildAt
Must never be called.- Throws:
UnsupportedOperationException
-
getChildCount
public int getChildCount(). Returns constantly zero. -
getIndex
. Returns constantly -1. -
getAllowsChildren
public boolean getAllowsChildren(). Returns constantly false. -
isLeaf
public boolean isLeaf(). Returns constantly true. -
children
. Returns constantly an empty collection.
-