示例#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 String getImageURL(DraggableItem item) {
		String moduleId = item.getId();
		ImageSourcePresenter imageSource = (ImageSourcePresenter) this.playerServices.getModule(moduleId);

		return imageSource.getImageUrl();
	}
示例#3
0
	private void setCorrectImage() {
		String[] answers = model.getAnswerId().split(";");
		ImageSourcePresenter igp = (ImageSourcePresenter) playerServices.getModule(answers[0]);
		view.setImageUrl(igp.getImageUrl());
	}