FileDocCategorySizeDatePackage
StyleResourceValue.javaAPI DocAndroid 1.5 API1868Wed May 06 22:41:10 BST 2009com.android.layoutlib.utils

StyleResourceValue

public final class StyleResourceValue extends ResourceValue implements com.android.layoutlib.api.IStyleResourceValue

Fields Summary
private String
mParentStyle
private HashMap
mItems
Constructors Summary
public StyleResourceValue(String type, String name, boolean isFramework)


           
        super(type, name, isFramework);
    
public StyleResourceValue(String type, String name, String parentStyle, boolean isFramework)

        super(type, name, isFramework);
        mParentStyle = parentStyle;
    
Methods Summary
public voidaddItem(com.android.layoutlib.api.IResourceValue value)

        mItems.put(value.getName(), value);
    
public com.android.layoutlib.api.IResourceValuefindItem(java.lang.String name)

        return mItems.get(name);
    
public java.lang.StringgetParentStyle()

        return mParentStyle;
    
public voidreplaceWith(ResourceValue value)

        super.replaceWith(value);
        
        if (value instanceof StyleResourceValue) {
            mItems.clear();
            mItems.putAll(((StyleResourceValue)value).mItems);
        }