FileDocCategorySizeDatePackage
StyleResourceValue.javaAPI DocAndroid 1.5 API1736Wed May 06 22:42:02 BST 2009com.android.layoutlib.bridge

StyleResourceValue

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

Fields Summary
private String
mParentStyle
private HashMap
mItems
Constructors Summary
StyleResourceValue(String name)


      
        super(name);
    
StyleResourceValue(String name, String parentStyle)

        super(name);
        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);
        }