java.lang.Object
de.grogra.pf.ui.tree.RegistryAdapter
- All Implemented Interfaces:
RegistryContext
,UINodeHandler
,UITree
,Disposable
,TreeModel
-
Field Summary
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
ConstructorDescriptionRegistryAdapter
(Context context) RegistryAdapter
(Context context, Registry registry) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTreeModelListener
(TreeModelListener listener) void
dispose()
void
eventOccured
(Object node, EventObject event) int
getChildCount
(Object parent) getDescription
(Object node, String type) int
getIndexOfChild
(Object parent, Object child) Returns theRegistry
which is linked with this instance.getRoot()
int
boolean
isAvailable
(Object node) boolean
boolean
boolean
nodesEqual
(Object a, Object b) void
removeTreeModelListener
(TreeModelListener listener) resolveLink
(Object node) void
update()
void
valueForPathChanged
(TreePath path, Object newValue)
-
Constructor Details
-
RegistryAdapter
-
RegistryAdapter
-
-
Method Details
-
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
-
dispose
public void dispose()- Specified by:
dispose
in interfaceDisposable
-
getContext
- Specified by:
getContext
in interfaceUITree
-
nodesEqual
- Specified by:
nodesEqual
in interfaceUINodeHandler
-
getDescription
- Specified by:
getDescription
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
-
eventOccured
- Specified by:
eventOccured
in interfaceUINodeHandler
-
invoke
- Specified by:
invoke
in interfaceUINodeHandler
-
isLeaf
- Specified by:
isLeaf
in interfaceTreeModel
- Specified by:
isLeaf
in interfaceUINodeHandler
-
getChild
-
getChildCount
- Specified by:
getChildCount
in interfaceTreeModel
-
getIndexOfChild
- Specified by:
getIndexOfChild
in interfaceTreeModel
-
getParent
-
getRoot
-
valueForPathChanged
- Specified by:
valueForPathChanged
in interfaceTreeModel
-
addTreeModelListener
- Specified by:
addTreeModelListener
in interfaceTreeModel
-
removeTreeModelListener
- Specified by:
removeTreeModelListener
in interfaceTreeModel
-
update
public void update()
-