public interface AttrSet
Component controls, as well as other classes that
need to use the attribute set.| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static String |
STYLE_ATTR |
Defines the style of the attributes in an attribute set.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Optional<Attr> |
getAttr(int index) |
Obtains an attribute using its index.
|
Optional<Attr> |
getAttr(String fullName) |
Obtains an attribute by its name.
|
int |
getLength() |
Obtains the quantity of attributes in the attribute set.
|
Optional<String> |
getStyle() |
Obtains the attribute style.
|
int getLength()
Optional<Attr> getAttr(int index)
index - Indicates the index value ranging from 0 to the quantity of existing attributes minus 1. A value
outside of this range will not generate an error, but will receive an empty Optional object.