com.beasys.commerce.ebusiness.catalog.service.category
Class SubCategoryIterator
java.lang.Object
|
+--com.beasys.commerce.ebusiness.catalog.CatalogItemIterator
|
+--com.beasys.commerce.ebusiness.catalog.service.category.SubCategoryIterator
- public class SubCategoryIterator
- extends CatalogItemIterator
A SubCategoryIterator
is a ViewIterator
over
the sub categories of a given parent Category
.
- See Also:
View
,
ViewIterator
,
CatalogItemIterator
, Serialized Form
Constructor Summary
|
SubCategoryIterator(java.lang.String manangerJndiName,
CatalogRequest catalogRequest,
CategoryKey key,
int numItems,
int viewSize)
SubCategoryIterator constructor that takes the total number
of spanned items, a view size, parent category key, and request object. |
Method Summary
|
protected CatalogItem |
getCatalogItem(View view,
int itemIndex)
Returns a CatalogItem within the current view. |
protected void |
refreshView(View view)
This function is called whenever the current view needs to be refreshed. |
Methods inherited from class com.beasys.commerce.ebusiness.catalog.CatalogItemIterator |
getCatalogManager,
getCatalogQueryManager,
getCatalogRequest,
getCategoryManager,
getCurrentView,
getCustomDataManager,
getProductItemManager,
getViewAt,
getViewCount,
gotoNextView,
gotoPreviousView,
gotoViewAt,
hasNext,
hasNextView,
hasPreviousView,
next,
size |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SubCategoryIterator
public SubCategoryIterator(java.lang.String manangerJndiName,
CatalogRequest catalogRequest,
CategoryKey key,
int numItems,
int viewSize)
SubCategoryIterator
constructor that takes the total number
of spanned items, a view size, parent category key, and request object.
refreshView
protected void refreshView(View view)
throws java.rmi.RemoteException
- This function is called whenever the current view needs to be refreshed.
All classes that extend this class must implement this function.
- Parameters:
view
- The view to refresh.- Throws:
- java.rmi.RemoteException - on remote error.
- Overrides:
- refreshView in class CatalogItemIterator
getCatalogItem
protected CatalogItem getCatalogItem(View view,
int itemIndex)
throws java.util.NoSuchElementException
- Returns a CatalogItem within the current view. All classes that
extend this class must implement this function.
- Parameters:
view
- The current view.itemIndex
- The index of the item to retrieve.- Throws:
- java.util.NoSuchElementException - If the item does not exist.
- Overrides:
- getCatalogItem in class CatalogItemIterator
Copyright © 2002 BEA Systems, Inc. All Rights Reserved