Package eu.bandm.tools.graficUtils
Class SwingForester.Leaf
java.lang.Object
eu.bandm.tools.graficUtils.SwingForester.TreeProxy
eu.bandm.tools.graficUtils.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 SummaryFields inherited from class eu.bandm.tools.graficUtils.SwingForester.TreeProxylabel, parent, source
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionchildren().boolean.getChildAt(int index) Must never be called.int.int.booleanisLeaf().Deliver the string represetnation of the value field, but replaced for html print-out, seeSwingForester.setHTML(boolean).Methods inherited from class eu.bandm.tools.graficUtils.SwingForester.TreeProxygetLabel, getParent, getSource, toString
- 
Constructor Details- 
LeafOnly constructor.- Parameters:
- parent- the tree node under which the new node will be placed (only null for top-most node)
- label- the visible label text
- source- the object to display, in most cases simply a boxed primitiv value.
 
 
- 
- 
Method Details- 
valueToStringDeliver the string represetnation of the value field, but replaced for html print-out, seeSwingForester.setHTML(boolean).- Specified by:
- valueToStringin class- SwingForester.TreeProxy
 
- 
getChildAtMust never be called.- Throws:
- UnsupportedOperationException
 
- 
getChildCountpublic int getChildCount(). Returns constantly zero.
- 
getIndex. Returns constantly -1.
- 
getAllowsChildrenpublic boolean getAllowsChildren(). Returns constantly false.
- 
isLeafpublic boolean isLeaf(). Returns constantly true.
- 
children. Returns constantly an empty collection.
 
-