java.lang.Object
de.grogra.pf.ui.awt.ComponentModel
de.grogra.pf.ui.awt.MappedComponentModel
- All Implemented Interfaces:
ComponentWrapper
,Synchronizer.Callback
,Disposable
,MappedTreeModel
,MutableTreeModel
,Comparator
,TreeModel
- Direct Known Subclasses:
AWTTree
public abstract class MappedComponentModel
extends ComponentModel
implements MappedTreeModel, Comparator
-
Field Summary
Modifier and TypeFieldDescriptionprotected final TreeMapper
protected final Object
protected final UITree
Fields inherited from class de.grogra.pf.ui.awt.ComponentModel
ACTION_COUNT, INSERT, REMOVE, root, SET_ENABLED, sync, TREE_CHANGED
-
Constructor Summary
ConstructorDescriptionMappedComponentModel
(UITree sourceTree) MappedComponentModel
(UITree sourceTree, Object sourceRoot) -
Method Summary
Modifier and TypeMethodDescriptionint
final void
dispose()
protected void
protected boolean
isSourceRoot
(Object sourceNode) void
map
(boolean attach) protected void
protected void
Methods inherited from class de.grogra.pf.ui.awt.ComponentModel
addTreeModelListener, getChild, getChildCount, getComponent, getContentPane, getIndexOfChild, getPrefixComponentCount, getRoot, insert, isLeaf, remove, removeTreeModelListener, run, setEnabled, setRoot, treeChanged
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Methods inherited from interface de.grogra.util.MappedTreeModel
createNode, disposeNode, isImage, treeChanged
Methods inherited from interface de.grogra.util.MutableTreeModel
insert, remove, setRoot
Methods inherited from interface javax.swing.tree.TreeModel
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged
-
Field Details
-
sourceTree
-
mapper
-
sourceRoot
-
-
Constructor Details
-
MappedComponentModel
-
MappedComponentModel
-
-
Method Details
-
getToolkit
-
compare
- Specified by:
compare
in interfaceComparator
-
map
public void map(boolean attach) -
isSourceRoot
-
dispose
public final void dispose()- Specified by:
dispose
in interfaceDisposable
-
disposeImpl
protected void disposeImpl() -
revalidate
-
treeChangedSync
- Specified by:
treeChangedSync
in classComponentModel
-
getSourceTree
-