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 String getImageURL(DraggableItem item) { String moduleId = item.getId(); ImageSourcePresenter imageSource = (ImageSourcePresenter) this.playerServices.getModule(moduleId); return imageSource.getImageUrl(); }
private void setCorrectImage() { String[] answers = model.getAnswerId().split(";"); ImageSourcePresenter igp = (ImageSourcePresenter) playerServices.getModule(answers[0]); view.setImageUrl(igp.getImageUrl()); }