Author: pwang
Date: 2012-06-22 15:50:49 -0700 (Fri, 22 Jun 2012)
New Revision: 29671
Modified:
core3/samples/trunk/sample14/src/main/java/org/cytoscape/sample/internal/MyWebserviceClient.java
core3/samples/trunk/sample14/src/main/java/org/cytoscape/sample/internal/MyWebserviceClientPanel.java
Log:
updated
Modified:
core3/samples/trunk/sample14/src/main/java/org/cytoscape/sample/internal/MyWebserviceClient.java
===================================================================
---
core3/samples/trunk/sample14/src/main/java/org/cytoscape/sample/internal/MyWebserviceClient.java
2012-06-22 22:11:47 UTC (rev 29670)
+++
core3/samples/trunk/sample14/src/main/java/org/cytoscape/sample/internal/MyWebserviceClient.java
2012-06-22 22:50:49 UTC (rev 29671)
@@ -54,16 +54,15 @@
private final CySwingApplication app;
private final CyTableManager tableManager;
private final MapTableToNetworkTablesTaskFactory mapNetworkAttrTF;
- private final MyWebserviceClientPanel gui;
private final static String baseURL = "http://website/webservice";
+
/**
* Creates a new web service Client object.
*
* @throws ServiceException
* @throws ConfigurationException
*/
-
public MyWebserviceClient(final String displayName, final String
description,
final CyTableFactory tableFactory,
final CySwingApplication app, final CyTableManager
tableManager,
@@ -77,11 +76,9 @@
this.tableManager = tableManager;
this.mapNetworkAttrTF = mapNetworkAttrTF;
this.gui = gui;
-
}
- //@Override
public TaskIterator createTaskIterator(Object query) {
if (gui == null)
throw new IllegalStateException(
Modified:
core3/samples/trunk/sample14/src/main/java/org/cytoscape/sample/internal/MyWebserviceClientPanel.java
===================================================================
---
core3/samples/trunk/sample14/src/main/java/org/cytoscape/sample/internal/MyWebserviceClientPanel.java
2012-06-22 22:11:47 UTC (rev 29670)
+++
core3/samples/trunk/sample14/src/main/java/org/cytoscape/sample/internal/MyWebserviceClientPanel.java
2012-06-22 22:50:49 UTC (rev 29671)
@@ -79,6 +79,8 @@
this.taskManager = taskManager;
this.appManager = appManager;
+
+ initUI();
}
public void setClient(final MyWebserviceClient client) {
@@ -86,15 +88,12 @@
this.addAncestorListener(new AncestorListener() {
- //@Override
public void ancestorRemoved(AncestorEvent arg0) {
}
- //@Override
public void ancestorMoved(AncestorEvent arg0) {
}
- //@Override
public void ancestorAdded(AncestorEvent arg0) {
if(!initialized)
initPanel();
@@ -103,27 +102,26 @@
}
private void initPanel() {
-
- taskManager.setExecutionContext(null);
initialized = true;
- this.add(new JLabel("Test Test Test"));
-
- this.setBorder(BorderFactory.createTitledBorder(null, "Test
only",
- TitledBorder.CENTER,
TitledBorder.DEFAULT_POSITION,
- new Font("SansSerif", 1, 12)));
+ System.out.println("service location = "+
this.client.getServiceLocation());
}
+ private void initUI(){
+ this.setBorder(BorderFactory.createTitledBorder("test test"));
+ this.add(new JLabel("Test Test Test"));
+ }
+
public void handleEvent(final ColumnCreatedEvent e) {
- System.out.println("\nGot ColumnCreatedEvent...");
+ //System.out.println("\nGot ColumnCreatedEvent...");
}
public void handleEvent(final ColumnDeletedEvent e) {
- System.out.println("\nGot ColumnDeletedEvent...");
+ //System.out.println("\nGot ColumnDeletedEvent...");
}
public void handleEvent(final SetCurrentNetworkEvent e) {
- System.out.println("\nGot SetCurrentNetworkEvent...");
+ //System.out.println("\nGot SetCurrentNetworkEvent...");
}
}
--
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.