@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; }
@Override public void display() { prodKeys.updateProducts(); }