java.lang.Object
de.grogra.util.TreeModelSupport
de.grogra.util.Tree
de.grogra.util.MutableTree
de.grogra.pf.ui.tree.UITreePipeline
- All Implemented Interfaces:
RegistryContext
,UINodeHandler
,UITree
,Disposable
,MutableTreeModel
,EventListener
,TreeModelListener
,TreeModel
public class UITreePipeline
extends MutableTree
implements UITree, TreeModelListener, RegistryContext
-
Nested Class Summary
Modifier and TypeClassDescriptionfinal class
static interface
-
Field Summary
Fields inherited from class de.grogra.util.TreeModelSupport
NODES_CHANGED, NODES_INSERTED, NODES_REMOVED, STRUCTURE_CHANGED
Fields inherited from interface de.grogra.pf.ui.tree.UINodeHandler
ACTION_DELETE, ACTION_MOVE, ACTION_OPEN, ACTION_RENAME, ACTION_SELECT, GET_IMMEDIATE_LISTENER_METHOD, GET_SELECTABLE_METHOD, NODE_TYPE_MASK, NT_CHECKBOX_ITEM, NT_CHOICE_GROUP, NT_CHOICE_ITEM, NT_DIRECTORY, NT_DIRECTORY_MASK, NT_FILL, NT_GROUP, NT_HELP, NT_ITEM, NT_ITEM_GROUP, NT_LINK, NT_MOUSE_MOTION, NT_SELECTABLE, NT_SEPARATOR, NT_SPECIAL, NT_UNDEFINED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addTree
(UITreePipeline.Node dest, int pos, UITree s, Object root, ObjectToBoolean filter, Comparator comp) protected void
copyTree
(UITree s, Object root, ObjectToBoolean filter) protected UITreePipeline.Node
final void
dispose()
protected void
void
eventOccured
(Object node, EventObject event) protected void
getDescription
(Object node, String type) getParameter
(String key, Object defaultValue) Returns theRegistry
which is linked with this instance.int
void
initialize
(UITree source, Object sourceRoot, Map params) protected boolean
isAvailable
(UITree s, Object node) boolean
isAvailable
(Object node) boolean
boolean
boolean
nodesEqual
(Object a, Object b) void
resolveLink
(Object node) void
void
void
void
void
update()
Methods inherited from class de.grogra.util.MutableTree
insert, remove, remove, setRoot, valueForPathChanged
Methods inherited from class de.grogra.util.Tree
findFirst, findMax, findMax, getChild, getChildCount, getIndexOfChild, getIndexOfChild, getParent, getRoot, hasValidPath, 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 javax.swing.tree.TreeModel
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, removeTreeModelListener, valueForPathChanged
-
Constructor Details
-
UITreePipeline
public UITreePipeline()
-
-
Method Details
-
initialize
-
getSource
-
getSourceRoot
-
getParameter
-
getRegistry
Description copied from interface:RegistryContext
Returns theRegistry
which is linked with this instance.- Specified by:
getRegistry
in interfaceRegistryContext
- Returns:
- the registry linked with this instance
-
update
public void update() -
firstListenerAdded
protected void firstListenerAdded()- Overrides:
firstListenerAdded
in classTreeModelSupport
-
allListenersRemoved
protected void allListenersRemoved()- Overrides:
allListenersRemoved
in classTreeModelSupport
-
dispose
public final void dispose()- Specified by:
dispose
in interfaceDisposable
- Overrides:
dispose
in classMutableTree
-
disposeImpl
protected void disposeImpl() -
add
-
remove
-
copyTree
-
addTree
public void addTree(UITreePipeline.Node dest, int pos, UITree s, Object root, ObjectToBoolean filter, Comparator comp) -
createInitialTree
-
isAvailable
-
treeNodesChanged
- Specified by:
treeNodesChanged
in interfaceTreeModelListener
-
treeNodesInserted
- Specified by:
treeNodesInserted
in interfaceTreeModelListener
-
treeNodesRemoved
- Specified by:
treeNodesRemoved
in interfaceTreeModelListener
-
treeStructureChanged
- Specified by:
treeStructureChanged
in interfaceTreeModelListener
-
getContext
- Specified by:
getContext
in interfaceUITree
-
nodesEqual
- Specified by:
nodesEqual
in interfaceUINodeHandler
-
getType
- Specified by:
getType
in interfaceUINodeHandler
-
getName
- Specified by:
getName
in interfaceUINodeHandler
-
resolveLink
- Specified by:
resolveLink
in interfaceUINodeHandler
-
isAvailable
- Specified by:
isAvailable
in interfaceUINodeHandler
-
isEnabled
- Specified by:
isEnabled
in interfaceUINodeHandler
-
isLeaf
-
getDescription
- Specified by:
getDescription
in interfaceUINodeHandler
-
eventOccured
- Specified by:
eventOccured
in interfaceUINodeHandler
-
invoke
- Specified by:
invoke
in interfaceUINodeHandler
-