|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for the component used to display elements of a collection, with "prev" and "next" buttons to go to the previous or next element of the collection easily.
Method Summary | |
CollectionItem |
getCollection()
Gets the collection item associated with the view |
int |
getCurrent()
Gets the position in the collection of the current item |
View |
getView()
|
void |
onBackToCollection()
Displays the collection instead of the current item |
void |
onNextInCollection()
Displays next object in collection |
void |
onPreviousInCollection()
Displays previous object in collection |
void |
onRemoveInCollection()
Remove current object from collection |
void |
setCollection(CollectionItem coll)
Sets the collection item associated with the view |
void |
setCurrent(int index)
Sets the position in the collection of the current item |
Method Detail |
public View getView()
public void setCollection(CollectionItem coll)
coll
- a collection itempublic CollectionItem getCollection()
public void setCurrent(int index)
index
- position in collection (from 0 to collection size-1)public int getCurrent()
public void onNextInCollection()
public void onPreviousInCollection()
public void onBackToCollection()
public void onRemoveInCollection()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |