Esempio n. 1
0
 private synchronized Settings getSettings() {
   User credentials =
       new User(
           window.getFdUsername().getText(), new String(window.getFdPassword().getPassword()));
   return new Settings(
       credentials,
       (SendMode) window.getCbMode().getSelectedItem(),
       window.getFdHomepage().getText(),
       window.getFdMessage().getText(),
       Integer.parseInt(window.getFdInterval().getText()));
 }
Esempio n. 2
0
 private boolean hasValidInteger() {
   return Utils.hasValidInteger(window.getFdInterval());
 }