ViewElementDescriptorpublic final class ViewElementDescriptor extends com.android.ide.eclipse.editors.descriptors.ElementDescriptor {@link ViewElementDescriptor} describes the properties expected for a given XML element node
representing a class in an XML Layout file. |
Fields Summary |
---|
private String | mCanonicalClassName | private com.android.ide.eclipse.editors.descriptors.AttributeDescriptor[] | mLayoutAttributesThe list of layout attributes. Can be empty but not null. |
Constructors Summary |
---|
public ViewElementDescriptor(String xml_name, String ui_name, String canonicalClassName, String tooltip, String sdk_url, com.android.ide.eclipse.editors.descriptors.AttributeDescriptor[] attributes, com.android.ide.eclipse.editors.descriptors.AttributeDescriptor[] layoutAttributes, com.android.ide.eclipse.editors.descriptors.ElementDescriptor[] children, boolean mandatory)Constructs a new {@link ViewElementDescriptor} based on its XML name, UI name,
the canonical name of the class it represents, its tooltip, its SDK url, its attributes list,
its children list and its mandatory flag.
super(xml_name, ui_name, tooltip, sdk_url, attributes, children, mandatory);
mCanonicalClassName = canonicalClassName;
mLayoutAttributes = layoutAttributes != null ? layoutAttributes : new AttributeDescriptor[0];
| public ViewElementDescriptor(String xml_name, String canonicalClassName, com.android.ide.eclipse.editors.descriptors.ElementDescriptor[] children, boolean mandatory)Constructs a new {@link ElementDescriptor} based on its XML name, the canonical
name of the class it represents, and its children list.
The UI name is build by capitalizing the XML name.
The UI nodes will be non-mandatory.
super(xml_name, children, mandatory);
mCanonicalClassName = canonicalClassName;
| public ViewElementDescriptor(String xml_name, String canonicalClassName, com.android.ide.eclipse.editors.descriptors.ElementDescriptor[] children)Constructs a new {@link ElementDescriptor} based on its XML name and children list.
The UI name is build by capitalizing the XML name.
The UI nodes will be non-mandatory.
super(xml_name, children);
mCanonicalClassName = canonicalClassName;
| public ViewElementDescriptor(String xml_name, String canonicalClassName)Constructs a new {@link ElementDescriptor} based on its XML name and on the canonical
name of the class it represents.
The UI name is build by capitalizing the XML name.
The UI nodes will be non-mandatory.
super(xml_name);
mCanonicalClassName = canonicalClassName;
|
|