Package org.wicketstuff
Class DefaultQuickReuseStrategy
- java.lang.Object
-
- org.wicketstuff.AbstractPagingNavigationStrategy
-
- org.wicketstuff.DefaultQuickReuseStrategy
-
- All Implemented Interfaces:
Serializable
,IItemReuseStrategy
,IClusterable
,IQuickReuseStrategy
public class DefaultQuickReuseStrategy extends AbstractPagingNavigationStrategy
default reuse strategy used by QuickView ,this does NOT support addition of new items without re-rendering the view .it's used withPagingNavigator
orAjaxPagingNavigator
basically it's a wrapper of DefaultItemReuseStrategy to read more about it seeDefaultItemReuseStrategy
- Author:
- Vineet Semwal
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultQuickReuseStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Iterator<Item<T>>
getItems(IItemFactory<T> factory, Iterator<IModel<T>> newModels, Iterator<Item<T>> existingItems)
Returns an iterator over items that will be added to the view.-
Methods inherited from class org.wicketstuff.AbstractPagingNavigationStrategy
addItems, getPageCreatedOnRender, isPartialUpdatesSupported
-
-
-
-
Method Detail
-
getItems
public <T> Iterator<Item<T>> getItems(IItemFactory<T> factory, Iterator<IModel<T>> newModels, Iterator<Item<T>> 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.- Type Parameters:
T
- type of Item- Parameters:
factory
- implementation of IItemFactorynewModels
- iterator over models for itemsexistingItems
- iterator over child items- Returns:
- iterator over items that will be added after all the old items are moved.
-
-