|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.ide.common.rendering.api.ResourceReference
com.android.ide.common.rendering.api.ResourceValue
com.android.ide.common.rendering.api.ArrayResourceValue
public class ArrayResourceValue
Represents an android array resource with a name and a list of children ResourceValue
items, one for array element.
Field Summary |
---|
Fields inherited from class com.android.ide.common.rendering.api.ResourceValue |
---|
mValue |
Constructor Summary | |
---|---|
ArrayResourceValue(java.lang.String name,
boolean isFramework)
Constructs a new ArrayResourceValue |
Method Summary | |
---|---|
void |
addElement(java.lang.String value)
Adds an element into the array |
protected int |
getDefaultIndex()
Returns the index of the element to pick by default if a client of layoutlib asks for the getValue() rather than the more
specific ArrayResourceValue iteration methods |
java.lang.String |
getElement(int index)
Returns the array element value at the given index position. |
int |
getElementCount()
Returns the number of elements in this array |
java.lang.String |
getValue()
Returns the value of the resource, as defined in the XML. |
java.util.Iterator<java.lang.String> |
iterator()
Returns an iterator over the resource values |
Methods inherited from class com.android.ide.common.rendering.api.ResourceValue |
---|
equals, getRawXmlValue, getResourceType, getType, hashCode, replaceWith, setValue, toString |
Methods inherited from class com.android.ide.common.rendering.api.ResourceReference |
---|
getName, isFramework |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.android.layoutlib.api.IResourceValue |
---|
getName, isFramework |
Constructor Detail |
---|
public ArrayResourceValue(java.lang.String name, boolean isFramework)
name
- the name of the arrayisFramework
- whether this is a framework resourceMethod Detail |
---|
public void addElement(java.lang.String value)
public int getElementCount()
public java.lang.String getElement(int index)
index
- index, which must be in the range [0..getElementCount()].
public java.util.Iterator<java.lang.String> iterator()
iterator
in interface java.lang.Iterable<java.lang.String>
protected int getDefaultIndex()
getValue()
rather than the more
specific ArrayResourceValue iteration methods
public java.lang.String getValue()
ResourceValue
null
getValue
in interface IResourceValue
getValue
in class ResourceValue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |