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 Attributes
public String getURI(int index)
getURI
in interface Attributes
public String getLocalName(int index)
getLocalName
in interface Attributes
public String getQName(int index)
getQName
in interface Attributes
public String getType(int index)
getType
in interface Attributes
public String getValue(int index)
getValue
in interface Attributes
public int getIndex(String uri, String localPart)
getIndex
in interface Attributes
public int getIndex(String qName)
getIndex
in interface Attributes
public String getType(String uri, String localName)
getType
in interface Attributes
public String getType(String qName)
getType
in interface Attributes
public String getValue(String uri, String localName)
getValue
in interface Attributes
public String getValue(String qName)
getValue
in interface Attributes
public void addAttribute(String name, Object value)
MutableAttributes
addAttribute
in interface MutableAttributes
name
- the namevalue
- the valueCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.