summaryrefslogtreecommitdiff
path: root/java/src/IceGrid/TreeNode/CommonBase.java
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2005-09-14 20:57:46 +0000
committerBernard Normier <bernard@zeroc.com>2005-09-14 20:57:46 +0000
commit104af1dc172a869e08c873002bb530484570b2b6 (patch)
treea8f691989544d7811735480646f78b09af249133 /java/src/IceGrid/TreeNode/CommonBase.java
parentadding collocated tests (diff)
downloadice-104af1dc172a869e08c873002bb530484570b2b6.tar.bz2
ice-104af1dc172a869e08c873002bb530484570b2b6.tar.xz
ice-104af1dc172a869e08c873002bb530484570b2b6.zip
copy/paste/delete
Diffstat (limited to 'java/src/IceGrid/TreeNode/CommonBase.java')
-rwxr-xr-xjava/src/IceGrid/TreeNode/CommonBase.java23
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);
}