FileDocCategorySizeDatePackage
ClassAttributeDescriptor.javaAPI DocAndroid 1.5 API4400Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.editors.manifest.descriptors

ClassAttributeDescriptor

public class ClassAttributeDescriptor extends com.android.ide.eclipse.editors.descriptors.TextAttributeDescriptor
Describes an XML attribute representing a class name. It is displayed by a {@link UiClassAttributeNode}.

Fields Summary
private String
mSuperClassName
Superclass of the class value.
private com.android.ide.eclipse.editors.manifest.model.UiClassAttributeNode.IPostTypeCreationAction
mPostCreationAction
boolean
mMandatory
indicates if the class parameter is mandatory
private final boolean
mDefaultToProjectOnly
Constructors Summary
public ClassAttributeDescriptor(String superClassName, String xmlLocalName, String uiName, String nsUri, String tooltip, boolean mandatory)
Creates a new {@link ClassAttributeDescriptor}

param
superClassName the fully qualified name of the superclass of the class represented by the attribute.
param
xmlLocalName The XML name of the attribute (case sensitive, with android: prefix).
param
uiName The UI name of the attribute. Cannot be an empty string and cannot be null.
param
nsUri The URI of the attribute. Can be null if attribute has no namespace. See {@link SdkConstants#NS_RESOURCES} for a common value.
param
tooltip A non-empty tooltip string or null.
param
mandatory indicates if the class attribute is mandatory.

        super(xmlLocalName, uiName, nsUri, tooltip);
        mSuperClassName = superClassName;
        mDefaultToProjectOnly = true;
    
public ClassAttributeDescriptor(String superClassName, com.android.ide.eclipse.editors.manifest.model.UiClassAttributeNode.IPostTypeCreationAction postCreationAction, String xmlLocalName, String uiName, String nsUri, String tooltip, boolean mandatory, boolean defaultToProjectOnly)
Creates a new {@link ClassAttributeDescriptor}

param
superClassName the fully qualified name of the superclass of the class represented by the attribute.
param
postCreationAction the {@link IPostTypeCreationAction} to be executed on the newly created class.
param
xmlLocalName The XML local name of the attribute (case sensitive).
param
uiName The UI name of the attribute. Cannot be an empty string and cannot be null.
param
nsUri The URI of the attribute. Can be null if attribute has no namespace. See {@link SdkConstants#NS_RESOURCES} for a common value.
param
tooltip A non-empty tooltip string or null.
param
mandatory indicates if the class attribute is mandatory.
param
defaultToProjectOnly True if only classes from the sources of this project should be shown by default in the class browser.

        super(xmlLocalName, uiName, nsUri, tooltip);
        mSuperClassName = superClassName;
        mPostCreationAction = postCreationAction;
        mDefaultToProjectOnly = defaultToProjectOnly;
    
Methods Summary
public com.android.ide.eclipse.editors.uimodel.UiAttributeNodecreateUiNode(com.android.ide.eclipse.editors.uimodel.UiElementNode uiParent)

return
A new {@link UiClassAttributeNode} linked to this descriptor.

        return new UiClassAttributeNode(mSuperClassName, mPostCreationAction,
                mMandatory, this, uiParent, mDefaultToProjectOnly);