use of org.openecard.gui.definition.Hyperlink in project open-ecard by ecsec.
the class UpdateDialog method createDialog.
private UserConsentDescription createDialog() throws MalformedURLException {
UserConsentDescription uc = new UserConsentDescription(LANG.translationForKey(TITLE), "update_dialog");
Step s = new Step(LANG.translationForKey(TITLE));
uc.getSteps().add(s);
Text t;
if (updateRequired) {
t = new Text(LANG.translationForKey(TEXT_REQUIRED, AppVersion.getName()));
} else {
t = new Text(LANG.translationForKey(TEXT_OPTIONAL, AppVersion.getName()));
}
s.getInputInfoUnits().add(t);
s.getInputInfoUnits().add(new Text(LANG.translationForKey(TEXT_INSTRUCTIONS)));
Hyperlink link = new Hyperlink();
link.setHref(dlUrl);
s.getInputInfoUnits().add(link);
return uc;
}
Aggregations