private void setGapAnswer(int index, String value) { isSetGapAnswers = true; ImageSourcePresenter igp = (ImageSourcePresenter) playerServices.getModule(value.replaceAll("\"", "")); view.setImageUrl(igp.getImageUrl()); view.resetStyles(); view.setDisabled(true); view.showCorrectAnswers(); view.removeClass("ui-state-disabled"); }
private void showAnswers() { if(!model.isActivity() && isConnectedWithMath){ this.isShowAnswersActive = true; if(!isSetGapAnswers){ view.resetStyles(); } view.setDisabled(true); view.removeClass("ui-state-disabled"); } if (!model.isActivity() || this.isShowAnswersActive) { return; } this.isShowAnswersActive = true; userReadyToDraggableItem = readyToDraggableItem; showAnswersModeDisabled = view.getDisabled(); this.currentState = getState(); view.resetStyles(); view.setDisabled(true); setCorrectImage(); view.showCorrectAnswers(); view.removeClass("ui-state-disabled"); }
private void hideAnswers() { if(!model.isActivity() && isConnectedWithMath){ this.isShowAnswersActive = false; view.setDisabled(false); } if ((!model.isActivity() || !this.isShowAnswersActive)) { return; } this.isShowAnswersActive = false; reset(); view.resetStyles(); view.setDisabled(false); setState(currentState); readyToDraggableItem = userReadyToDraggableItem; userReadyToDraggableItem = null; }
@Override public void setWorkMode() { view.resetStyles(); view.setDisabled(workModeDisabled); isShowErrorsMode = false; }