Package org.wicketstuff
Class ItemsNavigationStrategy
- java.lang.Object
-
- org.wicketstuff.AbstractItemsNavigationStrategy
-
- org.wicketstuff.ItemsNavigationStrategy
-
- All Implemented Interfaces:
Serializable
,IItemReuseStrategy
,IClusterable
,IQuickReuseStrategy
public class ItemsNavigationStrategy extends AbstractItemsNavigationStrategy
this strategy supports addition of new items without the need to re-render the view . on re-render all items are removed and items for first page are created againused with
1)all children are removed and children of first page are created again on re-renderAjaxItemsNavigator
orAjaxScrollEventBehaviorBase
2) new children for next page is created inQuickViewBase.addItemsForNextPage()
earlier it was used as Reuse.ITEMSNAVIGATION
- Author:
- Vineet Semwal
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ItemsNavigationStrategy()
-
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.long
getPageCreatedOnRender()
page to be created on render if page is zero then the current page rendered is reconstructed-
Methods inherited from class org.wicketstuff.AbstractItemsNavigationStrategy
addItems, 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.
-
getPageCreatedOnRender
public long getPageCreatedOnRender()
Description copied from interface:IQuickReuseStrategy
page to be created on render if page is zero then the current page rendered is reconstructed
-
-