Author: mmichaud
Date: 2009-04-06 07:51:42 -0700 (Mon, 06 Apr 2009)
New Revision: 16464
Modified:
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/gui/GuiTunableInterceptor.java
Log:
Modified:
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/gui/GuiTunableInterceptor.java
===================================================================
---
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/gui/GuiTunableInterceptor.java
2009-04-06 14:51:37 UTC (rev 16463)
+++
csplugins/trunk/pasteur/mathieu/tunables2/src/main/java/org/cytoscape/work/internal/gui/GuiTunableInterceptor.java
2009-04-06 14:51:42 UTC (rev 16464)
@@ -15,6 +15,7 @@
import javax.swing.border.TitledBorder;
import org.cytoscape.work.AbstractTunableInterceptor;
+import org.cytoscape.work.TunableValidator;
import org.cytoscape.work.util.CollapsablePanel;
import org.cytoscape.work.util.XorPanel;
import org.cytoscape.work.Tunable.Param;
@@ -61,6 +62,7 @@
}
}
+
Map<String,Param> groupalignement = new
HashMap<String,Param>();
String[] group = gh.getTunable().group();
Param[] alignments =
gh.getTunable().alignment();
@@ -81,6 +83,7 @@
for ( String g : group ) {
if ( !panels.containsKey(g) ) {
panels.put(g,createJPanel(g,gh,groupalignement.get(g)));
+
panels.get(lastGroup).add(
panels.get(g), gh.getTunable().xorKey() );
}
lastGroup = g;
@@ -91,6 +94,7 @@
panelMap.put(lh,panels.get(MAIN));
}
+
// get the gui into the proper state
for ( Guihandler h : lh )
h.notifyDependents();
@@ -106,8 +110,19 @@
buttons,
buttons[0]);
+
if ( n == JOptionPane.OK_OPTION ){
- for ( Guihandler h : lh )
h.notifyDependents();//h.handle();
+ for ( Guihandler h : lh ){
+
+// for(Object o : objs){
+// Object[] interfaces =
o.getClass().getInterfaces();
+// for(int
i=0;i<interfaces.length;i++){
+//
if(interfaces[i].equals(TunableValidator.class))((TunableValidator)o).validate(h.getName());
+// }
+// }
+ if(h.getDependency()==null)h.handle();
+ else h.notifyDependents();//h.handle();
+ }
return true;
}
else
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---