private Label createSelectedAnnotationLayerLabel() { Label label = new Label("selectedAnnotationLayer", new Model<String>()); label.setOutputMarkupPlaceholderTag(true); label.add(visibleWhen(() -> getModelObject().getPreferences().isRememberLayer())); return label; }
private Label createNoRecommendationLabel() { Label noRecommendation = new Label(CID_NO_RECOMMENDATION_LABEL, "There are no further suggestions."); noRecommendation.add(visibleWhen(() -> { ActiveLearningUserState alState = alStateModel.getObject(); return alState.isSessionActive() && !alState.getSuggestion().isPresent() && !activeLearningService.hasSkippedSuggestions( getModelObject().getUser(), alState.getLayer()); })); noRecommendation.setOutputMarkupPlaceholderTag(true); return noRecommendation; }
add(new Label("leftTitle", titles.getLeft()).setOutputMarkupPlaceholderTag(true).setVisible(!hideLeft)); add(new Label("rightTitle", titles.getRight()));
private Label createNoRecommendationLabel() { Label noRecommendation = new Label(CID_NO_RECOMMENDATION_LABEL, "There are no further suggestions."); noRecommendation.add(visibleWhen(() -> { ActiveLearningUserState alState = alStateModel.getObject(); return alState.isSessionActive() && !alState.getSuggestion().isPresent() && !activeLearningService.hasSkippedSuggestions( getModelObject().getUser(), alState.getLayer()); })); noRecommendation.setOutputMarkupPlaceholderTag(true); return noRecommendation; }
public AbstractFilterPanel(String id, IModel<T> model, String filterId, IModel<OProperty> propertyModel, IVisualizer visualizer, IFilterCriteriaManager manager, IModel<Boolean> join) { super(id, model); this.filterId = filterId; this.propertyModel = propertyModel; this.visualizer = visualizer; this.joinModel = join; this.manager = manager; setOutputMarkupPlaceholderTag(true); add(new Label("title", getTitle())); CheckBox checkBox = new CheckBox("join", join); checkBox.add(new AjaxFormSubmitBehavior("change") {}); checkBox.setOutputMarkupId(true); add(checkBox); add(new Label("joinTitle", new ResourceModel("widget.document.filter.join")) .setOutputMarkupPlaceholderTag(true)); }
contentIdentityValueLabel.setOutputMarkupPlaceholderTag(true); contentIdentityValueLabel.setVisible(false); add(contentIdentityValueLabel);
private Label createSelectedAnnotationTypeLabel() { Label label = new Label("selectedAnnotationType", LoadableDetachableModel.of(() -> { try { return String.valueOf(WebAnnoCasUtil.selectByAddr(editorPanel.getEditorCas(), getModelObject().getSelection().getAnnotation().getId())).trim(); } catch (IOException e) { return ""; } })); label.setOutputMarkupPlaceholderTag(true); // We show the extended info on the selected annotation only when run in development mode label.add(visibleWhen(() -> getModelObject().getSelection().getAnnotation().isSet() && DEVELOPMENT.equals(getApplication().getConfigurationType()))); return label; }
private Label createRelationHint() label.setOutputMarkupPlaceholderTag(true); label.setEscapeModelStrings(false); label.add(LambdaBehavior.onConfigure(_this -> {
public AbstractFilterOPropertyPanel(String id, IModel<String> name, final Form form) { super(id); final List<AbstractFilterPanel> filterPanels = Lists.newArrayList(); final WebMarkupContainer container = new WebMarkupContainer("container"); this.containerId = container.getMarkupId(); initFilterPanels(filterPanels); List<FilterTab> tabs = createPanelSwitches("switch", filterPanels); currentTab = tabs.get(0); addFilterPanels(container, filterPanels, tabs); addFilterSwitches(container, tabs); container.setOutputMarkupPlaceholderTag(true); container.setVisible(false); container.add(newOkButton("okButton", container, form)); container.add(newClearButton("clearButton", container, form, filterPanels)); container.add(newOnEnterPressBehavior(container)); add(newShowFilterButton("showFilters", container)); container.add(new Label("panelTitle", name).setOutputMarkupPlaceholderTag(true)); add(container); setOutputMarkupPlaceholderTag(true); }
exceptionMessage.setOutputMarkupPlaceholderTag(true); exceptionMessage.setVisible(false); if (!parameters.get("errorMessage").isNull()) {
minusTextPanel.getLabel4Ajax().setOutputMarkupPlaceholderTag(true); fs.add(minusTextPanel); componentsToToggleVisibility.add(minusTextPanel.getLabel4Ajax());
setOutputMarkupPlaceholderTag(true); final Label feedback = new Label("feedback"); feedback.setOutputMarkupPlaceholderTag(true); feedback.setVisible(false); Form form = new Form("userModuleForm");
public OrienteerCloudOModulesConfigurationsPanel(String id, final OArtifactsModalWindowPage windowPage, ISortableDataProvider<OArtifact, String> provider) { super(id); setOutputMarkupPlaceholderTag(true); Form orienteerModulesForm = new Form("orienteerCloudOModulesConfigsForm"); Label feedback = new Label("feedback"); feedback.setVisible(false); feedback.setOutputMarkupPlaceholderTag(true); IModel<DisplayMode> modeModel = DisplayMode.VIEW.asModel(); List<IColumn<OArtifact, String>> columns = getColumns(modeModel); OrienteerDataTable<OArtifact, String> table = new OrienteerDataTable<>("availableModules", columns, provider, 10); table.addCommand(new AjaxCommand<OArtifact>(new ResourceModel(BACK_BUT), table) { @Override public void onClick(Optional<AjaxRequestTarget> targetOptional) { windowPage.showOrienteerModulesPanel(false); targetOptional.ifPresent(target->target.add(windowPage)); } @Override protected void onInstantiation() { super.onInstantiation(); setIcon(FAIconType.angle_left); setBootstrapType(BootstrapType.PRIMARY); setAutoNotify(false); } }); table.addCommand(new InstallOModuleCommand(table, windowPage, false, feedback)); table.addCommand(new InstallOModuleCommand(table, windowPage,true, feedback)); orienteerModulesForm.add(table); orienteerModulesForm.add(feedback); add(orienteerModulesForm); }
feedback.setOutputMarkupPlaceholderTag(true); add(feedback);
new StringResourceModel("WfsVersioningConfig.idAttributeChoiceLabel")); idAttributeChoiceLabel.setOutputMarkupId(true); idAttributeChoiceLabel.setOutputMarkupPlaceholderTag(true); idAttributeChoiceLabel.setVisible(isVersioningActivated); add(idAttributeChoiceLabel); new StringResourceModel("WfsVersioningConfig.timeAttributeChoiceLabel")); timeAttributeChoiceLabel.setOutputMarkupId(true); timeAttributeChoiceLabel.setOutputMarkupPlaceholderTag(true); timeAttributeChoiceLabel.setVisible(isVersioningActivated); add(timeAttributeChoiceLabel);
descriptionLabel.setOutputMarkupPlaceholderTag(true); valueContainer.add(descriptionLabel);
Form form = new Form("form"); Label feedback = new Label("feedback"); feedback.setOutputMarkupPlaceholderTag(true); feedback.setVisible(false); IModel<DisplayMode> modeModel = DisplayMode.VIEW.asModel();
this.removeFileSelection.setOutputMarkupPlaceholderTag(true); if (fs != null) { fs.add(this);
&& form.getModelObject().rule.getAccess().equals(GrantType.LIMIT)); allowedAreaLabel.setOutputMarkupId(true); allowedAreaLabel.setOutputMarkupPlaceholderTag(true); && form.getModelObject().rule.getAccess().equals(GrantType.LIMIT)); catalogModeChoiceLabel.setOutputMarkupId(true); catalogModeChoiceLabel.setOutputMarkupPlaceholderTag(true);