Search in sources :

Example 6 with Step

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

Example 7 with Step

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

Example 8 with Step

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

Example 9 with Step

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

Example 10 with Step

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