FileDocCategorySizeDatePackage
DeclareStyleableInfo.javaAPI DocAndroid 1.5 API6267Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.common.resources

DeclareStyleableInfo

public class DeclareStyleableInfo extends Object
Information needed to represent a View or ViewGroup (aka Layout) item in the layout hierarchy, as extracted from the main android.jar and the associated attrs.xml.

Fields Summary
private String
mStyleName
The style name, never null.
private AttributeInfo[]
mAttributes
Attributes for this view or view group. Can be empty but never null.
private String
mJavaDoc
Short javadoc. Can be null.
private String[]
mParents
Optional name of the parents stylable. Can be null.
Constructors Summary
public DeclareStyleableInfo(String styleName, AttributeInfo[] attributes)
Creates a new {@link DeclareStyleableInfo}.

param
styleName The name of the style. Should not be empty nor null.
param
attributes The initial list of attributes. Can be null.

        mStyleName = styleName;
        mAttributes = attributes == null ? new AttributeInfo[0] : attributes;
    
Methods Summary
public com.android.ide.eclipse.common.resources.DeclareStyleableInfo$AttributeInfo[]getAttributes()
Returns the attributes for this view or view group. Maybe empty but not null.

        return mAttributes;
    
public java.lang.StringgetJavaDoc()
Returns a short javadoc

        return mJavaDoc;
    
public java.lang.String[]getParents()
Returns the name of the parents styleable. Can be null.

        return mParents;
    
public java.lang.StringgetStyleName()
Returns style name

        return mStyleName;
    
public voidsetAttributes(com.android.ide.eclipse.common.resources.DeclareStyleableInfo$AttributeInfo[] attributes)
Sets the list of attributes for this View or ViewGroup.

        mAttributes = attributes;
    
public voidsetJavaDoc(java.lang.String javaDoc)
Sets the javadoc.

        mJavaDoc = javaDoc;
    
public voidsetParents(java.lang.String[] parents)
Sets the name of the parents styleable. Can be null.

        mParents = parents;