public abstract class RouterPagerAdapter
extends PagerAdapter
| Constructor and Description |
|---|
RouterPagerAdapter(Controller host)
Creates a new RouterPagerAdapter using the passed host.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
configureRouter(Router router,
int position)
Called when a router is instantiated.
|
void |
destroyItem(android.view.ViewGroup container,
int position,
java.lang.Object object) |
long |
getItemId(int position) |
Router |
getRouter(int position)
Returns the already instantiated Router in the specified position or
null if there
is no router associated with this position. |
java.lang.Object |
instantiateItem(android.view.ViewGroup container,
int position) |
boolean |
isViewFromObject(android.view.View view,
java.lang.Object object) |
void |
restoreState(android.os.Parcelable state,
java.lang.ClassLoader loader) |
android.os.Parcelable |
saveState() |
void |
setMaxPagesToStateSave(int maxPagesToStateSave)
Sets the maximum number of pages that will have their states saved.
|
void |
setPrimaryItem(android.view.ViewGroup container,
int position,
java.lang.Object object) |
public RouterPagerAdapter(Controller host)
public abstract void configureRouter(Router router,
int position)
router - The router used for the pageposition - The page position to be instantiated.public void setMaxPagesToStateSave(int maxPagesToStateSave)
public java.lang.Object instantiateItem(android.view.ViewGroup container,
int position)
public void destroyItem(android.view.ViewGroup container,
int position,
java.lang.Object object)
public void setPrimaryItem(android.view.ViewGroup container,
int position,
java.lang.Object object)
public boolean isViewFromObject(android.view.View view,
java.lang.Object object)
public android.os.Parcelable saveState()
public void restoreState(android.os.Parcelable state,
java.lang.ClassLoader loader)
public Router getRouter(int position)
null if there
is no router associated with this position.public long getItemId(int position)