12/16/2023 0 Comments Java interface attributes![]() ![]() Object value) Returns true if this set contains this attribute with an equal value. Public boolean containsAttribute( Object name, ![]() Not include the resolving parent, if one is defined. The elements of the enumeration are all Strings. Public Enumeration getAttributeNames() Returns an enumeration over the names of the attributes in the set. Parameters: key - the non-null key of the attribute binding Returns: the value Parent (if one exists) until the value is eitherįound or there are no more parents. Locally, the search is continued upward through the resolving Public Object getAttribute( Object key) Fetches the value of the given attribute. Public AttributeSet copyAttributes() Returns an attribute set that is guaranteed not Parameters: attr - an attribute set Returns: true if the sets are equivalent Public boolean isEqual( AttributeSet attr) Determines if the two attribute sets are equivalent. Parameters: attrName - the attribute name Returns: true if the attribute has a value specified Public boolean isDefined( Object attrName) Checks whether the named attribute has a value specified in Public int getAttributeCount() Returns the number of attributes contained in this set. Public static final Object ResolveAttribute Attribute name used to identifiy the resolving parent Public static final Object NameAttribute Attribute name used to name the collection of The set without resolving through another attributeĭetermines if the two attribute sets are equivalent. Returns an enumeration over the names of the attributes in the set.Ĭhecks whether the named attribute has a value specified in Returns the number of attributes contained in this set. Returns an attribute set that is guaranteed notįetches the value of the given attribute. Returns true if this set contains all the attributes with equal values. Returns true if this set contains this attribute with an equal value.ĬontainsAttributes( AttributeSet attributes) The determination of what font to use to render someĪttribute name used to name the collection ofĪttribute name used to identifiy the resolving parent To be present on any attribute key that contributes to This interface is the type signature that is expected Key doesn't resolve locally, and a resolving parentĮxists, the key will be resolved through the parent. Typically View implementations will respond to attributeĭefinitions and render something to represent the attributes.Īttributes can potentially resolve in a hierarchy. Set of possible keys is unbounded and can be anything. To some graphical representation such as a font. TheseĪre generally used to describe features that will contribute Something like a style run, a logical style, etc. An attribute is basically a key andĪ value assigned to the key. Interface AttributeSet All Known Subinterfaces: MutableAttributeSet, Style All Known Implementing Classes: StyleContext.SmallAttributeSetĪ collection of unique attributes. Java 2 Platform SE v1.3: Interface AttributeSet ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |