public final class AttributesUtilities extends Object
AttributeSet
s.Modifier and Type | Method and Description |
---|---|
static AttributeSet |
createComposite(AttributeSet... sets)
Creates a proxy
AttributeSet that will delegate to the
AttributeSet s passed in as a parameter. |
static AttributeSet |
createImmutable(AttributeSet... sets)
Creates an immutable
AttributeSet as a copy of AttributeSet s
passed into this method. |
static AttributeSet |
createImmutable(Object... keyValuePairs)
Creates an immutable
AttributeSet , which will contain the
keyValuePairs attributes. |
public static AttributeSet createImmutable(Object... keyValuePairs)
AttributeSet
, which will contain the
keyValuePairs
attributes. If the pairs
contain attributes with the same name the resulting AttributeSet
will return value of the first attribute it will find going through
the pairs in the order as they were passed in.keyValuePairs
- The contents of the AttributeSet
created
by this method. This parameter should list pairs
of key-value objects; each pair defining one attribute.AttributeSet
.public static AttributeSet createImmutable(AttributeSet... sets)
AttributeSet
as a copy of AttributeSet
s
passed into this method. If the AttributeSet
s
contain attributes with the same name the resulting AttributeSet
will return value of the first attribute it will find going through
the sets in the order as they were passed in.sets
- The AttributeSet
s which attributes will become
a contents of the newly created AttributeSet
.AttributeSet
.public static AttributeSet createComposite(AttributeSet... sets)
AttributeSet
that will delegate to the
AttributeSet
s passed in as a parameter. If the AttributeSet
s
contain attributes with the same name the composite AttributeSet
will return value of the first attribute it will find going through
the sets in the order as they were passed in.sets
- The AttributeSet
s to delegate to.AttributeSet
that will delegate
to the sets
passed in.