示例#1
0
	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");
	}
示例#2
0
	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");
	}
示例#3
0
	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;
	}
示例#4
0
	@Override
	public void setWorkMode() {
		view.resetStyles();
		view.setDisabled(workModeDisabled);
		isShowErrorsMode = false;
	}