public abstract class AbstractVersionTreeNode
extends javax.swing.tree.DefaultMutableTreeNode
implements java.lang.Comparable<javax.swing.tree.MutableTreeNode>
árvore de versões| Constructor and Description |
|---|
AbstractVersionTreeNode(VersionTree tree,
java.lang.Object userObject)
Cria um inicializado com o objeto passado.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(javax.swing.tree.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(javax.swing.tree.MutableTreeNode node)
Método para comparação de nós.
|
javax.swing.JPopupMenu |
createPopupMenu()
Cria um menu pop-up para este nó.
|
abstract javax.swing.ImageIcon |
getImageIcon()
Obtém a imagem a ser utilizada para representar este nó.
|
java.lang.String |
getName() |
VersionTree |
getTree()
Obtém a árvore que detém este nó.
|
java.awt.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, java.lang.Object userObject)
Object.toString() do objeto irá determinar o nome deste nó. tree - userObject - public final VersionTree getTree()
public final java.awt.Window getWindow()
public javax.swing.JPopupMenu createPopupMenu()
Component.show() foi sobrescrito para não mostrar nada. Caso
queira que este nó tenha um menu pop-up, sobrescreva este método.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(javax.swing.tree.MutableTreeNode newChild)
add in class javax.swing.tree.DefaultMutableTreeNodepublic java.lang.String getName()
public int compareTo(javax.swing.tree.MutableTreeNode node)
compareTo in interface java.lang.Comparable<javax.swing.tree.MutableTreeNode>Comparable.compareTo(java.lang.Object)public abstract javax.swing.ImageIcon getImageIcon()
Obtém a imagem a ser utilizada para representar este nó.
Caso este método retorne null, o renderizador irá desenhar o nó da
forma padrão de acordo com o Toolkit
Copyright © 2018. All Rights Reserved.