de.grogra.pf.ui.edit
Class PropertyEditorTree
java.lang.Object
de.grogra.util.TreeModelSupport
de.grogra.util.Tree
de.grogra.util.MutableTree
de.grogra.pf.ui.edit.PropertyEditorTree
- All Implemented Interfaces:
- UINodeHandler, UITree, Disposable, MutableTreeModel, javax.swing.tree.TreeModel
public abstract class PropertyEditorTree
- extends MutableTree
- implements UITree
Fields inherited from class de.grogra.util.Tree |
root |
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 |
Methods inherited from class de.grogra.util.Tree |
findFirst, findMax, findMax, getChild, getChildCount, getIndexOfChild, getIndexOfChild, getParent, getRoot, hasValidPath, isLeaf, nodesEqual |
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 |
PropertyEditorTree
public PropertyEditorTree(Context context)
eventOccured
public void eventOccured(java.lang.Object node,
java.util.EventObject event)
- Specified by:
eventOccured
in interface UINodeHandler
fireChanged
protected void fireChanged(java.lang.Object changeEvent)
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
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
isMenu
public boolean isMenu()
isNodeAffectedBy
protected abstract boolean isNodeAffectedBy(PropertyEditorTree.PropertyNode node,
java.lang.Object chanveEvent)
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
setMenu
public void setMenu()
update
public void update()
- Specified by:
update
in interface UITree