コード例 #1
0
ファイル: MailOption.java プロジェクト: jlc2016/rapla-1
 protected void readConfig(Configuration config) {
   listenersEnabled = false;
   try {
     useSsl.setSelected(config.getChild("ssl").getValueAsBoolean(false));
     mailServer.setValue(config.getChild("smtp-host").getValue("localhost"));
     smtpPortField.setNumber(new Integer(config.getChild("smtp-port").getValueAsInteger(25)));
     username.setText(config.getChild("username").getValue(""));
     password.setText(config.getChild("password").getValue(""));
   } finally {
     listenersEnabled = true;
   }
 }