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));
}
}
}
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);
}
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);
}
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;
}
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);
}
Aggregations