|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.norvelle.textcite.model.CategoryTree
public class CategoryTree
The CategoryTree stores all the currently defined Category objects in the Citebook. It is derived from DefaultTreeModel in order to easily be able to serve as the Model for the Category tree in the OutlookPane. It also maintains a HashMap of the Category objects, stored by their ids.
Nested Class Summary | |
---|---|
static class |
CategoryTree.CategoryTreeConverter
CategoryTreeConverter is an inner class used for serializing CategoryTree objects via XStream. |
Constructor Summary | |
---|---|
CategoryTree()
Default constructor. |
Method Summary | |
---|---|
void |
addAdapter(TreeModelAdapter adapter)
|
void |
clear()
Clears the CategoryTree of all members. |
void |
debugOutputTree(javax.swing.tree.TreeNode node,
int startLevel)
|
java.lang.Object |
getRoot()
|
int |
getSize()
|
void |
nodeChanged(javax.swing.tree.TreeNode node)
|
void |
recreateAdapterCollection()
After loading a new file, the AdapterCollection (which is marked as transient) will not be recreated during the deserialization process. |
void |
registerCategory(Category cat,
Category parent)
Insert a new Category into the tree, under the indicated parent node. |
void |
removeAdapter(TreeModelAdapter adapter)
|
void |
restoreCitationReferences()
After deserializing the Books, each Book object needs to rebuild its HashMap of references to the Citations registered for the author. |
void |
unregisterCategory(Category cat)
Remove a given Category from the tree. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CategoryTree()
Method Detail |
---|
public void registerCategory(Category cat, Category parent)
cat
- The new Category to be insertedparent
- The parent Category for the new node.public void unregisterCategory(Category cat)
cat
- The Category to be removed.public void clear()
public int getSize()
public void debugOutputTree(javax.swing.tree.TreeNode node, int startLevel)
public java.lang.Object getRoot()
public void nodeChanged(javax.swing.tree.TreeNode node)
public void addAdapter(TreeModelAdapter adapter)
addAdapter
in interface TreeModelAdaptee
public void removeAdapter(TreeModelAdapter adapter)
removeAdapter
in interface TreeModelAdaptee
public void recreateAdapterCollection()
recreateAdapterCollection
in interface TreeModelAdaptee
public void restoreCitationReferences()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |