diff src/viewer_swing/java/com/glavsoft/viewer/Viewer.java @ 174:2e1530139169

reorganization
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 22 Jun 2014 11:22:52 +0900
parents 1c9f6acdfeb2
children e1aa06b0d2ff
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java	Sat Jun 21 17:28:59 2014 +0900
+++ b/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java	Sun Jun 22 11:22:52 2014 +0900
@@ -48,6 +48,7 @@
 import jp.ac.u_ryukyu.treevnc.CreateConnectionParam;
 import jp.ac.u_ryukyu.treevnc.MyRfbProto;
 import jp.ac.u_ryukyu.treevnc.client.MyRfbProtoClient;
+import jp.ac.u_ryukyu.treevnc.server.TreeManagement;
 
 @SuppressWarnings("serial")
 public class Viewer extends JApplet implements Runnable, WindowListener , ViewerInterface{
@@ -320,8 +321,20 @@
         cp.getAcceptThread().waitForShutdown();
 	}
 	
-	
-	
+
+    /**
+     * Start client with new parent (including reconnection) 
+     * @param port
+     * @param hostname
+     * @throws IOException
+     */
+	@Override
+    public void connectToParenet(int port, String hostname)  throws IOException {
+        setTeminationType(false);
+        closeApp();
+        setConnectionParam(hostname, port);
+        run();
+    }
 	
 	public void setConnectionParam(String hostName, int port) {
 		connectionParams.setHostName(hostName);
@@ -346,4 +359,37 @@
     @Override
     public void createRootSelectionPanel() {
     }
+
+    @Override
+    public void changeVNCServer(String newHostName, int i, int j, short id) {
+        
+    }
+
+    @Override
+    public void initRoot(String hostName, MyRfbProto myRfb) {
+        isApplet = false;
+        setIsTreeVNC(true);
+        setConnectionParam(hostName,ConnectionParams.DEFAULT_RFB_PORT);
+        isApplet = true;
+        run();
+    }
+
+    @Override
+    public void inhelitClients(ViewerInterface vncProxyService, String hostName) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    @Override
+    public void setTreeManager(TreeManagement treeManager) {
+        // TODO Auto-generated method stub
+        
+    }
+
+    @Override
+    public void initRootViewer(String hostName) {
+        // TODO Auto-generated method stub
+        
+    }
+
 }