diff options
author | Bernard Normier <bernard@zeroc.com> | 2005-09-14 20:57:46 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2005-09-14 20:57:46 +0000 |
commit | 104af1dc172a869e08c873002bb530484570b2b6 (patch) | |
tree | a8f691989544d7811735480646f78b09af249133 /java/src/IceGrid/TreeNode/CommonBase.java | |
parent | adding collocated tests (diff) | |
download | ice-104af1dc172a869e08c873002bb530484570b2b6.tar.bz2 ice-104af1dc172a869e08c873002bb530484570b2b6.tar.xz ice-104af1dc172a869e08c873002bb530484570b2b6.zip |
copy/paste/delete
Diffstat (limited to 'java/src/IceGrid/TreeNode/CommonBase.java')
-rwxr-xr-x | java/src/IceGrid/TreeNode/CommonBase.java | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/java/src/IceGrid/TreeNode/CommonBase.java b/java/src/IceGrid/TreeNode/CommonBase.java index b8859281012..ecd2c824d88 100755 --- a/java/src/IceGrid/TreeNode/CommonBase.java +++ b/java/src/IceGrid/TreeNode/CommonBase.java @@ -43,11 +43,16 @@ public interface CommonBase extends TreeCellRenderer //
void unregister();
+ //
+ // Ephemeral objects are destroyed when you switch selection
+ // without "apply"ing the changes.
+ //
+ boolean isEphemeral();
//
- // Destroys this node, no-op when destruction not allowed
+ // Destroys this node, returns true when destroyed
//
- void destroy();
+ boolean destroy();
//
// Set this node as a parent, and recursively update
@@ -86,4 +91,18 @@ public interface CommonBase extends TreeCellRenderer // The enclosing editable
//
Editable getEditable();
+
+
+ //
+ // Returns a copy of the descriptor underlying the object;
+ // null if the object can't be copied
+ //
+ Object copy();
+
+ //
+ // Create a new object using this descriptor in this container
+ // or the parent's container; does nothing if the descriptor
+ // is not of the proper type
+ //
+ void paste(Object descriptor);
}
|