Search in sources :

Example 36 with Step

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

Example 37 with Step

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

Example 38 with Step

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

Aggregations

Step (org.openecard.gui.definition.Step)38 Text (org.openecard.gui.definition.Text)19 UserConsentDescription (org.openecard.gui.definition.UserConsentDescription)8 ToggleText (org.openecard.gui.definition.ToggleText)6 StepAction (org.openecard.gui.executor.StepAction)5 StepActionResult (org.openecard.gui.executor.StepActionResult)5 ArrayList (java.util.ArrayList)4 BoxItem (org.openecard.gui.definition.BoxItem)3 Checkbox (org.openecard.gui.definition.Checkbox)3 ExecutionResults (org.openecard.gui.executor.ExecutionResults)3 Test (org.testng.annotations.Test)3 DIDAuthenticationDataType (iso.std.iso_iec._24727.tech.schema.DIDAuthenticationDataType)2 EstablishChannel (iso.std.iso_iec._24727.tech.schema.EstablishChannel)2 EstablishChannelResponse (iso.std.iso_iec._24727.tech.schema.EstablishChannelResponse)2 ParserConfigurationException (javax.xml.parsers.ParserConfigurationException)2 Expectations (mockit.Expectations)2 DynamicContext (org.openecard.common.DynamicContext)2 WSException (org.openecard.common.WSHelper.WSException)2 AuthDataMap (org.openecard.common.anytype.AuthDataMap)2 AuthDataResponse (org.openecard.common.anytype.AuthDataResponse)2