public class

ConceptTreeModel

extends DefaultTreeModel
java.lang.Object
   ↳ javax.swing.tree.DefaultTreeModel
     ↳ vars.shared.ui.tree.ConceptTreeModel

Class Overview

Class that represents a threaded database aware TreeModel. Data is loaded from the database in background threads.

Summary

[Expand]
Inherited Fields
From class javax.swing.tree.DefaultTreeModel
Public Constructors
ConceptTreeModel(KnowledgebaseDAOFactory knowledgebaseDAOFactory)
Constructs ...
Public Methods
int getChildCount(Object parent)
void refresh()
Removes all nodes from the tree and refreshes the information from the database.
void setRoot(TreeNode root)
Sets the root node of the TreeModel
[Expand]
Inherited Methods
From class javax.swing.tree.DefaultTreeModel
From class java.lang.Object
From interface javax.swing.tree.TreeModel

Public Constructors

public ConceptTreeModel (KnowledgebaseDAOFactory knowledgebaseDAOFactory)

Constructs ...

Public Methods

public int getChildCount (Object parent)

public void refresh ()

Removes all nodes from the tree and refreshes the information from the database. Beaware you may need to clear the PersistenceCache for changes in the database to be picked up.

public void setRoot (TreeNode root)

Sets the root node of the TreeModel

Parameters
root Must be an instance of ConceptTreeNode or an IllegalArgumentException will be thrown