A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.oracle.com/javase/8/docs/api/javax/swing/tree/DefaultTreeModel.html below:

DefaultTreeModel (Java Platform SE 8 )

Modifier and Type Method Description void addTreeModelListener(TreeModelListener l)

Adds a listener for the TreeModelEvent posted after the tree changes.

boolean asksAllowsChildren()

Tells how leaf nodes are determined.

protected void fireTreeNodesChanged(Object source, Object[] path, int[] childIndices, Object[] children)

Notifies all listeners that have registered interest for notification on this event type.

protected void fireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children)

Notifies all listeners that have registered interest for notification on this event type.

protected void fireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children)

Notifies all listeners that have registered interest for notification on this event type.

protected void fireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children)

Notifies all listeners that have registered interest for notification on this event type.

Object getChild(Object parent, int index)

Returns the child of parent at index index in the parent's child array.

int getChildCount(Object parent)

Returns the number of children of parent.

int getIndexOfChild(Object parent, Object child)

Returns the index of child in parent.

<T extends EventListener>
T[]
getListeners(Class<T> listenerType)

Returns an array of all the objects currently registered as FooListeners upon this model.

TreeNode[] getPathToRoot(TreeNode aNode)

Builds the parents of node up to and including the root node, where the original node is the last element in the returned array.

protected TreeNode[] getPathToRoot(TreeNode aNode, int depth)

Builds the parents of node up to and including the root node, where the original node is the last element in the returned array.

Object getRoot()

Returns the root of the tree.

TreeModelListener[] getTreeModelListeners()

Returns an array of all the tree model listeners registered on this model.

void insertNodeInto(MutableTreeNode newChild, MutableTreeNode parent, int index)

Invoked this to insert newChild at location index in parents children.

boolean isLeaf(Object node)

Returns whether the specified node is a leaf node.

void nodeChanged(TreeNode node)

Invoke this method after you've changed how node is to be represented in the tree.

void nodesChanged(TreeNode node, int[] childIndices)

Invoke this method after you've changed how the children identified by childIndicies are to be represented in the tree.

void nodeStructureChanged(TreeNode node)

Invoke this method if you've totally changed the children of node and its children's children...

void nodesWereInserted(TreeNode node, int[] childIndices)

Invoke this method after you've inserted some TreeNodes into node.

void nodesWereRemoved(TreeNode node, int[] childIndices, Object[] removedChildren)

Invoke this method after you've removed some TreeNodes from node.

void reload()

Invoke this method if you've modified the TreeNodes upon which this model depends.

void reload(TreeNode node)

Invoke this method if you've modified the TreeNodes upon which this model depends.

void removeNodeFromParent(MutableTreeNode node)

Message this to remove node from its parent.

void removeTreeModelListener(TreeModelListener l)

Removes a listener previously added with addTreeModelListener().

void setAsksAllowsChildren(boolean newValue)

Sets whether or not to test leafness by asking getAllowsChildren() or isLeaf() to the TreeNodes.

void setRoot(TreeNode root)

Sets the root to root.

void valueForPathChanged(TreePath path, Object newValue)

This sets the user object of the TreeNode identified by path and posts a node changed.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4