Examples of ArgsHandler


Examples of com.nilhcem.fakesmtp.core.ArgsHandler

   * <ul><li>if the user has chosen a different port, then specifies it in the port text field.</li>
   * <li>if the user has chosen to auto-start the SMTP server, then it toggles automatically the "start server" button.</li></ul>
   * </p>
   */
  private void checkArgs() {
    ArgsHandler args = ArgsHandler.INSTANCE;

    if (args.getPort() != null) {
      portText.setText(args.getPort());
    }

    if (args.shouldStartServerAtLaunch()) {
      startServerBtn.toggleButton();
    }

    if (args.memoryModeEnabled()) {
      saveMsgTextField.get().setEnabled(false);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.