|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.tree.AbstractTreeModel
public abstract class AbstractTreeModel
Constructor Summary | |
---|---|
protected |
AbstractTreeModel(Object root)
|
protected |
AbstractTreeModel(ValueModel rootHolder)
|
Method Summary | |
---|---|
void |
addTreeModelListener(TreeModelListener l)
Adds a listener for the TreeModelEvent posted after the tree changes. |
protected void |
fireRootNodeChanged(Object previousRoot)
The only event raised by this model is TreeStructureChanged with the root as path, i.e. |
protected void |
fireRootTreeStructureChanged(Object previousRoot)
The only event raised by this model is TreeStructureChanged with the root as path, i.e. |
protected void |
fireTreeNodeChanged(Object[] path,
int index,
Object child)
|
protected void |
fireTreeNodeInserted(Object[] path,
int index,
Object child)
|
protected void |
fireTreeNodeRemoved(Object[] path,
int index,
Object child)
|
protected void |
fireTreeNodesChanged(Object[] path,
int[] childIndices,
Object[] children)
Notifies all listeners that have registered interest for notification on this event type. |
protected void |
fireTreeNodesInserted(Object[] path,
int[] childIndices,
Object[] children)
Notifies all listeners that have registered interest for notification on this event type. |
protected void |
fireTreeNodesRemoved(Object[] path,
int[] childIndices,
Object[] children)
Notifies all listeners that have registered interest for notification on this event type. |
protected void |
fireTreeStructureChanged(Object[] path,
int[] childIndices,
Object[] children)
Notifies all listeners that have registered interest for notification on this event type. |
protected void |
fireTreeStructureChanged(Object[] path,
int index,
Object child)
|
Object |
getRoot()
|
protected ValueModel |
getRootHolder()
|
TreeModelListener[] |
getTreeModelListeners()
Returns an array of all the tree model listeners registered on this model. |
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, isLeaf, valueForPathChanged |
Constructor Detail |
---|
protected AbstractTreeModel(Object root)
protected AbstractTreeModel(ValueModel rootHolder)
Method Detail |
---|
public Object getRoot()
getRoot
in interface TreeModel
protected ValueModel getRootHolder()
public void addTreeModelListener(TreeModelListener l)
addTreeModelListener
in interface TreeModel
l
- the listener to addremoveTreeModelListener(javax.swing.event.TreeModelListener)
public void removeTreeModelListener(TreeModelListener l)
removeTreeModelListener
in interface TreeModel
l
- the listener to removeaddTreeModelListener(javax.swing.event.TreeModelListener)
public TreeModelListener[] getTreeModelListeners()
TreeModelListener
s or an
empty array if no tree model listeners are currently registeredaddTreeModelListener(javax.swing.event.TreeModelListener)
,
removeTreeModelListener(javax.swing.event.TreeModelListener)
protected void fireTreeNodesChanged(Object[] 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 fireTreeNodesInserted(Object[] 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 fireTreeNodesRemoved(Object[] 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 fireTreeStructureChanged(Object[] path, int[] childIndices, Object[] children)
source
- the node where the tree model has changedpath
- the path to the root nodechildIndices
- the indices of the affected elementschildren
- the affected elementsEventListenerList
protected void fireRootNodeChanged(Object previousRoot)
protected void fireRootTreeStructureChanged(Object previousRoot)
protected void fireTreeNodeRemoved(Object[] path, int index, Object child)
protected void fireTreeNodeInserted(Object[] path, int index, Object child)
protected void fireTreeStructureChanged(Object[] path, int index, Object child)
protected void fireTreeNodeChanged(Object[] path, int index, Object child)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |