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.
BasicVisibleTreeNode(AbstractTreeUI, Object, int)
-
cancelEditing()
- Messages the BasicTreeUI the receiver was crated for to stop
editing.
collapse(boolean)
- Stops editing messages super and repaints this node if
there are no children.
expand(boolean)
- Stops editing messages super and repaints this node if
there are no children.
insert(MutableTreeNode, int)
- Stops editing, repaints the node if only 1 child and messages
super.
modelChildCountChanged()
- If the node is visible, it is repainted.
remove(int)
- Stops editing, repaints if no children, and messages super.
repaint()
- Repaints the receiver by messaging the TreeUI with repaintNode.
BasicVisibleTreeNode
protected BasicVisibleTreeNode(AbstractTreeUI treeUI,
Object value,
int index)
repaint
public void repaint()
- Repaints the receiver by messaging the TreeUI with repaintNode.
cancelEditing
public void cancelEditing()
- Messages the BasicTreeUI the receiver was crated for to stop
editing.
modelChildCountChanged
public void modelChildCountChanged()
- If the node is visible, it is repainted.
- Overrides:
- modelChildCountChanged in class VisibleTreeNode
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
remove
public void remove(int childIndex)
- Stops editing, repaints if no children, and messages super.
- Overrides:
- remove in class DefaultMutableTreeNode
collapse
protected void collapse(boolean adjustTree)
- Stops editing messages super and repaints this node if
there are no children.
- Overrides:
- collapse in class VisibleTreeNode
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