|
|||||||||
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.StyleResourceValue
public final class StyleResourceValue
Represents an android style resource with a name and a list of children ResourceValue
.
Field Summary |
---|
Fields inherited from class com.android.ide.common.rendering.api.ResourceValue |
---|
mValue |
Constructor Summary | |
---|---|
StyleResourceValue(ResourceType type,
java.lang.String name,
boolean isFramework)
|
|
StyleResourceValue(ResourceType type,
java.lang.String name,
java.lang.String parentStyle,
boolean isFramework)
|
Method Summary | |
---|---|
void |
addValue(ResourceValue value,
boolean isFrameworkAttr)
|
IResourceValue |
findItem(java.lang.String name)
Deprecated. use ResourceValue.getValue() |
ResourceValue |
findValue(java.lang.String name)
Deprecated. use findValue(String, boolean) |
ResourceValue |
findValue(java.lang.String name,
boolean isFrameworkAttr)
Finds a value in the list by name |
java.util.List<java.lang.String> |
getNames()
Returns the names available in this style, intended for diagnostic purposes |
java.lang.String |
getParentStyle()
Returns the parent style name or null if unknown. |
void |
replaceWith(ResourceValue value)
Sets the value from another resource. |
Methods inherited from class com.android.ide.common.rendering.api.ResourceValue |
---|
equals, getResourceType, getType, getValue, hashCode, 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, getType, getValue, isFramework |
Constructor Detail |
---|
public StyleResourceValue(ResourceType type, java.lang.String name, boolean isFramework)
public StyleResourceValue(ResourceType type, java.lang.String name, java.lang.String parentStyle, boolean isFramework)
Method Detail |
---|
public java.lang.String getParentStyle()
null
if unknown.
getParentStyle
in interface IStyleResourceValue
@Deprecated public ResourceValue findValue(java.lang.String name)
findValue(String, boolean)
name
- the name of the resourcepublic ResourceValue findValue(java.lang.String name, boolean isFrameworkAttr)
name
- the name of the resourcepublic void addValue(ResourceValue value, boolean isFrameworkAttr)
public void replaceWith(ResourceValue value)
ResourceValue
replaceWith
in class ResourceValue
value
- the resource value@Deprecated public IResourceValue findItem(java.lang.String name)
ResourceValue.getValue()
findItem
in interface IStyleResourceValue
name
- the name of the resourcepublic java.util.List<java.lang.String> getNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |