Пример #1
0
  @Override
  public String isPageComplete() {
    if (txtUsername.isGhosted()) return "Username not set";

    cs.username = txtUsername.getText();
    cs.password = new String(txtPassword.getPassword());
    cs.product = prodKeys.getProduct();
    cs.setCDKey(prodKeys.getCDKey());
    cs.setCDKey2(prodKeys.getCDKey2());

    // Validate the configuration
    String error = cs.isValid();
    if (error != null) return error;

    // Config was valid
    cs.save();
    return null;
  }
Пример #2
0
 @Override
 public void display() {
   prodKeys.updateProducts();
 }