Example usage for org.apache.wicket.markup.repeater.util ArrayIteratorAdapter hasNext

List of usage examples for org.apache.wicket.markup.repeater.util ArrayIteratorAdapter hasNext

Introduction

In this page you can find the example usage for org.apache.wicket.markup.repeater.util ArrayIteratorAdapter hasNext.

Prototype

@Override
public boolean hasNext() 

Source Link

Usage

From source file:table.headercolumndatatable.extra.AbstractDataGridView.java

License:Apache License

/**
 * @see org.apache.wicket.markup.repeater.RefreshingView#populateItem(org.apache.wicket.markup.repeater.Item)
 *///from   w w  w  .  j a v a 2 s  .  c o  m
@Override
protected final void populateItem(Item<T> rowItem) {
    RepeatingView headerContainer = new RepeatingView(HEADERS_ID);
    rowItem.add(headerContainer);

    RepeatingView cells = new RepeatingView(CELL_REPEATER_ID);
    rowItem.add(cells);

    ArrayIteratorAdapter<ICellPopulator<T>> cellPopulators = getPopulatorsIterator();

    populate(rowItem, headerContainer, cellPopulators.next(), 0, cells.newChildId(), HEADER_ID);
    for (int i = 1; cellPopulators.hasNext(); i++) {
        populate(rowItem, cells, cellPopulators.next(), i, cells.newChildId(), CELL_ITEM_ID);
    }
}