List of usage examples for org.apache.wicket.markup.html.link AbstractLink setBody
public AbstractLink setBody(final IModel<?> bodyModel)
From source file:net.dontdrinkandroot.wicket.bootstrap.component.pagination.AbstractPageLinkItem.java
License:Apache License
public AbstractPageLinkItem(String id, IPageable pageable) { super(id);// ww w . ja v a2 s.c o m this.pageable = pageable; AbstractLink link = this.createLink("link"); link.setBody(this.createLabel()); this.add(link); this.add(new DisabledCssBehavior()); }
From source file:org.opensingular.lib.wicket.util.bootstrap.layout.BSControls.java
License:Apache License
public BSControls appendLinkButton(String extraClasses, IModel<?> linkText, AbstractLink link) { if (linkText != null) link.setBody(linkText); return super.appendTag("a", true, "class='btn btn-default " + defaultString(extraClasses) + "'", link); }
From source file:org.opensingular.lib.wicket.util.bootstrap.layout.BSControls.java
License:Apache License
public BSControls appendLink(IModel<?> linkText, AbstractLink link) { if (linkText != null) link.setBody(linkText); return super.appendTag("a", true, "class='btn btn-link'", link); }