Search in sources :

Example 21 with Text

use of org.openecard.gui.definition.Text in project open-ecard by ecsec.

the class PINStep method updateAttemptsDisplay.

protected void updateAttemptsDisplay(int newValue) {
    for (InputInfoUnit unit : getInputInfoUnits()) {
        if (unit.getID().equals(PIN_ATTEMPTS_ID)) {
            Text text = (Text) unit;
            text.setText(LANG_PACE.translationForKey("step_pin_retrycount", newValue));
        }
    }
}
Also used : InputInfoUnit(org.openecard.gui.definition.InputInfoUnit) Text(org.openecard.gui.definition.Text)

Example 22 with Text

use of org.openecard.gui.definition.Text in project open-ecard by ecsec.

the class PINStep method addTerminalElements.

private void addTerminalElements() {
    setInstantReturn(true);
    Text description = new Text();
    description.setText(LANG_PACE.translationForKey(DESCRIPTION_NATIVE, pinType));
    getInputInfoUnits().add(description);
    Text notice = new Text();
    notice.setText(LANG_EAC.translationForKey(NOTICE, pinType));
    getInputInfoUnits().add(notice);
    Text attemptCount = new Text();
    attemptCount.setText(LANG_PACE.translationForKey("step_pin_retrycount", 3));
    attemptCount.setID(PIN_ATTEMPTS_ID);
    getInputInfoUnits().add(attemptCount);
}
Also used : Text(org.openecard.gui.definition.Text)

Example 23 with Text

use of org.openecard.gui.definition.Text in project open-ecard by ecsec.

the class PINStep method addNativeCANNotice.

protected void addNativeCANNotice() {
    Text canNotice = new Text();
    canNotice.setText(LANG_EAC.translationForKey("eac_can_notice_native"));
    canNotice.setID(CAN_NOTICE_ID);
    getInputInfoUnits().add(canNotice);
}
Also used : Text(org.openecard.gui.definition.Text)

Example 24 with Text

use of org.openecard.gui.definition.Text 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)

Example 25 with Text

use of org.openecard.gui.definition.Text in project open-ecard by ecsec.

the class PinChangeStep method addPinsDoNotMatch.

private void addPinsDoNotMatch() {
    Text incorrectInput = new Text();
    incorrectInput.setText(LANG.translationForKey("action.error.missing_password_match"));
    getInputInfoUnits().add(incorrectInput);
}
Also used : Text(org.openecard.gui.definition.Text)

Aggregations

Text (org.openecard.gui.definition.Text)49 Step (org.openecard.gui.definition.Step)19 PasswordField (org.openecard.gui.definition.PasswordField)10 ToggleText (org.openecard.gui.definition.ToggleText)7 UserConsentDescription (org.openecard.gui.definition.UserConsentDescription)7 BoxItem (org.openecard.gui.definition.BoxItem)4 Checkbox (org.openecard.gui.definition.Checkbox)3 PasswordAttributesType (iso.std.iso_iec._24727.tech.schema.PasswordAttributesType)1 DateFormat (java.text.DateFormat)1 SimpleDateFormat (java.text.SimpleDateFormat)1 Calendar (java.util.Calendar)1 CHAT (org.openecard.crypto.common.asn1.cvc.CHAT)1 UserConsent (org.openecard.gui.UserConsent)1 Document (org.openecard.gui.definition.Document)1 Hyperlink (org.openecard.gui.definition.Hyperlink)1 InputInfoUnit (org.openecard.gui.definition.InputInfoUnit)1 Radiobox (org.openecard.gui.definition.Radiobox)1 TextField (org.openecard.gui.definition.TextField)1 BackgroundTask (org.openecard.gui.executor.BackgroundTask)1 ExecutionEngine (org.openecard.gui.executor.ExecutionEngine)1