org.orange.kicsa.business.skill
Class SkillTree


public class SkillTree
implements TreeModel

Author:
Jérôme Beau pour Orange (c) 2002
Version: $Revision: 1.1.1.1 $
testcase <{test.org.orange.kicsa.business.TestSkillTree}

Constructor Summary
SkillTree(Skill someRootSkill)
           

Method Summary
 voidaddTreeModelListener(TreeModelListener modelListener)
           
 ObjectgetChild(Object someParentSkill, int someIndex)
           
 intgetChildCount(Object someParent)
          Lazy loading et mise en cache.
 CollectiongetChilds(Skill someParent)
           
 intgetIndexOfChild(Object someParentSkill, Object someChildSkill)
           
 CollectiongetParents(Skill someChild)
           
 ObjectgetRoot()
           
 booleanisLeaf(Object someParent)
           
 voidremoveTreeModelListener(TreeModelListener modelListener)
           
 voidvalueForPathChanged(TreePath path, Object obj)
           

Constructor Detail

SkillTree

public SkillTree(Skill someRootSkill)
throws org.orange.util.integration.DAOException
Method Detail

addTreeModelListener

public void addTreeModelListener(TreeModelListener modelListener)

getChild

public Object getChild(Object someParentSkill, int someIndex)
Returns: Le n-ième fils du parent

getChildCount

public int getChildCount(Object someParent)
Lazy loading et mise en cache.
Parameters:
La compétence mère
Returns: Le nombre de compétences filles

getChilds

public Collection getChilds(Skill someParent)
Returns: Les compétences filles d'une compétence mère

getIndexOfChild

public int getIndexOfChild(Object someParentSkill, Object someChildSkill)

getParents

public Collection getParents(Skill someChild)
Parameters:
someChildSkill la competence fille
Returns: l'ensemble des parents

getRoot

public Object getRoot()

isLeaf

public boolean isLeaf(Object someParent)
Returns: Si la compétence est une feuille (n'a pas de fils)

removeTreeModelListener

public void removeTreeModelListener(TreeModelListener modelListener)

valueForPathChanged

public void valueForPathChanged(TreePath path, Object obj)

Association Links

to Class org.orange.kicsa.integration.skill.SkillDAO

Supplier Role dao

to Class org.orange.kicsa.business.skill.Skill

Supplier Qualifier root

Dependency Links

to Class org.orange.kicsa.business.skill.SkillImpl

Stereotype provides
link dependency

to Class org.orange.kicsa.business.skill.Skill

Stereotype aggregates
link dependency

to Class javax.swing.tree.TreeModel

to Class org.orange.kicsa.business.skill.Skill

to Class org.orange.util.integration.DAOException

to Class org.orange.kicsa.Application

to Class java.lang.Throwable

to Class java.lang.Object

to Class java.lang.RuntimeException

to Class java.lang.Class

to Class java.util.Collection

to Class java.util.Iterator

to Class javax.swing.tree.TreePath

to Class java.lang.System

to Class javax.swing.event.TreeModelListener

to Class org.orange.kicsa.business.skill.SkillImpl

to Class org.orange.kicsa.integration.skill.SkillDAO

to Class Diagram org.orange.kicsa.business.skill

to Class Diagram org.orange.kicsa.business

to Class Diagram org.orange.kicsa

to Class Diagram org.orange

to Class Diagram org

to Class Diagram <default>

to Class Diagram org.orange.util.integration

to Class Diagram org.orange.util

to Class Diagram org.orange.kicsa.integration.skill

to Class Diagram org.orange.kicsa.integration