Example usage for org.apache.wicket.markup.html.link AbstractLink setBody

List of usage examples for org.apache.wicket.markup.html.link AbstractLink setBody

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html.link AbstractLink setBody.

Prototype

public AbstractLink setBody(final IModel<?> bodyModel) 

Source Link

Document

Sets the link's body model

Usage

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);
}