use of org.openecard.gui.definition.Step in project open-ecard by ecsec.
the class ChangePINDialog method createChangePINStep.
/**
* Create the step that asks the user to insert the old and new pins.
*
* @return Step for PIN entry
*/
private Step createChangePINStep() {
int retryCounter = getRetryCounterFromState(state);
String title = lang.translationForKey(PINSTEP_TITLE);
Step changePINStep = new ChangePINStep("pin-entry", title, capturePin, retryCounter, false, false);
StepAction pinAction = new PINStepAction(capturePin, conHandle, dispatcher, changePINStep, retryCounter);
changePINStep.setAction(pinAction);
return changePINStep;
}
use of org.openecard.gui.definition.Step in project open-ecard by ecsec.
the class ChangePINDialog method createSuccessStep.
/**
* Create the step that informs the user that everything went fine.
*
* @return Step showing success message
*/
private Step createSuccessStep() {
Step successStep = new Step("success", lang.translationForKey(SUCCESSSTEP_TITLE));
successStep.setReversible(false);
Text i1 = new Text();
i1.setText(lang.translationForKey(SUCCESSSTEP_DESCRIPTION));
successStep.getInputInfoUnits().add(i1);
return successStep;
}
use of org.openecard.gui.definition.Step in project open-ecard by ecsec.
the class GenericPINAction method generateSuccessStep.
private Step generateSuccessStep(String successMessage) {
Step successStep = new Step(lang.translationForKey(SUCCESS_TITLE));
successStep.setReversible(false);
Text successText = new Text(successMessage);
successStep.getInputInfoUnits().add(successText);
return successStep;
}
use of org.openecard.gui.definition.Step in project open-ecard by ecsec.
the class GenericPINAction method generateErrorStep.
private Step generateErrorStep(String errorMessage) {
Step errorStep = new Step(lang.translationForKey(ERROR_TITLE));
errorStep.setReversible(false);
Text errorText = new Text(errorMessage);
errorStep.getInputInfoUnits().add(errorText);
return errorStep;
}
use of org.openecard.gui.definition.Step in project open-ecard by ecsec.
the class PINStepAction method createPINReplacementStep.
/**
* Create the step that asks the user to insert the old and new pins.
*
* @return Step for PIN entry
*/
private Step createPINReplacementStep(boolean enteredWrong, boolean verifyFailed) {
String title = lang.translationForKey(PINSTEP_TITLE);
Step changePINStep = new ChangePINStep("pin-entry", title, capturePin, retryCounter, enteredWrong, verifyFailed);
StepAction pinAction = new PINStepAction(capturePin, conHandle, dispatcher, changePINStep, retryCounter);
changePINStep.setAction(pinAction);
return changePINStep;
}
Aggregations