Mercurial > hg > Members > riono > TreeVNC_ja_comment
comparison src/main/java/jp/ac/u_ryukyu/treevnc/CreateConnectionParam.java @ 513:b97fdcd337fe
fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 20 Feb 2019 23:04:41 +0900 |
parents | 89f1f7e41838 |
children | 887ebd993b3d |
comparison
equal
deleted
inserted
replaced
512:16f9b37ef43b | 513:b97fdcd337fe |
---|---|
1 package jp.ac.u_ryukyu.treevnc; | 1 package jp.ac.u_ryukyu.treevnc; |
2 | |
3 import java.io.IOException; | |
4 import java.net.InetAddress; | |
5 import java.net.UnknownHostException; | |
6 | 2 |
7 import com.glavsoft.viewer.ViewerInterface; | 3 import com.glavsoft.viewer.ViewerInterface; |
8 import com.glavsoft.viewer.swing.ConnectionParams; | 4 import com.glavsoft.viewer.swing.ConnectionParams; |
9 | 5 |
10 public class CreateConnectionParam { | 6 public class CreateConnectionParam { |
7 | |
11 private final FindRoot getBcast; | 8 private final FindRoot getBcast; |
12 private String hostName; | 9 private String hostName; |
13 private int portNumber = ConnectionParams.DEFAULT_VNC_ROOT; | 10 private int portNumber = ConnectionParams.DEFAULT_VNC_ROOT; |
14 private TreeRFBProto rfb; | 11 private TreeRFBProto rfb; |
15 private String myHostName; | 12 private String myHostName; |
19 | 16 |
20 public CreateConnectionParam(TreeRFBProto rfb) { | 17 public CreateConnectionParam(TreeRFBProto rfb) { |
21 this.rfb = rfb; | 18 this.rfb = rfb; |
22 rfb.setConnectionParam(this); | 19 rfb.setConnectionParam(this); |
23 getBcast = new FindRoot(rfb.acceptPort,this); | 20 getBcast = new FindRoot(rfb.acceptPort,this); |
24 rfb.setFindRoot(getBcast); | 21 rfb.setFindRoot(); |
25 } | 22 } |
26 | 23 |
27 public synchronized void findTreeVncRoot() { | 24 public synchronized void findTreeVncRoot() { |
28 rfb.createRootSelectionPanel(this, getBcast); | 25 rfb.createRootSelectionPanel(this, getBcast); |
29 getBcast.findRoot(); | 26 getBcast.findRoot(); |
92 } | 89 } |
93 | 90 |
94 public synchronized void restart() { | 91 public synchronized void restart() { |
95 notify(); | 92 notify(); |
96 } | 93 } |
94 | |
95 public FindRoot getFindRoot() { | |
96 return getBcast; | |
97 } | |
98 | |
97 } | 99 } |