diff options
author | Bernard Normier <bernard@zeroc.com> | 2005-09-27 14:57:58 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2005-09-27 14:57:58 +0000 |
commit | 731b70f3de99ecc9be2137a383d087a0f51c8553 (patch) | |
tree | afa4de6f5748a2609297a65a205107869fbb72ca /java/src/IceGrid/TreeNode/CommonBase.java | |
parent | Fixed bug 495 - assertion on server side udp shutdown (diff) | |
download | ice-731b70f3de99ecc9be2137a383d087a0f51c8553.tar.bz2 ice-731b70f3de99ecc9be2137a383d087a0f51c8553.tar.xz ice-731b70f3de99ecc9be2137a383d087a0f51c8553.zip |
Service templates editing + refactoring
Diffstat (limited to 'java/src/IceGrid/TreeNode/CommonBase.java')
-rwxr-xr-x | java/src/IceGrid/TreeNode/CommonBase.java | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/java/src/IceGrid/TreeNode/CommonBase.java b/java/src/IceGrid/TreeNode/CommonBase.java index ce7f6a80d21..eb674869c07 100755 --- a/java/src/IceGrid/TreeNode/CommonBase.java +++ b/java/src/IceGrid/TreeNode/CommonBase.java @@ -38,12 +38,6 @@ public interface CommonBase extends TreeCellRenderer Model getModel();
//
- // Unregister this element with the enclosing application;
- // often no-op
- //
- void unregister();
-
- //
// Ephemeral objects are destroyed when you switch selection
// without "apply"ing the changes.
//
@@ -54,23 +48,16 @@ public interface CommonBase extends TreeCellRenderer //
boolean destroy();
+
//
- // Set this node as a parent, and recursively update
- // the path of all children.
- // This method has no effect on the parent->children relationship,
- // only child->parent.
- //
- void setParent(CommonBase newParent);
-
- //
- // Get this node's parent
- // This is used by nodes to create events
- // pointing to themselves
+ // Get this node's parent;
+ // null when the node is not attached to the root
//
CommonBase getParent();
//
- // The path to this node
+ // The path to this node;
+ // null when the node is not attached to the root
// typically used by children to create TreeModelEvents
//
TreePath getPath();
@@ -134,4 +121,15 @@ public interface CommonBase extends TreeCellRenderer //
void moveUp();
void moveDown();
+
+ //
+ // Set this child's parent
+ //
+ void setParent(CommonBase parent);
+ void clearParent();
+
+ //
+ // Find all instances of this child (including this child)
+ //
+ java.util.List findAllInstances(CommonBase child);
}
|