java.lang.Object
de.grogra.util.TreeModelSupport
de.grogra.util.Tree
de.grogra.util.MutableTree
de.grogra.util.MappedTree
de.grogra.pf.ui.tree.SyncMappedTree
- All Implemented Interfaces:
Synchronizer.Callback
,Disposable
,MappedTreeModel
,MutableTreeModel
,TreeModel
-
Nested Class Summary
Nested classes/interfaces inherited from class de.grogra.util.MappedTree
MappedTree.Node
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected static final int
protected final TreeMapper
protected static final int
protected static final int
protected final Synchronizer
protected static final int
Fields inherited from class de.grogra.util.TreeModelSupport
NODES_CHANGED, NODES_INSERTED, NODES_REMOVED, STRUCTURE_CHANGED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
void
protected void
insertSync
(Object parent, int index, Object child, Object constraints) void
protected void
removeSync
(Object parent, int index) void
protected void
setRootSync
(Object root) void
valueForPathChanged
(TreePath path, Object newValue) protected void
valueForPathChangedSync
(TreePath path, Object newValue) Methods inherited from class de.grogra.util.MappedTree
createNode, disposeNode, isImage, treeChanged
Methods inherited from class de.grogra.util.MutableTree
dispose, remove
Methods inherited from class de.grogra.util.Tree
findFirst, findMax, findMax, getChild, getChildCount, getIndexOfChild, getIndexOfChild, getParent, getRoot, hasValidPath, isLeaf, nodesEqual
Methods inherited from class de.grogra.util.TreeModelSupport
addTreeModelListener, clearListeners, fireTreeModelEvent, fireTreeModelEvent, fireTreeModelEvent, fireTreeModelEvent, hasListeners, removeTreeModelListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.grogra.util.Disposable
dispose
Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener
-
Field Details
-
sync
-
mapper
-
INSERT
protected static final int INSERT- See Also:
-
REMOVE
protected static final int REMOVE- See Also:
-
SET_ROOT
protected static final int SET_ROOT- See Also:
-
VALUE_FOR_PATH_CHANGED
protected static final int VALUE_FOR_PATH_CHANGED- See Also:
-
ACTION_COUNT
protected static final int ACTION_COUNT- See Also:
-
-
Constructor Details
-
SyncMappedTree
-
-
Method Details
-
getSourceTree
-
run
- Specified by:
run
in interfaceSynchronizer.Callback
-
insert
- Specified by:
insert
in interfaceMutableTreeModel
- Overrides:
insert
in classMutableTree
-
insertSync
-
remove
- Specified by:
remove
in interfaceMutableTreeModel
- Overrides:
remove
in classMutableTree
-
removeSync
-
setRoot
- Specified by:
setRoot
in interfaceMutableTreeModel
- Overrides:
setRoot
in classMutableTree
-
setRootSync
-
valueForPathChanged
- Specified by:
valueForPathChanged
in interfaceTreeModel
- Overrides:
valueForPathChanged
in classMutableTree
-
valueForPathChangedSync
-
firstListenerAdded
protected void firstListenerAdded()- Overrides:
firstListenerAdded
in classTreeModelSupport
-
allListenersRemoved
protected void allListenersRemoved()- Overrides:
allListenersRemoved
in classTreeModelSupport
-