本文整理了Java中org.apache.wicket.markup.html.basic.Label.setOutputMarkupPlaceholderTag()
方法的一些代码示例,展示了Label.setOutputMarkupPlaceholderTag()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setOutputMarkupPlaceholderTag()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.basic.Label
类名称:Label
方法名:setOutputMarkupPlaceholderTag
暂无
代码示例来源:origin: webanno/webanno
private Label createSelectedAnnotationLayerLabel()
{
Label label = new Label("selectedAnnotationLayer", new Model<String>());
label.setOutputMarkupPlaceholderTag(true);
label.add(visibleWhen(() -> getModelObject().getPreferences().isRememberLayer()));
return label;
}
代码示例来源:origin: inception-project/inception
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;
}
代码示例来源:origin: apache/syncope
add(new Label("leftTitle", titles.getLeft()).setOutputMarkupPlaceholderTag(true).setVisible(!hideLeft));
add(new Label("rightTitle", titles.getRight()));
代码示例来源:origin: de.tudarmstadt.ukp.inception.app/inception-active-learning
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;
}
代码示例来源:origin: OrienteerBAP/Orienteer
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));
}
代码示例来源:origin: org.onehippo.cms7/hippo-cms-console-frontend
contentIdentityValueLabel.setOutputMarkupPlaceholderTag(true);
contentIdentityValueLabel.setVisible(false);
add(contentIdentityValueLabel);
代码示例来源:origin: webanno/webanno
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;
}
代码示例来源:origin: webanno/webanno
private Label createRelationHint()
label.setOutputMarkupPlaceholderTag(true);
label.setEscapeModelStrings(false);
label.add(LambdaBehavior.onConfigure(_this -> {
代码示例来源:origin: OrienteerBAP/Orienteer
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);
}
代码示例来源:origin: apache/syncope
exceptionMessage.setOutputMarkupPlaceholderTag(true);
exceptionMessage.setVisible(false);
if (!parameters.get("errorMessage").isNull()) {
代码示例来源:origin: micromata/projectforge
minusTextPanel.getLabel4Ajax().setOutputMarkupPlaceholderTag(true);
fs.add(minusTextPanel);
componentsToToggleVisibility.add(minusTextPanel.getLabel4Ajax());
代码示例来源:origin: OrienteerBAP/Orienteer
setOutputMarkupPlaceholderTag(true);
final Label feedback = new Label("feedback");
feedback.setOutputMarkupPlaceholderTag(true);
feedback.setVisible(false);
Form form = new Form("userModuleForm");
代码示例来源:origin: OrienteerBAP/Orienteer
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);
}
代码示例来源:origin: theonedev/onedev
feedback.setOutputMarkupPlaceholderTag(true);
add(feedback);
代码示例来源:origin: org.geoserver.community/gs-nsg-wfs-profile
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);
代码示例来源:origin: theonedev/onedev
descriptionLabel.setOutputMarkupPlaceholderTag(true);
valueContainer.add(descriptionLabel);
代码示例来源:origin: OrienteerBAP/Orienteer
Form form = new Form("form");
Label feedback = new Label("feedback");
feedback.setOutputMarkupPlaceholderTag(true);
feedback.setVisible(false);
IModel<DisplayMode> modeModel = DisplayMode.VIEW.asModel();
代码示例来源:origin: micromata/projectforge
this.removeFileSelection.setOutputMarkupPlaceholderTag(true);
if (fs != null) {
fs.add(this);
代码示例来源:origin: org.geoserver.community/gs-geofence-server
&& 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);
内容来源于网络,如有侵权,请联系作者删除!