public class SwingAttributes extends Object implements MutableAttributes
| Constructor and Description |
|---|
SwingAttributes(MutableAttributeSet swingset) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(String name,
Object value)
Creates a new attribute set similar to this one except that it contains
an attribute with the given name and value.
|
int |
getIndex(String qName) |
int |
getIndex(String uri,
String localPart) |
int |
getLength() |
String |
getLocalName(int index) |
String |
getQName(int index) |
String |
getType(int index) |
String |
getType(String qName) |
String |
getType(String uri,
String localName) |
String |
getURI(int index) |
String |
getValue(int index) |
String |
getValue(String qName) |
String |
getValue(String uri,
String localName) |
public SwingAttributes(MutableAttributeSet swingset)
public int getLength()
getLength in interface Attributespublic String getURI(int index)
getURI in interface Attributespublic String getLocalName(int index)
getLocalName in interface Attributespublic String getQName(int index)
getQName in interface Attributespublic String getType(int index)
getType in interface Attributespublic String getValue(int index)
getValue in interface Attributespublic int getIndex(String uri, String localPart)
getIndex in interface Attributespublic int getIndex(String qName)
getIndex in interface Attributespublic String getType(String uri, String localName)
getType in interface Attributespublic String getType(String qName)
getType in interface Attributespublic String getValue(String uri, String localName)
getValue in interface Attributespublic String getValue(String qName)
getValue in interface Attributespublic void addAttribute(String name, Object value)
MutableAttributesaddAttribute in interface MutableAttributesname - the namevalue - the valueCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.