use of org.openecard.gui.definition.Step in project open-ecard by ecsec.
the class UnblockPINDialog method createErrorStep.
/**
* Create the step that informs the user that something went wrong.
*
* @return Step with error description
*/
private Step createErrorStep() {
Step errorStep = new Step("insert-card", lang.translationForKey(ERRORSTEP_TITLE));
Text i1 = new Text();
i1.setText(lang.translationForKey(ERRORSTEP_DESCRIPTION));
errorStep.getInputInfoUnits().add(i1);
return errorStep;
}
use of org.openecard.gui.definition.Step in project open-ecard by ecsec.
the class UnblockPINDialog 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));
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 CVCStep method createDummy.
public static Step createDummy() {
Step s = new Step(STEP_ID);
s.setTitle(LANG.translationForKey(TITLE));
s.setDescription(LANG.translationForKey(STEP_DESCRIPTION));
return s;
}
Aggregations