java.lang.Object
de.grogra.util.AbstractTreeMapper
- All Implemented Interfaces:
Disposable
,EventListener
,TreeModelListener
- Direct Known Subclasses:
TreeMapper
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAbstractTreeMapper
(TreeModel source, Object root, MutableTreeModel target, Comparator comparator) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
createAndInsert
(Object sourceNode, Object targetParent, int index) protected abstract Object
createNode
(Object sourceNode, Object targetParent) final void
dispose()
protected void
protected boolean
protected Object
void
protected abstract boolean
void
map()
protected void
nodeRemoved
(Object node) void
setFilter
(ObjectToBoolean filter) boolean
sourceNodesEqual
(Object a, Object b) protected void
targetChanged
(Object parent) void
void
void
void
protected void
-
Field Details
-
source
-
target
-
root
-
-
Constructor Details
-
AbstractTreeMapper
public AbstractTreeMapper(TreeModel source, Object root, MutableTreeModel target, Comparator comparator)
-
-
Method Details
-
getSourceTree
-
installListener
public void installListener() -
setFilter
-
map
public void map() -
filter
-
sourceNodesEqual
-
createAndInsert
-
getImage
-
createNode
-
update
-
isImage
-
targetChanged
-
treeNodesChanged
- Specified by:
treeNodesChanged
in interfaceTreeModelListener
-
treeNodesInserted
- Specified by:
treeNodesInserted
in interfaceTreeModelListener
-
treeNodesRemoved
- Specified by:
treeNodesRemoved
in interfaceTreeModelListener
-
treeStructureChanged
- Specified by:
treeStructureChanged
in interfaceTreeModelListener
-
nodeRemoved
-
dispose
public final void dispose()- Specified by:
dispose
in interfaceDisposable
-
disposeImpl
protected void disposeImpl()
-