Example usage for org.apache.wicket.markup.html.list LoopItem get

List of usage examples for org.apache.wicket.markup.html.list LoopItem get

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html.list LoopItem get.

Prototype

@Override
public final Component get(String path) 

Source Link

Document

Get a child component by looking it up with the given path.

Usage

From source file:org.yes.cart.web.page.component.navigation.URLPagingNavigation.java

License:Apache License

@Override
protected void populateItem(final LoopItem loopItem) {
    super.populateItem(loopItem);

    Link pageLink = (Link) loopItem.get(0);
    IModel model = pageLink.getModel();//from  w w  w  .j a  v  a  2s  .  c om

    if (model instanceof Model && model.getObject() instanceof Boolean) {
        loopItem.add(new AttributeModifier("class", "active"));
    }

}