|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ozoneDB.adminGui.feature.account.groups.GroupTreeModel
This class is used to manage the group table.
Ibsen Ramos-Bonilla
Copyright © 1997-2004 by SMB GmbH. All Rights Reserved.
Constructor Summary | |
GroupTreeModel()
Overloaded constructor begins building the model from the root. |
Method Summary | |
void |
addTreeModelListener(javax.swing.event.TreeModelListener l)
Adds a listener for the TreeModelEvent posted after the tree changes. |
void |
clearGroups()
This method clears the tree information. |
void |
fireTreeStructureChanged()
The only event raised by this model is TreeStructureChanged with the root as path, i.e. the whole tree has changed. |
java.lang.Object |
getChild(java.lang.Object parent,
int index)
This method returns the child of parent at index index in the parent's child array. |
int |
getChildCount(java.lang.Object parent)
This method returns the number of children of parent. |
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child)
This method returns the index of child in parent. |
java.lang.Object |
getRoot()
This method returns the root of the tree. |
AccountItem |
getRootItem()
This method returns a reference to the root item. |
boolean |
isLeaf(java.lang.Object node)
This method returns true if node is a leaf. |
void |
removeTreeModelListener(javax.swing.event.TreeModelListener l)
Removes a listener previously added with addTreeModelListener(). |
void |
valueForPathChanged(javax.swing.tree.TreePath path,
java.lang.Object newValue)
Messaged when the account has altered the value for the item identified by path to newValue. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GroupTreeModel()
Method Detail |
public void addTreeModelListener(javax.swing.event.TreeModelListener l)
addTreeModelListener
in interface javax.swing.tree.TreeModel
l
- - a tree model listener.public void removeTreeModelListener(javax.swing.event.TreeModelListener l)
removeTreeModelListener
in interface javax.swing.tree.TreeModel
l
- - a tree model listener.public java.lang.Object getRoot()
getRoot
in interface javax.swing.tree.TreeModel
public boolean isLeaf(java.lang.Object node)
isLeaf
in interface javax.swing.tree.TreeModel
node
- - the selected node.
public int getChildCount(java.lang.Object parent)
getChildCount
in interface javax.swing.tree.TreeModel
parent
- - the parent of the child count.
public int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
getIndexOfChild
in interface javax.swing.tree.TreeModel
parent
- - the parent to check connection to.child
- - the child to find conenction from.
public void valueForPathChanged(javax.swing.tree.TreePath path, java.lang.Object newValue)
valueForPathChanged
in interface javax.swing.tree.TreeModel
path
- - the path to the selected node.newValue
- - the value for the path node changed.public java.lang.Object getChild(java.lang.Object parent, int index)
getChild
in interface javax.swing.tree.TreeModel
parent
- - the parent to search for a child.index
- - the desired children pointed by the parent.
public void fireTreeStructureChanged()
public AccountItem getRootItem()
public void clearGroups()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |