FlagAttributeDescriptorpublic class FlagAttributeDescriptor extends TextAttributeDescriptor Describes a text attribute that can only contains some predefined values.
It is displayed by a {@link UiListAttributeNode}.
Note: in Android resources, a "flag" is a list of fixed values where one or
more values can be selected using an "or", e.g. "align='left|top'".
By contrast, an "enum" is a list of fixed values of which only one can be
selected at a given time, e.g. "gravity='right'".
This class handles the "flag" case.
The "enum" case is done using {@link ListAttributeDescriptor}. |
Fields Summary |
---|
private String[] | mNames |
Constructors Summary |
---|
public FlagAttributeDescriptor(String xmlLocalName, String uiName, String nsUri, String tooltip)Creates a new {@link FlagAttributeDescriptor} which automatically gets its
values from the FrameworkResourceManager.
super(xmlLocalName, uiName, nsUri, tooltip);
| public FlagAttributeDescriptor(String xmlLocalName, String uiName, String nsUri, String tooltip, String[] names)Creates a new {@link FlagAttributeDescriptor} which uses the provided values.
super(xmlLocalName, uiName, nsUri, tooltip);
mNames = names;
|
|