|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttecgraf.javautils.gui.tree.DefaultNode
public class DefaultNode
Nó-padrão.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface tecgraf.javautils.gui.tree.Node |
|---|
Node.FiltrageMode |
| Constructor Summary | |
|---|---|
DefaultNode(String label)
Cria o nó sem dica como modo de filtragem padrão ( Node.FiltrageMode.EVALUATE). |
|
DefaultNode(String label,
Node.FiltrageMode filtrageMode)
Cria o nó sem dica. |
|
| Method Summary | |
|---|---|
void |
addChild(DefaultNode child)
Adiciona child a lista de filhos deste nó e coloca este nó como pai
de child. |
List<DefaultNode> |
getChildren()
Obtém a lista de filhos deste nó. |
Node.FiltrageMode |
getFiltrageMode()
Obtém o modo de filtragem deste nó. |
Icon |
getIcon()
Obtém o ícone que deverá representar este nó. |
String |
getLabel()
Obtém o rótulo deste nó. |
DefaultNode |
getParent()
Obtém o pai deste nó. |
void |
setFiltrageMode(Node.FiltrageMode filtrageMode)
Altera o modo de filtragem deste nó. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultNode(String label)
Node.FiltrageMode.EVALUATE).
label - O rótulo (Aceita null).
public DefaultNode(String label,
Node.FiltrageMode filtrageMode)
label - O rótulo (Não aceita null).filtrageMode - O modo de filtragem (Não aceita null).| Method Detail |
|---|
public final void addChild(DefaultNode child)
child a lista de filhos deste nó e coloca este nó como pai
de child.
child - O filho (Não aceita null).public final List<DefaultNode> getChildren()
Obtém a lista de filhos deste nó.
A lista retornada é imutável
(veja Collections.unmodifiableList(List)).
getChildren in interface Nodepublic final Node.FiltrageMode getFiltrageMode()
getFiltrageMode in interface Nodepublic Icon getIcon()
Obtém o ícone que deverá representar este nó.
Caso o nó não precise definir um ícone, este método retornará
null e o ícone padrão será utilizado.
getIcon in interface Nodenull para ícone-padrão.public final String getLabel()
getLabel in interface Nodenull).public final DefaultNode getParent()
getParent in interface Nodenull se ele não tiver pai.public final void setFiltrageMode(Node.FiltrageMode filtrageMode)
setFiltrageMode in interface NodefiltrageMode - O modo de filtragem (Não aceita null).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||