}
public void initParam(Object obj) {
OptionsParam optionsParam = (OptionsParam) obj;
ConnectionParam connectionParam = optionsParam.getConnectionParam();
// set Proxy Chain parameters
if (connectionParam.getProxyChainName().equals("")) {
chkUseProxyChain.setSelected(false);
setProxyChainEnabled(false);
} else {
chkUseProxyChain.setSelected(true);
setProxyChainEnabled(true);
txtProxyChainName.setText(connectionParam.getProxyChainName());
txtProxyChainPort.setText(Integer.toString(connectionParam.getProxyChainPort()));
txtProxyChainSkipName.setText(connectionParam.getProxyChainSkipName());
if (connectionParam.getProxyChainUserName().equals("")) {
chkProxyChainAuth.setSelected(false);
setProxyChainAuthEnabled(false);
} else {
chkProxyChainAuth.setSelected(true);
setProxyChainAuthEnabled(true);
txtProxyChainRealm.setText(connectionParam.getProxyChainRealm());
txtProxyChainUserName.setText(connectionParam.getProxyChainUserName());
txtProxyChainPassword.setText(connectionParam.getProxyChainPassword());
}
}
}