|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.jigadmin.editors.RemoteResourceWrapperNode
public class RemoteResourceWrapperNode
The TreeNode for Resources
Field Summary | |
---|---|
protected java.util.Vector |
children
|
protected java.lang.String |
name
|
protected RemoteResourceWrapperNode |
parent
|
protected RemoteResourceWrapper |
rrw
|
Constructor Summary | |
---|---|
protected |
RemoteResourceWrapperNode(RemoteResourceWrapperNode parent,
RemoteResourceWrapper rrw,
java.lang.String name)
Constructor |
protected |
RemoteResourceWrapperNode(RemoteResourceWrapper rrw,
java.lang.String name)
Constructor |
Method Summary | |
---|---|
protected void |
acquireChildren()
Load the children if needed. |
java.util.Enumeration |
children()
Returns the children of the reciever as an Enumeration. |
boolean |
getAllowsChildren()
Returns true if the receiver allows children. |
javax.swing.tree.TreeNode |
getChildAt(int childIndex)
Returns the child TreeNode at index childIndex. |
int |
getChildCount()
Returns the number of children TreeNodes the receiver contains. |
int |
getIndex(javax.swing.tree.TreeNode node)
Returns the index of node in the receivers children. |
javax.swing.tree.TreeNode |
getParent()
Returns the parent TreeNode of the receiver. |
RemoteResourceWrapper |
getResourceWrapper()
Get the associated RemoteResourceWrapper. |
void |
insert(javax.swing.tree.MutableTreeNode child,
int index)
Adds child to the receiver at index. |
boolean |
isLeaf()
Returns true if the receiver is a leaf. |
protected void |
loadChildren()
Load the children of this node. |
void |
nodeWillCollapse()
Invoked whenever this node is about to be collapsed. |
void |
nodeWillExpand()
Invoked whenever this node is about to be expanded. |
void |
remove(int index)
Removes the child at index from the receiver. |
void |
remove(javax.swing.tree.MutableTreeNode node)
Removes node from the receiver. |
void |
removeFromParent()
Removes the receiver from its parent. |
void |
setParent(javax.swing.tree.MutableTreeNode newParent)
Sets the parent of the receiver to newParent. |
void |
setUserObject(java.lang.Object object)
Resets the user object of the receiver to object. |
java.lang.String |
toString()
Return the string reoresentation of this node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected RemoteResourceWrapper rrw
protected RemoteResourceWrapperNode parent
protected java.lang.String name
protected java.util.Vector children
Constructor Detail |
---|
protected RemoteResourceWrapperNode(RemoteResourceWrapperNode parent, RemoteResourceWrapper rrw, java.lang.String name)
parent
- The parent noderrw
- The associated RemoteResourceWrappername
- The name of this nodeprotected RemoteResourceWrapperNode(RemoteResourceWrapper rrw, java.lang.String name)
rrw
- The associated RemoteResourceWrappername
- The name of this nodeMethod Detail |
---|
protected void loadChildren()
public void nodeWillExpand()
nodeWillExpand
in interface RemoteNode
public void nodeWillCollapse()
nodeWillCollapse
in interface RemoteNode
public RemoteResourceWrapper getResourceWrapper()
protected void acquireChildren()
public javax.swing.tree.TreeNode getChildAt(int childIndex)
getChildAt
in interface javax.swing.tree.TreeNode
childIndex
- the index of the child to return
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 children()
children
in interface javax.swing.tree.TreeNode
public void insert(javax.swing.tree.MutableTreeNode child, int index)
insert
in interface javax.swing.tree.MutableTreeNode
child
- the child to add.index
- the index of the new child.public void remove(int index)
remove
in interface javax.swing.tree.MutableTreeNode
the
- index of the child to remove.public void remove(javax.swing.tree.MutableTreeNode node)
remove
in interface javax.swing.tree.MutableTreeNode
node
- the node to removepublic void setUserObject(java.lang.Object object)
setUserObject
in interface javax.swing.tree.MutableTreeNode
object
- the new user object, actually the new identifier.public void removeFromParent()
removeFromParent
in interface javax.swing.tree.MutableTreeNode
public void setParent(javax.swing.tree.MutableTreeNode newParent)
setParent
in interface javax.swing.tree.MutableTreeNode
newParent
- the new parent.public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |