summaryrefslogtreecommitdiff
path: root/java/src/IceGrid/TreeNode/CommonBase.java
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2005-09-20 23:46:57 +0000
committerBernard Normier <bernard@zeroc.com>2005-09-20 23:46:57 +0000
commit9ab49898e47f7dbccff8b95d84bfdd2a6fa73db6 (patch)
tree745f5986b4e6b5a1a7436678971fc21f34afc417 /java/src/IceGrid/TreeNode/CommonBase.java
parentBug 467. (diff)
downloadice-9ab49898e47f7dbccff8b95d84bfdd2a6fa73db6.tar.bz2
ice-9ab49898e47f7dbccff8b95d84bfdd2a6fa73db6.tar.xz
ice-9ab49898e47f7dbccff8b95d84bfdd2a6fa73db6.zip
It's now possible to edit/add/remove services (but not service instances or
templates)
Diffstat (limited to 'java/src/IceGrid/TreeNode/CommonBase.java')
-rwxr-xr-xjava/src/IceGrid/TreeNode/CommonBase.java27
1 files changed, 25 insertions, 2 deletions
diff --git a/java/src/IceGrid/TreeNode/CommonBase.java b/java/src/IceGrid/TreeNode/CommonBase.java
index ecd2c824d88..90fa92d1e92 100755
--- a/java/src/IceGrid/TreeNode/CommonBase.java
+++ b/java/src/IceGrid/TreeNode/CommonBase.java
@@ -92,10 +92,33 @@ public interface CommonBase extends TreeCellRenderer
//
Editable getEditable();
+ //
+ // The enclosing Application
+ //
+ Application getApplication();
+
+ //
+ // Gets the associated descriptor
+ //
+ Object getDescriptor();
//
- // Returns a copy of the descriptor underlying the object;
- // null if the object can't be copied
+ // Find child whose descriptor == the given descriptor
+ //
+ CommonBase findChildWithDescriptor(Object descriptor);
+
+ //
+ // Save & restore the descriptor
+ // How much needs to be copied depends on how what the corresponding
+ // editor writes.
+ //
+ Object saveDescriptor();
+ void restoreDescriptor(Object savedDescriptor);
+
+ //
+ // Copy the underlying data (typically descriptor);
+ // this is a _deep_ copy
+ // Objects that are not copyable return null
//
Object copy();