FileDocCategorySizeDatePackage
ItemElementDescriptor.javaAPI DocAndroid 1.5 API2537Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.editors.resources.descriptors

ItemElementDescriptor

public class ItemElementDescriptor extends com.android.ide.eclipse.editors.descriptors.ElementDescriptor
{@link ItemElementDescriptor} is a special version of {@link ElementDescriptor} that uses a specialized {@link UiItemElementNode} for display.

Fields Summary
Constructors Summary
public ItemElementDescriptor(String xml_name, String ui_name, String tooltip, String sdk_url, com.android.ide.eclipse.editors.descriptors.AttributeDescriptor[] attributes, com.android.ide.eclipse.editors.descriptors.ElementDescriptor[] children, boolean mandatory)
Constructs a new {@link ItemElementDescriptor} based on its XML name, UI name, tooltip, SDK url, attributes list, children list and mandatory.

param
xml_name The XML element node name. Case sensitive.
param
ui_name The XML element name for the user interface, typically capitalized.
param
tooltip An optional tooltip. Can be null or empty.
param
sdk_url An optional SKD URL. Can be null or empty.
param
attributes The list of allowed attributes. Can be null or empty.
param
children The list of allowed children. Can be null or empty.
param
mandatory Whether this node must always exist (even for empty models). A mandatory UI node is never deleted and it may lack an actual XML node attached. A non-mandatory UI node MUST have an XML node attached and it will cease to exist when the XML node ceases to exist.

        super(xml_name, ui_name, tooltip, sdk_url, attributes, children, mandatory);
    
Methods Summary
public com.android.ide.eclipse.editors.uimodel.UiElementNodecreateUiNode()

        return new UiItemElementNode(this);