@SuppressWarnings("unchecked") public IModel<AnnotatorState> getModel() { return (IModel<AnnotatorState>) getDefaultModel(); }
public AnnotatorState getModelObject() { return (AnnotatorState) getDefaultModelObject(); }
public void setModel(IModel<AnnotatorState> aModel) { setDefaultModel(aModel); }
finishDocumentIcon = new FinishImage("finishImage", getModel()); finishDocumentIcon.setOutputMarkupId(true); finishDocumentLink.add(finishDocumentIcon);
public FinishImage(String id, final IModel<AnnotatorState> aModel) { super(id, aModel); add(new AttributeModifier("src", LambdaModel.of(() -> { if (aModel.getObject().getProject() != null && aModel.getObject().getDocument() != null) { if (isFinished(aModel, aModel.getObject().getUser(), documentService)) { return "images/accept.png"; } else { return "images/inprogress.png"; } } else { return "images/inprogress.png"; } }))); }
public void setModelObject(AnnotatorState aModel) { setDefaultModelObject(aModel); }
finishDocumentIcon = new FinishImage("finishImage", getModel()); finishDocumentIcon.setOutputMarkupId(true); finishDocumentLink.add(finishDocumentIcon);
finishDocumentIcon = new FinishImage("finishImage", getModel()); finishDocumentIcon.setOutputMarkupId(true); finishDocumentLink.add(finishDocumentIcon);
finishDocumentIcon = new FinishImage("finishImage", getModel()); finishDocumentIcon.setOutputMarkupId(true); finishDocumentLink.add(finishDocumentIcon);