/** * Creates a new label component * * @param markupId the component id of the label * @return new label component */ protected <L extends Serializable> Component newLabel(final String markupId, IModel<L> model) { return new Label(markupId, model) .setRenderBodyOnly(true); }
/** * creates a new label component * * @param markupId the component id of the label * @return new label component */ protected <L extends Serializable> Component newLabel(final String markupId, IModel<L> model) { return new Label(markupId, model) .setRenderBodyOnly(true); }
/** * creates a new icon component with given {@link IconType}. * * @param markupId The component' id * @param labelModel The label text as model * @return new label component */ protected Component createButtonLabel(final String markupId, final IModel<?> labelModel) { final Label label = new Label(markupId, labelModel); label.setRenderBodyOnly(true); return label; }
public ContentMenuEntryPanel(final String id, final String label) { this(id); labelComponent = new Label("label", label).setRenderBodyOnly(true); this.label = label; }
/** * creates a new label component * * @param markupId the component id of the label * @return new label component */ protected Component newLabel(final String markupId, IModel<String> model) { return new Label(markupId, model) .setRenderBodyOnly(true); }
/** * creates a new label component * * @param markupId the component id of the label * @return new label component */ protected Component newLabel(final String markupId) { return new Label(markupId, new Model<>("")) .setRenderBodyOnly(true); }
/** * creates a new label component * * @param markupId the component id of the label * @return new label component */ protected Component newLabel(final String markupId) { return new Label(markupId, new Model<>("")).setRenderBodyOnly(true); }
/** * Calls setRenderBodyOnly(false) and setOutputMarkupId(true) for the enclosed label. * @return the label */ public Label getLabel4Ajax() { label.setRenderBodyOnly(false).setOutputMarkupId(true); return label; }
/** * Calls setRenderBodyOnly(false) and setOutputMarkupId(true) for the enclosed label. * @return the label */ public Label getLabel4Ajax() { label.setRenderBodyOnly(false).setOutputMarkupId(true); return label; }
/** * * @param id * @param code Code to output (will not be escaped) */ public HtmlCodePanel(final String id, final Model<String> code) { super(id); add(new Label("htmlcode", code).setRenderBodyOnly(true).setEscapeModelStrings(false)); }
@Override protected void onConfigure() { super.onConfigure(); if (labeled()) { srOnly.setRenderBodyOnly(true); } }
@Override protected void onInitialize() { super.onInitialize(); this.add(new Label("text", button.getModel()).setRenderBodyOnly(true)); }
public YuiMenuItem(final String label, final AbstractLink link) { super(MENU_ITEM_ID); if (link.getId().equals(LINK_ID) == false) { throw new RuntimeException("Link's id needs to be 'link' "); } getItemContainer().add(link); link.add(new Label("linkLabel", new Model<String>(label)).setRenderBodyOnly(true)); newSubMenu("emptyMenu").setVisible(false); }
@Override protected void onInitialize() { super.onInitialize(); this.add(this.newLabel("label", this.getDefaultModel()).setRenderBodyOnly(true)); }
public EmployeeEditPage(final PageParameters parameters) { super(parameters, "fibu.employee"); init(); body.remove("tabTitle"); body.add(new Label("tabTitle", getString(getTitleKey(i18nPrefix, isNew()))).setRenderBodyOnly(true)); }
@Override protected void onInitialize() { super.onInitialize(); final AbstractDialog<?> dialog = this.newDialog("dialog", this.titleModel, this.getModel()); this.add(dialog); final AjaxButton button = this.newAjaxButton("button", dialog); this.add(button); button.add(new Label("label", this.labelModel).setRenderBodyOnly(true)); }
@Override protected void onInitialize() { super.onInitialize(); this.dialog = this.newDialog("dialog", this.titleModel, this.getModel()); this.add(this.dialog); this.button = this.newAjaxButton("button", dialog); this.add(this.button); this.button.add(new Label("label", this.labelModel).setRenderBodyOnly(true)); }
public ItemFragment(String id, IMenuItem item) { super(id, "item-fragment", Menu.this); this.add(new EmptyPanel("icon").add(AttributeModifier.append("class", KendoIcon.getCssClass(item.getIcon())))); this.add(new Label("title", item.getTitle()).setRenderBodyOnly(true)); } }
public ItemFragment(String id, IMenuItem item) { super(id, "item-fragment", Menu.this); this.add(new EmptyPanel("icon").add(AttributeModifier.append("class", KendoIcon.getCssClass(item.getIcon())))); this.add(new Label("title", item.getTitle()).setRenderBodyOnly(true)); } }
public LinkFragment(String id, UrlMenuItem item) { super(id, "link-fragment", Menu.this); WebMarkupContainer link = new WebMarkupContainer("link"); link.add(AttributeModifier.replace("href", item.getUrl())); link.add(new EmptyPanel("icon").add(AttributeModifier.append("class", KendoIcon.getCssClass(item.getIcon())))); link.add(new Label("title", item.getTitle()).setRenderBodyOnly(true)); this.add(link); } }