本文整理了Java中org.apache.wicket.markup.html.basic.Label.setRenderBodyOnly()
方法的一些代码示例,展示了Label.setRenderBodyOnly()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setRenderBodyOnly()
方法的具体详情如下:
包路径:org.apache.wicket.markup.html.basic.Label
类名称:Label
方法名:setRenderBodyOnly
暂无
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
/**
* 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);
}
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
/**
* 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);
}
代码示例来源:origin: de.agilecoders.wicket/bootstrap
/**
* 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;
}
代码示例来源:origin: micromata/projectforge
public ContentMenuEntryPanel(final String id, final String label)
{
this(id);
labelComponent = new Label("label", label).setRenderBodyOnly(true);
this.label = label;
}
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
/**
* 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);
}
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
/**
* 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);
}
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
/**
* 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);
}
代码示例来源:origin: micromata/projectforge
/**
* Calls setRenderBodyOnly(false) and setOutputMarkupId(true) for the enclosed label.
* @return the label
*/
public Label getLabel4Ajax()
{
label.setRenderBodyOnly(false).setOutputMarkupId(true);
return label;
}
代码示例来源:origin: micromata/projectforge
/**
* Calls setRenderBodyOnly(false) and setOutputMarkupId(true) for the enclosed label.
* @return the label
*/
public Label getLabel4Ajax()
{
label.setRenderBodyOnly(false).setOutputMarkupId(true);
return label;
}
代码示例来源:origin: micromata/projectforge
/**
*
* @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));
}
代码示例来源:origin: de.agilecoders.wicket/wicket-bootstrap-core
@Override
protected void onConfigure() {
super.onConfigure();
if (labeled()) {
srOnly.setRenderBodyOnly(true);
}
}
代码示例来源:origin: sebfz1/wicket-jquery-ui
@Override
protected void onInitialize()
{
super.onInitialize();
this.add(new Label("text", button.getModel()).setRenderBodyOnly(true));
}
代码示例来源:origin: org.wicketstuff/yui
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);
}
代码示例来源:origin: com.googlecode.wicket-jquery-ui/wicket-jquery-ui-core
@Override
protected void onInitialize()
{
super.onInitialize();
this.add(this.newLabel("label", this.getDefaultModel()).setRenderBodyOnly(true));
}
代码示例来源:origin: micromata/projectforge
public EmployeeEditPage(final PageParameters parameters)
{
super(parameters, "fibu.employee");
init();
body.remove("tabTitle");
body.add(new Label("tabTitle", getString(getTitleKey(i18nPrefix, isNew()))).setRenderBodyOnly(true));
}
代码示例来源:origin: sebfz1/wicket-jquery-ui
@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));
}
代码示例来源:origin: sebfz1/wicket-jquery-ui
@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));
}
代码示例来源:origin: com.googlecode.wicket-jquery-ui/wicket-kendo-ui
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));
}
}
代码示例来源:origin: sebfz1/wicket-jquery-ui
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));
}
}
代码示例来源:origin: com.googlecode.wicket-jquery-ui/wicket-kendo-ui
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);
}
}
内容来源于网络,如有侵权,请联系作者删除!