org.browsecode.helpers.display
Class LazyNodeViewer
java.lang.Object
org.browsecode.helpers.display.LazyNodeViewer
- All Implemented Interfaces:
- javax.swing.tree.TreeNode, BasicObject
- Direct Known Subclasses:
- MethodViewer, OneObjectViewer
public abstract class LazyNodeViewer
- extends java.lang.Object
- implements javax.swing.tree.TreeNode, BasicObject
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LazyNodeViewer
public LazyNodeViewer(javax.swing.tree.TreeNode parent)
getEditor
public abstract java.awt.Component getEditor()
- Specified by:
getEditor
in interface BasicObject
getChildAt
public javax.swing.tree.TreeNode getChildAt(int index)
- Specified by:
getChildAt
in interface javax.swing.tree.TreeNode
getChildCount
public int getChildCount()
- Specified by:
getChildCount
in interface javax.swing.tree.TreeNode
getParent
public javax.swing.tree.TreeNode getParent()
- Specified by:
getParent
in interface javax.swing.tree.TreeNode
getIndex
public int getIndex(javax.swing.tree.TreeNode aChild)
- Specified by:
getIndex
in interface javax.swing.tree.TreeNode
getAllowsChildren
public boolean getAllowsChildren()
- Specified by:
getAllowsChildren
in interface javax.swing.tree.TreeNode
setAllowsChildren
public void setAllowsChildren(boolean allowChildren)
setHasChildren
public void setHasChildren(boolean hasKids)
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in interface javax.swing.tree.TreeNode
children
public java.util.Enumeration children()
- Specified by:
children
in interface javax.swing.tree.TreeNode
add
public void add(LazyNodeViewer node)
removeAllChildren
public void removeAllChildren()
remove
public void remove(int i)
setUserObject
public void setUserObject(java.lang.String name)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
prepareToView
public void prepareToView()
refresh
public void refresh()
- Specified by:
refresh
in interface BasicObject