Search in sources :

Example 1 with Hyperlink

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;
}
Also used : UserConsentDescription(org.openecard.gui.definition.UserConsentDescription) Text(org.openecard.gui.definition.Text) Step(org.openecard.gui.definition.Step) Hyperlink(org.openecard.gui.definition.Hyperlink)

Aggregations

Hyperlink (org.openecard.gui.definition.Hyperlink)1 Step (org.openecard.gui.definition.Step)1 Text (org.openecard.gui.definition.Text)1 UserConsentDescription (org.openecard.gui.definition.UserConsentDescription)1