de.grogra.pf.ui.tree
Class UISubTree
java.lang.Object
de.grogra.util.TreeModelSupport
de.grogra.util.SubTree
de.grogra.pf.ui.tree.UISubTree
- All Implemented Interfaces:
- UINodeHandler, UITree, Disposable, java.util.EventListener, javax.swing.event.TreeModelListener, javax.swing.tree.TreeModel
public class UISubTree
- extends SubTree
- implements UITree
Fields inherited from interface de.grogra.pf.ui.tree.UINodeHandler |
ACTION_DELETE, 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_ITEM, NT_ITEM_GROUP, NT_LINK, NT_MOUSE_MOTION, NT_SELECTABLE, NT_SEPARATOR, NT_SPECIAL, NT_UNDEFINED |
Constructor Summary |
UISubTree(UITree tree,
javax.swing.tree.TreePath pathToRoot)
|
Method Summary |
void |
eventOccured(java.lang.Object node,
java.util.EventObject event)
|
Context |
getContext()
|
java.lang.Object |
getDescription(java.lang.Object node,
java.lang.String type)
|
java.lang.String |
getName(java.lang.Object node)
|
java.lang.Object |
getParent(java.lang.Object child)
|
int |
getType(java.lang.Object node)
|
java.lang.Object |
invoke(java.lang.Object node,
java.lang.String method,
java.lang.Object arg)
|
boolean |
isAvailable(java.lang.Object node)
|
boolean |
isEnabled(java.lang.Object node)
|
boolean |
nodesEqual(java.lang.Object a,
java.lang.Object b)
|
java.lang.Object |
resolveLink(java.lang.Object node)
|
void |
update()
|
Methods inherited from class de.grogra.util.SubTree |
allListenersRemoved, dispose, disposeImpl, firstListenerAdded, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, treeNodesChanged, treeNodesInserted, treeNodesRemoved, treeStructureChanged, valueForPathChanged |
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, isLeaf, removeTreeModelListener, valueForPathChanged |
uiTree
protected UITree uiTree
UISubTree
public UISubTree(UITree tree,
javax.swing.tree.TreePath pathToRoot)
eventOccured
public void eventOccured(java.lang.Object node,
java.util.EventObject event)
- Specified by:
eventOccured
in interface UINodeHandler
getContext
public Context getContext()
- Specified by:
getContext
in interface UITree
getDescription
public java.lang.Object getDescription(java.lang.Object node,
java.lang.String type)
- Specified by:
getDescription
in interface UINodeHandler
getName
public java.lang.String getName(java.lang.Object node)
- Specified by:
getName
in interface UINodeHandler
getParent
public java.lang.Object getParent(java.lang.Object child)
- Specified by:
getParent
in interface UITree
getType
public int getType(java.lang.Object node)
- Specified by:
getType
in interface UINodeHandler
invoke
public java.lang.Object invoke(java.lang.Object node,
java.lang.String method,
java.lang.Object arg)
- Specified by:
invoke
in interface UINodeHandler
isAvailable
public boolean isAvailable(java.lang.Object node)
- Specified by:
isAvailable
in interface UINodeHandler
isEnabled
public boolean isEnabled(java.lang.Object node)
- Specified by:
isEnabled
in interface UINodeHandler
nodesEqual
public boolean nodesEqual(java.lang.Object a,
java.lang.Object b)
- Specified by:
nodesEqual
in interface UINodeHandler
resolveLink
public java.lang.Object resolveLink(java.lang.Object node)
- Specified by:
resolveLink
in interface UINodeHandler
update
public void update()
- Specified by:
update
in interface UITree