Package org.wicketstuff
Class AbstractPagingNavigationStrategy
- java.lang.Object
-
- org.wicketstuff.AbstractPagingNavigationStrategy
-
- All Implemented Interfaces:
Serializable
,IItemReuseStrategy
,IClusterable
,IQuickReuseStrategy
- Direct Known Subclasses:
DefaultQuickReuseStrategy
,QuickReuseIfModelsEqualStrategy
public abstract class AbstractPagingNavigationStrategy extends Object implements IQuickReuseStrategy
abstract reuse strategy that does NOT support addition of items to the view without the need to re-render . this strategy is typically used only for paging foreg. when QuickView is used withPagingNavigator
also to read more @see IQuickReuseStrategy- Author:
- Vineet Semwal
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractPagingNavigationStrategy()
-
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 QuickViewlong
getPageCreatedOnRender()
page to be created on render if page is zero then the current page rendered is reconstructedboolean
isPartialUpdatesSupported()
false means partial updates not supported-
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
-
-
-
-
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()
false means partial updates not supported- Specified by:
isPartialUpdatesSupported
in interfaceIQuickReuseStrategy
- Returns:
- false
-
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- Specified by:
getPageCreatedOnRender
in interfaceIQuickReuseStrategy
-
-