Author: pwang
Date: 2011-04-04 14:00:40 -0700 (Mon, 04 Apr 2011)
New Revision: 24660
Modified:
core3/work-swing-api/trunk/src/main/java/org/cytoscape/work/swing/AbstractGUITunableInterceptor.java
Log:
Set parent for Tunable JDialog
Modified:
core3/work-swing-api/trunk/src/main/java/org/cytoscape/work/swing/AbstractGUITunableInterceptor.java
===================================================================
---
core3/work-swing-api/trunk/src/main/java/org/cytoscape/work/swing/AbstractGUITunableInterceptor.java
2011-04-04 20:59:31 UTC (rev 24659)
+++
core3/work-swing-api/trunk/src/main/java/org/cytoscape/work/swing/AbstractGUITunableInterceptor.java
2011-04-04 21:00:40 UTC (rev 24660)
@@ -17,6 +17,7 @@
import org.slf4j.LoggerFactory;
import java.util.Vector;
import java.awt.Dimension;
+import java.awt.Window;
/**
* Interceptor of <code>Tunable</code>s that will be applied on
<code>GUITunableHandlers</code>.
@@ -52,6 +53,8 @@
/** Provides an initialised logger. */
protected Logger logger;
+ protected Window parent = null;
+
/**
* Creates an Interceptor that will use the
<code>GUITunableHandlers</code> created in a
* <code>TunableHandlerFactory</code> from intercepted
<code>Tunables</code>.
@@ -63,10 +66,10 @@
}
/** {@inheritDoc} */
- final public void setParent(final JPanel parent) {
+ public void setTunablePanel(final JPanel parent){
this.parentPanel = (JPanel)parent;
}
-
+
/** {@inheritDoc} */
final public JPanel getUI(final Object... proxyObjs) {
this.objectsWithTunables = convertSpringProxyObjs(proxyObjs);
@@ -127,7 +130,7 @@
//
tunnableDialog = new TunnableDialog();
- tunnableDialog.setLocationRelativeTo(parentPanel);
+ tunnableDialog.setLocationRelativeTo(parent);
tunnableDialog.setTitle("Set Parameters");
tunnableDialog.addComponent(optionPanel);
--
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.