本文整理了Java中org.apache.wicket.markup.html.basic.Label.setEscapeModelStrings()
方法的一些代码示例,展示了Label.setEscapeModelStrings()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setEscapeModelStrings()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.basic.Label
类名称:Label
方法名:setEscapeModelStrings
暂无
代码示例来源:origin: de.agilecoders.wicket/bootstrap
/**
* Sets the header label text and whether model strings should be escaped.
*
* @param label The header label
* @param escapeMarkup True is model strings should be escaped
* @return This
*/
public Modal header(final IModel<String> label, final boolean escapeMarkup) {
headerLabel.setDefaultModel(label);
headerLabel.setEscapeModelStrings(escapeMarkup);
return this;
}
代码示例来源:origin: org.opensingular/singular-form-wicket
/**
* This method is responsible for create the label of checkBox.
* Be careful, this should be LABEL, can't be BSLabel because the changed of the behavior.
*
* @param id The id of the label.
* @param labelModel The model of the label.
* @return Retuns label.
*/
protected Label buildLabel(String id, AttributeModel<String> labelModel) {
return (Label) new Label(id, labelModel.getObject())
.setEscapeModelStrings(false);
}
代码示例来源:origin: org.geoserver.web/gs-web-core
Component typeLink(String id, IModel<LayerGroupEntry> itemModel) {
LayerGroupEntry entry = itemModel.getObject();
return new Label(id, "<i>" + entry.getType().toString() + "</i>")
.setEscapeModelStrings(false);
}
代码示例来源:origin: org.opensingular/exemplos-form
@Override
protected Label buildLabel(String id, AttributeModel<String> labelModel) {
String s = labelModel.getObject();
s = s.replace("\n", "<br />");
Label label = new Label(id, Model.of(s));
label.setEscapeModelStrings(false);
return label;
}
代码示例来源:origin: org.ops4j.pax.wicket/pax-wicket-service
/**
* @param markupId
* The components markupid.
* @return The component to show while the real component is being created.
*/
public Component getLoadingComponent(final String markupId)
{
return new Label(markupId, "<img alt=\"Loading...\" src=\"" +
RequestCycle.get().urlFor(AbstractDefaultAjaxBehavior.INDICATOR) + "\"/>").setEscapeModelStrings(false);
}
代码示例来源:origin: org.opensingular/singular-requirement-commons
@Override
protected void populateItem(Item<String> item) {
Label label = new Label("stat", item.getModel());
label.setEscapeModelStrings(false);
item.add(label);
}
});
代码示例来源:origin: org.opensingular/singular-requirement-commons
@Override
protected void populateItem(Item<String> item) {
Label label = new Label("stat", item.getModel());
label.setEscapeModelStrings(false);
item.add(label);
}
});
代码示例来源:origin: org.opensingular/singular-requirement-module
@Override
protected void populateItem(Item<String> item) {
Label label = new Label("stat", item.getModel());
label.setEscapeModelStrings(false);
item.add(label);
}
});
代码示例来源:origin: org.opensingular/singular-requirement-module
@Override
protected void onInitialize() {
super.onInitialize();
add(new Label("body", body).setEscapeModelStrings(false));
}
代码示例来源:origin: org.opensingular/singular-requirement-module
@Override
protected void populateItem(Item<String> item) {
Label label = new Label("stat", item.getModel());
label.setEscapeModelStrings(false);
item.add(label);
}
});
代码示例来源:origin: de.tudarmstadt.ukp.inception.app/inception-ui-kb
@Override protected void populateItem(ListItem<String> aItem)
{
aItem.add(
new Label("sentence", aItem.getModelObject())
.setEscapeModelStrings(false));
}
};
代码示例来源:origin: org.opensingular/singular-requirement-module
public NotificationPanel(String id, IModel<Pair<String, String>> model, IModel<RI> requirementModel) {
super(id);
add(new Label("title", model.getObject().getKey()));
add(new FileDownloadLink("export-to-pdf",
getPdfModel(model, requirementModel),
ContentDisposition.INLINE,
model.getObject().getValue() + ".pdf")
);
add(new Label("content", model.getObject().getValue()).setEscapeModelStrings(false));
}
代码示例来源:origin: org.opensingular/singular-server-commons
public NotificationPanel(String id, IModel<Pair<String, String>> model, IModel<RI> requirementModel) {
super(id);
add(new Label("title", model.getObject().getKey()));
add(new FileDownloadLink("export-to-pdf",
getPdfModel(model, requirementModel),
ContentDisposition.INLINE,
model.getObject().getValue() + ".pdf")
);
add(new Label("content", model.getObject().getValue()).setEscapeModelStrings(false));
}
代码示例来源:origin: webanno/webanno
public SvgChart(String aId, IModel<JFreeChart> aModel, SvgChartOptions aOptions)
{
super(aId, aModel);
options = aOptions != null ? aOptions : new SvgChartOptions();
add(new Label("svgWrapper", LambdaModel.of(this::renderSvg)).setEscapeModelStrings(false));
}
代码示例来源:origin: org.apache.wicket/wicket-examples-jar
@Override
protected void onInitialize()
{
super.onInitialize();
add(new Label("title", PropertyModel.of(this, "title")).setEscapeModelStrings(false));
}
代码示例来源:origin: org.artifactory/artifactory-web-common
/**
* @param markupId The components markupid.
* @return The component to show while the real component is being created.
*/
public Component getLoadingComponent(final String markupId) {
IRequestHandler handler = new ResourceReferenceRequestHandler(
AbstractDefaultAjaxBehavior.INDICATOR);
return new Label(markupId, "<img alt=\"Loading...\" src=\"" +
RequestCycle.get().urlFor(handler) + "\"/>").setEscapeModelStrings(false);
}
代码示例来源:origin: org.opensingular/singular-form-wicket
protected void addSubtitleIfNeeded(WicketBuildContext ctx, final BSGrid grid) {
AttributeModel<String> subtitle = new AttributeModel<>(model, SPackageBasic.ATR_SUBTITLE);
if (isNotBlank(subtitle.getObject())) {
BSCol column = grid.newColInRow();
column.newTag("span", true, "class='subtitle'", column.newComponent(id -> (Label) new Label(id, subtitle).setEscapeModelStrings(true)));
}
}
代码示例来源:origin: org.artifactory/artifactory-web-common
public FeedbackDistributer(String id) {
super(id);
setDefaultModel(newFeedbackMessagesModel());
setOutputMarkupId(true);
add(ResourcePackage.forJavaScript(FeedbackDistributer.class));
Label script = new Label("script", new ScriptModel());
script.setEscapeModelStrings(false);
script.setVersioned(false);
add(script);
}
代码示例来源:origin: org.opensingular/singular-form-wicket
private void build(WicketBuildContext ctx) {
label = new Label("label", Model.of(Optional.ofNullable(ctx.getCurrentInstance().asAtr().getLabel()).orElse(EMPTY)));
htmlContent = new Label("htmlContent", new SInstanceValueModel<>(ctx.getModel()));
hiddenInput = new HiddenField<>("hiddenInput", new SInstanceValueModel<>(ctx.getModel()));
add(label);
add(htmlContent);
add(hiddenInput);
buttonEditar = createButtonOpenEditor();
buttonEditar.add(configureLabelButton());
add(buttonEditar);
htmlContent.setEscapeModelStrings(false);
}
代码示例来源:origin: OrienteerBAP/Orienteer
@Override
protected void onInitialize() {
super.onInitialize();
add(createLoginTitle("loginTitle"));
add(new Label("prompt", new ResourceModel("orienteer.login.prompt", "")).setEscapeModelStrings(false));
add(createLoginPanel("loginPanel"));
add(createLoginFooter("loginFooter"));
setOutputMarkupPlaceholderTag(true);
}
};
内容来源于网络,如有侵权,请联系作者删除!