wicket.extensions.markup.html.repeater.refreshing
Interface IItemReuseStrategy

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
DefaultItemReuseStrategy, ReuseIfModelsEqualStrategy

public interface IItemReuseStrategy
extends java.io.Serializable

Interface for item reuse strategies.

Notice: Child items will be rendered in the order they are provided by the returned iterator, so it is important that the strategy preserve this order

Author:
Igor Vaynberg (ivaynberg)

Method Summary
 java.util.Iterator getItems(IItemFactory factory, java.util.Iterator newModels, java.util.Iterator existingItems)
          Returns an iterator over items that will be added to the view.
 

Method Detail

getItems

java.util.Iterator getItems(IItemFactory factory,
                            java.util.Iterator newModels,
                            java.util.Iterator existingItems)
Returns an iterator over items that will be added to the view. The iterator needs to return all the items because the old ones are removed prior to the new ones added.

Parameters:
factory - implementation of IItemFactory
newModels - iterator over models for items
existingItems - iterator over child items
Returns:
iterator over items that will be added after all the old items are moved.


Copyright © 2004-2008 Wicket developers. All Rights Reserved.