public class Views extends Object implements Serializable
Constructor and Description |
---|
Views() |
Modifier and Type | Method and Description |
---|---|
void |
addView(int index,
View vView) |
void |
addView(View vView) |
Enumeration<View> |
enumerateView()
Method enumerateView.
|
boolean |
equals(Object obj)
Overrides the Object.equals method.
|
View[] |
getView()
Method getView.Returns the contents of the collection in an Array.
|
View |
getView(int index)
Method getView.
|
List<View> |
getViewCollection()
Method getViewCollection.Returns a reference to 'viewList'.
|
int |
getViewCount()
Method getViewCount.
|
int |
hashCode()
Method hashCode.
|
Iterator<View> |
iterateView()
Method iterateView.
|
void |
removeAllView() |
boolean |
removeView(View vView)
Method removeView.
|
View |
removeViewAt(int index)
Method removeViewAt.
|
void |
setView(int index,
View vView) |
void |
setView(List<View> vViewList)
Sets the value of 'viewList' by copying the given Vector.
|
void |
setView(View[] vViewArray) |
void |
setViewCollection(List<View> viewList)
Deprecated.
|
public void addView(View vView) throws IndexOutOfBoundsException
vView
- IndexOutOfBoundsException
- if the index given is outside
the bounds of the collectionpublic void addView(int index, View vView) throws IndexOutOfBoundsException
index
- vView
- IndexOutOfBoundsException
- if the index given is outside
the bounds of the collectionpublic Enumeration<View> enumerateView()
public boolean equals(Object obj)
public View getView(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside
the bounds of the collectionpublic View[] getView()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<View> getViewCollection()
public int getViewCount()
public int hashCode()
public Iterator<View> iterateView()
public void removeAllView()
public boolean removeView(View vView)
vView
- public View removeViewAt(int index)
index
- public void setView(int index, View vView) throws IndexOutOfBoundsException
index
- vView
- IndexOutOfBoundsException
- if the index given is outside
the bounds of the collectionpublic void setView(View[] vViewArray)
vViewArray
- public void setView(List<View> vViewList)
vViewList
- the Vector to copy.Copyright © 2017. All rights reserved.