/** * 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; }
/** * 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); }
Component typeLink(String id, IModel<LayerGroupEntry> itemModel) { LayerGroupEntry entry = itemModel.getObject(); return new Label(id, "<i>" + entry.getType().toString() + "</i>") .setEscapeModelStrings(false); }
@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; }
/** * @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); }
@Override protected void populateItem(Item<String> item) { Label label = new Label("stat", item.getModel()); label.setEscapeModelStrings(false); item.add(label); } });
@Override protected void populateItem(Item<String> item) { Label label = new Label("stat", item.getModel()); label.setEscapeModelStrings(false); item.add(label); } });
@Override protected void populateItem(Item<String> item) { Label label = new Label("stat", item.getModel()); label.setEscapeModelStrings(false); item.add(label); } });
@Override protected void onInitialize() { super.onInitialize(); add(new Label("body", body).setEscapeModelStrings(false)); }
@Override protected void populateItem(Item<String> item) { Label label = new Label("stat", item.getModel()); label.setEscapeModelStrings(false); item.add(label); } });
@Override protected void populateItem(ListItem<String> aItem) { aItem.add( new Label("sentence", aItem.getModelObject()) .setEscapeModelStrings(false)); } };
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)); }
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)); }
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)); }
@Override protected void onInitialize() { super.onInitialize(); add(new Label("title", PropertyModel.of(this, "title")).setEscapeModelStrings(false)); }
/** * @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); }
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))); } }
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); }
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); }
@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); } };