org.apache.wicket.markup.repeater
Interface IItemFactory<T>

Type Parameters:
T - Model object type

public interface IItemFactory<T>

Factory interface for creating new child item containers for AbstractPageableView.

Author:
Igor Vaynberg (ivaynberg)
See Also:
AbstractPageableView

Method Summary
 Item<T> newItem(int index, IModel<T> model)
          Factory method for instances of Item.
 

Method Detail

newItem

Item<T> newItem(int index,
                IModel<T> model)
Factory method for instances of Item. Each generated item must have a unique id with respect to other generated items.

Parameters:
index - the index of the new data item
model - the model for the new data item
Returns:
DataItem new DataItem


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.