javax.swing.text

Class StyleContext.NamedStyle

public class StyleContext.NamedStyle extends Object implements Serializable, Style

Field Summary
protected ChangeEventchangeEvent
protected EventListenerListlistenerList
Constructor Summary
NamedStyle()
NamedStyle(Style parent)
NamedStyle(String name, Style parent)
Method Summary
voidaddAttribute(Object name, Object value)
voidaddAttributes(AttributeSet attr)
voidaddChangeListener(ChangeListener l)
booleancontainsAttribute(Object name, Object value)
booleancontainsAttributes(AttributeSet attrs)
AttributeSetcopyAttributes()
protected voidfireStateChanged()
ObjectgetAttribute(Object attrName)
intgetAttributeCount()
Enumeration<?>getAttributeNames()
ChangeListener[]getChangeListeners()
<T extends EventListener> T[]getListeners(Class<T> listenerType)
StringgetName()
AttributeSetgetResolveParent()
booleanisDefined(Object attrName)
booleanisEqual(AttributeSet attr)
voidremoveAttribute(Object name)
voidremoveAttributes(AttributeSet attrs)
voidremoveAttributes(Enumeration<?> names)
voidremoveChangeListener(ChangeListener l)
voidsetName(String n)
voidsetResolveParent(AttributeSet parent)
StringtoString()

Field Detail

changeEvent

protected transient ChangeEvent changeEvent

listenerList

protected EventListenerList listenerList

Constructor Detail

NamedStyle

public NamedStyle()

NamedStyle

public NamedStyle(Style parent)

NamedStyle

public NamedStyle(String name, Style parent)

Method Detail

addAttribute

public void addAttribute(Object name, Object value)

addAttributes

public void addAttributes(AttributeSet attr)

addChangeListener

public void addChangeListener(ChangeListener l)

containsAttribute

public boolean containsAttribute(Object name, Object value)

containsAttributes

public boolean containsAttributes(AttributeSet attrs)

copyAttributes

public AttributeSet copyAttributes()

fireStateChanged

protected void fireStateChanged()

getAttribute

public Object getAttribute(Object attrName)

getAttributeCount

public int getAttributeCount()

getAttributeNames

public Enumeration<?> getAttributeNames()

getChangeListeners

public ChangeListener[] getChangeListeners()

getListeners

public <T extends EventListener> T[] getListeners(Class<T> listenerType)

getName

public String getName()

getResolveParent

public AttributeSet getResolveParent()

isDefined

public boolean isDefined(Object attrName)

isEqual

public boolean isEqual(AttributeSet attr)

removeAttribute

public void removeAttribute(Object name)

removeAttributes

public void removeAttributes(AttributeSet attrs)

removeAttributes

public void removeAttributes(Enumeration<?> names)

removeChangeListener

public void removeChangeListener(ChangeListener l)

setName

public void setName(String n)

setResolveParent

public void setResolveParent(AttributeSet parent)

toString

public String toString()