Package org.wicketstuff
Interface IQuickReuseStrategy
-
- All Superinterfaces:
IClusterable
,IItemReuseStrategy
,Serializable
- All Known Implementing Classes:
AbstractItemsNavigationStrategy
,AbstractPagingNavigationStrategy
,DefaultQuickReuseStrategy
,ItemsNavigationStrategy
,QuickReuseIfModelsEqualStrategy
,ReuseAllStrategy
public interface IQuickReuseStrategy extends IItemReuseStrategy
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
depending on use any new reuse strategy can be created ,few ready-made strategies for QuickView are
- Author:
- Vineet Semwal
-
-
Method Summary
All Methods Instance Methods Abstract 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()
tells whether reuse strategy support addition of items to view without re-rendering QuickView-
Methods inherited from interface org.apache.wicket.markup.repeater.IItemReuseStrategy
getItems
-
-
-
-
Method Detail
-
addItems
<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 QuickView- 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
boolean isPartialUpdatesSupported()
tells whether reuse strategy support addition of items to view without re-rendering QuickView- Returns:
- boolean
-
getPageCreatedOnRender
long getPageCreatedOnRender()
page to be created on render if page is zero then the current page rendered is reconstructed
-
-