|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.w3c.jigadmin.editors.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()
public void nodeWillCollapse()
public RemoteResourceWrapper getResourceWrapper()
protected void acquireChildren()
public javax.swing.tree.TreeNode getChildAt(int childIndex)
childIndex
- the index of the child to returnpublic int getChildCount()
public javax.swing.tree.TreeNode getParent()
public int getIndex(javax.swing.tree.TreeNode node)
public boolean getAllowsChildren()
public boolean isLeaf()
public java.util.Enumeration children()
public void insert(javax.swing.tree.MutableTreeNode child, int index)
child
- the child to add.index
- the index of the new child.public void remove(int index)
the
- index of the child to remove.public void remove(javax.swing.tree.MutableTreeNode node)
node
- the node to removepublic void setUserObject(java.lang.Object object)
object
- the new user object, actually the new identifier.public void removeFromParent()
public void setParent(javax.swing.tree.MutableTreeNode newParent)
newParent
- the new parent.public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |