public final class AttributesUtilities extends Object
AttributeSets.| Modifier and Type | Method and Description |
|---|---|
static AttributeSet |
createComposite(AttributeSet... sets)
Creates a proxy
AttributeSet that will delegate to the
AttributeSets passed in as a parameter. |
static AttributeSet |
createImmutable(AttributeSet... sets)
Creates an immutable
AttributeSet as a copy of AttributeSets
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 AttributeSets
passed into this method. If the AttributeSets
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 AttributeSets which attributes will become
a contents of the newly created AttributeSet.AttributeSet.public static AttributeSet createComposite(AttributeSet... sets)
AttributeSet that will delegate to the
AttributeSets passed in as a parameter. If the AttributeSets
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 AttributeSets to delegate to.AttributeSet that will delegate
to the sets passed in.Built on May 22 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.