add(sidebarCell); suggestionViewPanel.setOutputMarkupPlaceholderTag(true); suggestionViewPanel.add(LambdaBehavior.visibleWhen(() -> state.getDocument() != null)); add(suggestionViewPanel); annotationEditor.setOutputMarkupPlaceholderTag(true); add(annotationEditor); crossSentAnnoView.setOutputMarkupPlaceholderTag(true); crossSentAnnoView.add(LambdaBehavior.visibleWhen(() -> state.getDocument() != null)); add(crossSentAnnoView); crossSentAnnoList = new ListView<String>("crossSentAnnoList", this::invisibleCrossSentenceAnnotations) sentencesListView.setOutputMarkupPlaceholderTag(true); sentencesListView.add(LambdaBehavior.visibleWhen(() -> state.getDocument() != null)); add(sentencesListView); sentencesListView.add(new ListView<SourceListView>("sentencesList", LoadableDetachableModel.of(() -> getModelObject().getCurationViews()))
add(sidebarCell); suggestionViewPanel.setOutputMarkupPlaceholderTag(true); suggestionViewPanel.add(LambdaBehavior.visibleWhen(() -> state.getDocument() != null)); add(suggestionViewPanel); annotationEditor.setOutputMarkupPlaceholderTag(true); add(annotationEditor); crossSentAnnoView.setOutputMarkupPlaceholderTag(true); crossSentAnnoView.add(LambdaBehavior.visibleWhen(() -> state.getDocument() != null)); add(crossSentAnnoView); crossSentAnnoList = new ListView<String>("crossSentAnnoList", this::invisibleCrossSentenceAnnotations) sentencesListView.setOutputMarkupPlaceholderTag(true); sentencesListView.add(LambdaBehavior.visibleWhen(() -> state.getDocument() != null)); add(sentencesListView); sentencesListView.add(new ListView<SourceListView>("sentencesList", LoadableDetachableModel.of(() -> getModelObject().getCurationViews()))