javax.swing.text.html

Class MultiStyle

public class MultiStyle extends MultiAttributeSet implements Style

A Style implementation that is able to multiplex between several other Styles. This is used for CSS style resolving.
Constructor Summary
MultiStyle(String n, AttributeSet[] m)
Creates a new instance.
Method Summary
voidaddAttribute(Object name, Object value)
voidaddAttributes(AttributeSet atts)
voidaddChangeListener(ChangeListener listener)
StringgetName()
Returns the name of the style.
voidremoveAttribute(Object name)
voidremoveAttributes(Enumeration names)
voidremoveAttributes(AttributeSet atts)
voidremoveChangeListener(ChangeListener listener)
voidsetResolveParent(AttributeSet parent)

Constructor Detail

MultiStyle

public MultiStyle(String n, AttributeSet[] m)
Creates a new instance.

Parameters: n the name m the styles to multiplex

Method Detail

addAttribute

public void addAttribute(Object name, Object value)

addAttributes

public void addAttributes(AttributeSet atts)

addChangeListener

public void addChangeListener(ChangeListener listener)

getName

public String getName()
Returns the name of the style.

Returns: the name of the style

removeAttribute

public void removeAttribute(Object name)

removeAttributes

public void removeAttributes(Enumeration names)

removeAttributes

public void removeAttributes(AttributeSet atts)

removeChangeListener

public void removeChangeListener(ChangeListener listener)

setResolveParent

public void setResolveParent(AttributeSet parent)