All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.basic.BasicVisibleTreeNode

java.lang.Object
    |
    +----java.awt.swing.tree.DefaultMutableTreeNode
            |
            +----java.awt.swing.basic.VisibleTreeNode
                    |
                    +----java.awt.swing.basic.BasicVisibleTreeNode

public class BasicVisibleTreeNode
extends VisibleTreeNode
BasicVisibleTreeNode extends VisibleTreeNode to stop editing whenever nodes are added/removed and to redisplay when collapsing/ expanding the node.


Constructor Index

 o BasicVisibleTreeNode(AbstractTreeUI, Object, int)

Method Index

 o cancelEditing()
Messages the BasicTreeUI the receiver was crated for to stop editing.
 o collapse(boolean)
Stops editing messages super and repaints this node if there are no children.
 o expand(boolean)
Stops editing messages super and repaints this node if there are no children.
 o insert(MutableTreeNode, int)
Stops editing, repaints the node if only 1 child and messages super.
 o modelChildCountChanged()
If the node is visible, it is repainted.
 o remove(int)
Stops editing, repaints if no children, and messages super.
 o repaint()
Repaints the receiver by messaging the TreeUI with repaintNode.

Constructors

 o BasicVisibleTreeNode
protected BasicVisibleTreeNode(AbstractTreeUI treeUI,
                               Object value,
                               int index)

Methods

 o repaint
public void repaint()
Repaints the receiver by messaging the TreeUI with repaintNode.

 o cancelEditing
public void cancelEditing()
Messages the BasicTreeUI the receiver was crated for to stop editing.

 o modelChildCountChanged
public void modelChildCountChanged()
If the node is visible, it is repainted.

Overrides:
modelChildCountChanged in class VisibleTreeNode
 o insert
public void insert(MutableTreeNode newChild,
                   int childIndex)
Stops editing, repaints the node if only 1 child and messages super.

Overrides:
insert in class DefaultMutableTreeNode
 o remove
public void remove(int childIndex)
Stops editing, repaints if no children, and messages super.

Overrides:
remove in class DefaultMutableTreeNode
 o collapse
protected void collapse(boolean adjustTree)
Stops editing messages super and repaints this node if there are no children.

Overrides:
collapse in class VisibleTreeNode
 o expand
protected void expand(boolean adjustTree)
Stops editing messages super and repaints this node if there are no children.

Overrides:
expand in class VisibleTreeNode

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature