cds.aladin
Class BasicNode

java.lang.Object
  extended by cds.aladin.BasicNode
Direct Known Subclasses:
ResourceNode

public abstract class BasicNode
extends java.lang.Object


Method Summary
 BasicNode addChild(BasicNode child)
           
 BasicNode addChild(java.lang.String childName)
           
 BasicNode addChild(java.lang.String childName, boolean isOpen, boolean isLeaf)
           
 void changeState()
           
abstract  BasicNode createNode(java.lang.String name)
           
 BasicNode getChild(java.lang.String s)
          returns the corresponding node if this node has a (direct) child called s, null otherwise
 java.util.Enumeration getChildren()
           
 BasicNode getChildrenAt(int index)
           
 int getNbOfChildren()
           
 BasicNode getParent()
           
 boolean isLastChild()
           
 boolean isSelected()
          Opens all children
 BasicNode lastChild()
           
 void removeAllChild()
          Supprime tous les sous-noeuds
 boolean removeChild(BasicNode child)
          Supprime le fils child de la liste des enfants
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createNode

public abstract BasicNode createNode(java.lang.String name)

addChild

public BasicNode addChild(java.lang.String childName)

addChild

public BasicNode addChild(java.lang.String childName,
                          boolean isOpen,
                          boolean isLeaf)

addChild

public BasicNode addChild(BasicNode child)

getChildren

public java.util.Enumeration getChildren()

getNbOfChildren

public int getNbOfChildren()

getChildrenAt

public BasicNode getChildrenAt(int index)

getParent

public BasicNode getParent()

removeChild

public boolean removeChild(BasicNode child)
Supprime le fils child de la liste des enfants

Parameters:
child - reference du noeud a supprimer
Returns:
true si le noeud a été effectivement supprimé, false sinon

removeAllChild

public void removeAllChild()
Supprime tous les sous-noeuds


changeState

public void changeState()

isLastChild

public boolean isLastChild()

lastChild

public BasicNode lastChild()

getChild

public BasicNode getChild(java.lang.String s)
returns the corresponding node if this node has a (direct) child called s, null otherwise


isSelected

public boolean isSelected()
Opens all children



Copyright © 2009 UDS/CNRS