public abstract class AbstractVersionTreeNode extends DefaultMutableTreeNode implements csbase.logic.algorithms.HistoryProvider, Comparable<MutableTreeNode>
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject| Constructor and Description |
|---|
AbstractVersionTreeNode(VersionTree tree,
Object userObject)
Cria um inicializado com o objeto passado.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(MutableTreeNode newChild)
Adiciona um nó-filho a este nó.
|
boolean |
allowMultipleSelection(AbstractVersionTreeNode other)
Indica se este nó pode ser selecionado em conjunto com o nó passado.
|
int |
compareTo(MutableTreeNode node)
Método para comparação de nós.
|
JPopupMenu |
createPopupMenu()
Cria um menu pop-up para este nó.
|
List<csbase.logic.algorithms.HistoryRecord> |
getHistory() |
abstract ImageIcon |
getImageIcon()
Obtém a imagem a ser utilizada para representar este nó.
|
String |
getName() |
VersionTree |
getTree()
Obtém a árvore que detém este nó.
|
Window |
getWindow()
Obtém a janela que criou a árvore.
|
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, toStringpublic AbstractVersionTreeNode(VersionTree tree, Object userObject)
Object.toString() do objeto irá determinar o nome deste nó. tree - árvoreuserObject - objeto que representa o nó.public final VersionTree getTree()
public final Window getWindow()
public JPopupMenu createPopupMenu()
public boolean allowMultipleSelection(AbstractVersionTreeNode other)
Indica se este nó pode ser selecionado em conjunto com o nó passado.
O padrão é retornar false. Para possibilitar a seleção deste nó em conjunto com outros, este método deve ser sobrescrito.
other - nó a ser selecionado junto com esse.public void add(MutableTreeNode newChild)
add in class DefaultMutableTreeNodepublic List<csbase.logic.algorithms.HistoryRecord> getHistory()
getHistory in interface csbase.logic.algorithms.HistoryProviderpublic String getName()
getName in interface csbase.logic.algorithms.HistoryProviderpublic int compareTo(MutableTreeNode node)
compareTo in interface Comparable<MutableTreeNode>Comparable.compareTo(java.lang.Object)Copyright © 2017. All rights reserved.