Package org.wicketstuff
Class AbstractItemsNavigationStrategy
- java.lang.Object
-
- org.wicketstuff.AbstractItemsNavigationStrategy
-
- All Implemented Interfaces:
Serializable
,IItemReuseStrategy
,IClusterable
,IQuickReuseStrategy
- Direct Known Subclasses:
ItemsNavigationStrategy
,ReuseAllStrategy
public abstract class AbstractItemsNavigationStrategy extends Object implements IQuickReuseStrategy
abstract reuse strategy that supports addition of items to the view without the need to re-render . also to read more @see IQuickReuseStrategy- Author:
- Vineet Semwal
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractItemsNavigationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Iterator<Item<T>>
addItems(int startIndex, IItemFactory<T> factory, Iterator<IModel<T>> newModels)
Returns an iterator over items that will be added to the view without re-rendering the QuickViewboolean
isPartialUpdatesSupported()
tells whether reuse strategy support addition of items to view without re-rendering QuickView-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.markup.repeater.IItemReuseStrategy
getItems
-
Methods inherited from interface org.wicketstuff.IQuickReuseStrategy
getPageCreatedOnRender
-
-
-
-
Method Detail
-
addItems
public <T> Iterator<Item<T>> addItems(int startIndex, IItemFactory<T> factory, Iterator<IModel<T>> newModels)
Description copied from interface:IQuickReuseStrategy
Returns an iterator over items that will be added to the view without re-rendering the QuickView- Specified by:
addItems
in interfaceIQuickReuseStrategy
- Type Parameters:
T
- type of Item- Parameters:
startIndex
- index from where new items will be addedfactory
- implementation of IItemFactorynewModels
- iterator over models for items- Returns:
- iterator over items that will be added
-
isPartialUpdatesSupported
public boolean isPartialUpdatesSupported()
Description copied from interface:IQuickReuseStrategy
tells whether reuse strategy support addition of items to view without re-rendering QuickView- Specified by:
isPartialUpdatesSupported
in interfaceIQuickReuseStrategy
- Returns:
- true means repeater supports partial updates without the need to re-render whole repeater
-
-