|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ehsbe.commons.gui.util.AbstractTreeModel
public abstract class AbstractTreeModel
| Field Summary | |
|---|---|
protected CopyOnWriteArrayList<TreeModelListener> |
listenerList
Listeners. |
| Constructor Summary | |
|---|---|
AbstractTreeModel()
|
|
| Method Summary | |
|---|---|
void |
addTreeModelListener(TreeModelListener l)
Adds a listener for the TreeModelEvent posted after the tree changes. |
protected void |
fireTreeNodesChanged(Object source,
TreePath path,
int[] childIndices,
Object... children)
Notifies all listeners that have registered interest for notification on this event type. |
protected void |
fireTreeNodesInserted(Object source,
TreePath path,
int[] childIndices,
Object... children)
Notifies all listeners that have registered interest for notification on this event type. |
protected void |
fireTreeNodesRemoved(Object source,
TreePath path,
int[] childIndices,
Object... children)
Notifies all listeners that have registered interest for notification on this event type. |
protected void |
fireTreeStructureChanged(Object source,
TreePath path)
Notifies all listeners that have registered interest for notification on this event type. |
TreeModelListener[] |
getListeners()
Get a list of all tree listeners, which listen to this model changes. |
void |
removeTreeModelListener(TreeModelListener l)
Removes a listener previously added with addTreeModelListener(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.tree.TreeModel |
|---|
getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, valueForPathChanged |
| Field Detail |
|---|
protected CopyOnWriteArrayList<TreeModelListener> listenerList
| Constructor Detail |
|---|
public AbstractTreeModel()
| Method Detail |
|---|
public void addTreeModelListener(TreeModelListener l)
addTreeModelListener in interface TreeModell - the listener to addremoveTreeModelListener(javax.swing.event.TreeModelListener)public void removeTreeModelListener(TreeModelListener l)
removeTreeModelListener in interface TreeModell - the listener to removeaddTreeModelListener(javax.swing.event.TreeModelListener)
protected void fireTreeNodesRemoved(Object source,
TreePath path,
int[] childIndices,
Object... children)
source - the node where elements are being removedpath - the path to the root nodechildIndices - the indices of the removed elementschildren - the removed elementsEventListenerList
protected void fireTreeNodesInserted(Object source,
TreePath path,
int[] childIndices,
Object... children)
source - the node where new elements are being insertedpath - the path to the root nodechildIndices - the indices of the new elementschildren - the new elementsEventListenerList
protected void fireTreeNodesChanged(Object source,
TreePath path,
int[] childIndices,
Object... children)
source - the node being changedpath - the path to the root nodechildIndices - the indices of the changed elementschildren - the changed elementsEventListenerList
protected void fireTreeStructureChanged(Object source,
TreePath path)
source - the node where the tree model has changedpath - the path to the root nodepublic TreeModelListener[] getListeners()
|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||