|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.norvelle.textcite.gui.outlook_bar.AuthorPubTreeNode
public class AuthorPubTreeNode
AuthorPubTreeNode: A TreeNode implementation that is intelligent about representing Authors and their Publications in tree form.
Field Summary | |
---|---|
protected java.util.Vector<AuthorPubTreeNode> |
children
|
protected CiteBook |
citebook
|
protected boolean |
isRoot
|
protected AuthorPubTreeModel |
model
|
protected AuthorPubTreeNode |
parent
|
protected java.lang.Object |
userData
|
Constructor Summary | |
---|---|
AuthorPubTreeNode(Author author,
AuthorPubTreeNode parent,
AuthorPubTreeModel model)
Calling with an Author produces a node that represents an Author in the tree |
|
AuthorPubTreeNode(AuthorPubTreeModel model)
Calling with the empty constructor creates a root node |
|
AuthorPubTreeNode(Book book,
AuthorPubTreeNode parent,
AuthorPubTreeModel model)
Calling with an Author produces a node that represents an Author in the tree |
Method Summary | |
---|---|
void |
addChild(AuthorPubTreeNode child)
Add a new child to the AuthorPubTreeNode |
java.util.Enumeration<AuthorPubTreeNode> |
children()
Return a enumeration of the children |
void |
destroy()
Destructor... notify the TreeModel that this node is being eliminated, if necessary. |
boolean |
getAllowsChildren()
The root node and Author nodes allow children, but not Books |
javax.swing.tree.TreeNode |
getChildAt(int pos)
Return the node at the given position among the children |
int |
getChildCount()
|
AuthorPubTreeNode |
getChildWithUserData(java.lang.Object data)
Given a particular object of user data, find the child that hosts that data |
int |
getIndex(javax.swing.tree.TreeNode node)
|
javax.swing.tree.TreeNode |
getParent()
|
java.lang.Object |
getUserObject()
|
boolean |
isAuthor()
|
boolean |
isBook()
|
boolean |
isLeaf()
|
boolean |
isRoot()
|
void |
removeChild(AuthorPubTreeNode node)
Remove a child from the list of children |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected AuthorPubTreeNode parent
protected AuthorPubTreeModel model
protected boolean isRoot
protected java.lang.Object userData
protected java.util.Vector<AuthorPubTreeNode> children
protected CiteBook citebook
Constructor Detail |
---|
public AuthorPubTreeNode(AuthorPubTreeModel model)
public AuthorPubTreeNode(Author author, AuthorPubTreeNode parent, AuthorPubTreeModel model)
public AuthorPubTreeNode(Book book, AuthorPubTreeNode parent, AuthorPubTreeModel model)
Method Detail |
---|
public void destroy()
public void removeChild(AuthorPubTreeNode node)
node
- The child node to be removed.public void addChild(AuthorPubTreeNode child)
public javax.swing.tree.TreeNode getChildAt(int pos)
getChildAt
in interface javax.swing.tree.TreeNode
public int getChildCount()
getChildCount
in interface javax.swing.tree.TreeNode
public javax.swing.tree.TreeNode getParent()
getParent
in interface javax.swing.tree.TreeNode
public int getIndex(javax.swing.tree.TreeNode node)
getIndex
in interface javax.swing.tree.TreeNode
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
public boolean isLeaf()
isLeaf
in interface javax.swing.tree.TreeNode
public java.util.Enumeration<AuthorPubTreeNode> children()
children
in interface javax.swing.tree.TreeNode
public boolean isRoot()
public boolean isAuthor()
public boolean isBook()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getUserObject()
public AuthorPubTreeNode getChildWithUserData(java.lang.Object data)
data
- A user data object (i.e. an Author or a Book)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |