@SuppressWarnings("unchecked") public IModel<AnnotatorState> getModel() { return (IModel<AnnotatorState>) getDefaultModel(); }
public AnnotatorState getModelObject() { return (AnnotatorState) getDefaultModelObject(); }
public AnnotatorState getModelObject() { return (AnnotatorState) getDefaultModelObject(); }
curationContainer.setBratAnnotatorModel(getModelObject()); add(documentNamePanel = new DocumentNamePanel("documentNamePanel", getModel())); finishDocumentIcon = new FinishImage("finishImage", getModel()); finishDocumentIcon.setOutputMarkupId(true); finishDocumentLink.add(finishDocumentIcon);
finishDocumentIcon = new FinishImage("finishImage", getModel()); finishDocumentIcon.setOutputMarkupId(true); finishDocumentLink.add(finishDocumentIcon);
add(curationPanel); add(documentNamePanel = new DocumentNamePanel("documentNamePanel", getModel())); documentNamePanel.setOutputMarkupId(true);
private DocumentNamePanel createDocumentInfoLabel() { return new DocumentNamePanel("documentNamePanel", getModel()); }
public DocumentNamePanel(String id, final IModel<AnnotatorState> aModel) { super(id, aModel); setOutputMarkupId(true); add(new Label("doumentName", LambdaModel.of(this::getLabel)).setOutputMarkupId(true)); }
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"; } }))); }
AnnotatorState state = getModelObject(); if (RuntimeConfigurationType.DEVELOPMENT.equals(getApplication().getConfigurationType())) { sb.append(" ("); if (state.getProject() != null) {
public void setModel(IModel<AnnotatorState> aModel) { setDefaultModel(aModel); }
public void setModelObject(AnnotatorState aModel) { setDefaultModelObject(aModel); }
curationContainer.setBratAnnotatorModel(getModelObject()); add(documentNamePanel = new DocumentNamePanel("documentNamePanel", getModel())); finishDocumentIcon = new FinishImage("finishImage", getModel()); finishDocumentIcon.setOutputMarkupId(true); finishDocumentLink.add(finishDocumentIcon);
finishDocumentIcon = new FinishImage("finishImage", getModel()); finishDocumentIcon.setOutputMarkupId(true); finishDocumentLink.add(finishDocumentIcon);
add(curationPanel); add(documentNamePanel = new DocumentNamePanel("documentNamePanel", getModel())); documentNamePanel.setOutputMarkupId(true);
private DocumentNamePanel createDocumentInfoLabel() { return new DocumentNamePanel("documentNamePanel", getModel()); }