FileDocCategorySizeDatePackage
ListAttributeDescriptor.javaAPI DocAndroid 1.5 API2409Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.editors.descriptors

ListAttributeDescriptor

public class ListAttributeDescriptor extends TextAttributeDescriptor
Describes a text attribute that can contains some predefined values. It is displayed by a {@link UiListAttributeNode}.

Fields Summary
private String[]
mValues
Constructors Summary
public ListAttributeDescriptor(String xmlLocalName, String uiName, String nsUri, String tooltip)
Creates a new {@link ListAttributeDescriptor} which automatically gets its values from the FrameworkResourceManager.

    
                      
          
              
        super(xmlLocalName, uiName, nsUri, tooltip);
    
public ListAttributeDescriptor(String xmlLocalName, String uiName, String nsUri, String tooltip, String[] values)
Creates a new {@link ListAttributeDescriptor} which uses the provided values.

        super(xmlLocalName, uiName, nsUri, tooltip);
        mValues = values;
    
Methods Summary
public org.eclipse.jface.viewers.CellEditorcreatePropertyEditor(org.eclipse.swt.widgets.Composite parent)

        return new ListValueCellEditor(parent);
    
public com.android.ide.eclipse.editors.uimodel.UiAttributeNodecreateUiNode(com.android.ide.eclipse.editors.uimodel.UiElementNode uiParent)

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

        return new UiListAttributeNode(this, uiParent);
    
public java.lang.String[]getValues()

        return mValues;