project35.desktopDeployment
Class NavigationTreeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
project35.desktopDeployment.NavigationTreeNode
- All Implemented Interfaces:
- Serializable, Cloneable, MutableTreeNode, TreeNode
public class NavigationTreeNode
- extends DefaultMutableTreeNode
A tree node that is specialised to view Project35 record nodes
The node is capable of indicating the following aspects:
- indicate it is a search result
- indicate it is deleted
- indicate it has an error
- indicate it has been changed
- it is selected
Copyright (c) 2008 Kevin Garwood for Project35. The original code was
developed by Kevin Garwood for the University of Manchester. Revisions
have been made for Project35, a project that is independent of that
institution. This code is licensed under the Academic Free License
version 3.0. The code attribution for the original code is included here:
Copyright (c) Kevin Garwood and University of Manchester 2007.
All rights reserved. Licensed under the Academic Free License
version 3.0. For more information on the terms and conditions,
please see the file "LICENSE" that is included in this distribution.
- Version:
- 1.0
- Author:
- Kevin Garwood (kgarwood@users.sourceforge.net)
- See Also:
- Serialized Form
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
NavigationTreeNode
public NavigationTreeNode(RecordNameProvider recordNameProvider)
getDisplayName
public String getDisplayName()
getRecordNameProvider
public RecordNameProvider getRecordNameProvider()
getRecordModel
public RecordModel getRecordModel()
isSelected
public boolean isSelected()
showSearchResult
public boolean showSearchResult()
showDeleted
public boolean showDeleted()
showError
public boolean showError()
isChanged
public boolean isChanged()
hasComment
public boolean hasComment()
updateDisplayName
public void updateDisplayName(DefaultTreeModel treemodel)
setHasComment
public void setHasComment(boolean hasComment)
setSelected
public void setSelected(boolean isSelected)
setDisplayName
public void setDisplayName(String displayName)
setShowSearchResult
public void setShowSearchResult(boolean showSearchResult)
setChanged
public void setChanged(boolean isChanged)
setShowError
public void setShowError(boolean showError)
setRecordModel
public void setRecordModel(RecordNameProvider recordNameProvider)
- set the model for the node
- Parameters:
recordNameProvider - the record model