CatalogItemView Class
- public class CatalogItemView
extends Object
implements Serializable
, View
A CatalogItemView
is a window onto a large CatalogItem
result set. It has a size (the number of items in the view), a beginning index
(the index of the first item in the view), and an ending index (the index of the
last item in the view). Additionally, a CatalogItemView
has an index
within the context of a ViewIterator
.
Related Topics
View
ViewIterator
-
Hierarchy
-
Object
CatalogItemView
-
All Implemented Interfaces
-
Serializable
, View
-
CatalogItemView()
- Default constructor
|
-
CatalogItemView(int size, int firstIndex, int lastIndex, int viewIndex)
- Creates a new
CatalogItemView with the given size,
first index, last index, and view index.
|
public int |
-
getFirstIndex ()
- Returns the index of the first item in the view.
|
public int |
-
getLastIndex ()
- Returns the index of the last item in the view.
|
public int |
-
getSize ()
- Returns the number of items in the view.
|
public int |
-
getViewIndex ()
- Returns the index of this
View within its ViewIterator .
|
public String |
-
toString ()
|
CatalogItemView
public CatalogItemView()
- Default constructor
CatalogItemView
public CatalogItemView(int size,
int firstIndex,
int lastIndex,
int viewIndex)
- Creates a new
CatalogItemView
with the given size,
first index, last index, and view index.
getFirstIndex() Method
public int getFirstIndex()
Returns the index of the first item in the view.
Returns
- The index of the first item in the view.
getLastIndex() Method
public int getLastIndex()
Returns the index of the last item in the view.
Returns
- The index of the last item in the view.
getSize() Method
public int getSize()
Returns the number of items in the view.
Returns
- The number of ites in the view.
getViewIndex() Method
public int getViewIndex()
Returns the index of this View
within its ViewIterator
.
Returns
- The index of this
View
within its ViewIterator
.
toString() Method
public String
toString()
-
Overrides
-
Object.toString()
Returns
- the string representation of this CatalogItemView.