org.browsecode.helpers.display
Class LazyNodeViewer

java.lang.Object
  extended by 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


Constructor Summary
LazyNodeViewer(javax.swing.tree.TreeNode parent)
           
 
Method Summary
 void add(LazyNodeViewer node)
           
 java.util.Enumeration children()
           
 boolean getAllowsChildren()
           
 javax.swing.tree.TreeNode getChildAt(int index)
           
 int getChildCount()
           
abstract  java.awt.Component getEditor()
           
 int getIndex(javax.swing.tree.TreeNode aChild)
           
 javax.swing.tree.TreeNode getParent()
           
 boolean isLeaf()
           
 void prepareToView()
           
 void refresh()
           
 void remove(int i)
           
 void removeAllChildren()
           
 void setAllowsChildren(boolean allowChildren)
           
 void setHasChildren(boolean hasKids)
           
 void setUserObject(java.lang.String name)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LazyNodeViewer

public LazyNodeViewer(javax.swing.tree.TreeNode parent)
Method Detail

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