public class ViewMap extends AbstractViewMap
| Constructor and Description |
|---|
ViewMap()
Constructor.
|
ViewMap(View[] views)
Utility constructor that creates a map with a number of views.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addView(int id,
View view)
Adds a view to the map.
|
View |
getView(int id)
Returns the view with a specific id.
|
protected java.lang.Object |
readViewId(java.io.ObjectInputStream in) |
void |
removeView(int id)
Removes a view with a specific id from the map.
|
protected void |
writeViewId(java.lang.Object id,
java.io.ObjectOutputStream out) |
addView, contains, getView, getViewAtIndex, getViewCount, getViewFactories, readView, removeView, writeViewpublic ViewMap()
public ViewMap(View[] views)
views - the views to add to the mappublic void addView(int id,
View view)
id - the view idview - the viewpublic void removeView(int id)
id - the view idpublic View getView(int id)
id - the view idprotected void writeViewId(java.lang.Object id,
java.io.ObjectOutputStream out)
throws java.io.IOException
writeViewId in class AbstractViewMapjava.io.IOExceptionprotected java.lang.Object readViewId(java.io.ObjectInputStream in)
throws java.io.IOException
readViewId in class AbstractViewMapjava.io.IOException