Author: ruschein
Date: 2010-08-13 12:39:30 -0700 (Fri, 13 Aug 2010)
New Revision: 21384
Added:
core3/work-api/trunk/src/main/java/org/cytoscape/work/ProvidesGUI.java
Log:
Added the new ProvidesGUI annotation as an alternative or in addition to
Tunables.
Added: core3/work-api/trunk/src/main/java/org/cytoscape/work/ProvidesGUI.java
===================================================================
--- core3/work-api/trunk/src/main/java/org/cytoscape/work/ProvidesGUI.java
(rev 0)
+++ core3/work-api/trunk/src/main/java/org/cytoscape/work/ProvidesGUI.java
2010-08-13 19:39:30 UTC (rev 21384)
@@ -0,0 +1,29 @@
+package org.cytoscape.work;
+
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+
+...@retention(RetentionPolicy.RUNTIME)
+...@target({ElementType.METHOD})
+
+
+/**
+ * An annotation type that can be applied to a <i>method</i> in order to allow
<code>TunableInterceptor</code> to catch it,
+ * and so to use its members to create a corresponding interface for a user.
+ *
+ * Here is an example of how to use a <code>ProvidesGUI</code> annotation:
+ * <p><pre>
+ * <code>
+ * @ProvidesGUI
+ * public JPanel getGUI() { return mySetupPanel; }
+ * </code>
+ * </pre></p>
+ *
+ * Please not that the method annotated with this needs to return a JPanel
and take no arguments.
+ */
+public @interface ProvidesGUI {
+}
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.