diff options
Diffstat (limited to 'java/src/IceGrid/TreeNode/CommonBase.java')
-rwxr-xr-x | java/src/IceGrid/TreeNode/CommonBase.java | 27 |
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();
|