javax.swing.text
Interface Style

All Superinterfaces:
AttributeSet, MutableAttributeSet
All Known Implementing Classes:
StyleContext.NamedStyle

public interface Style
extends MutableAttributeSet


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.swing.text.AttributeSet
AttributeSet.CharacterAttribute, AttributeSet.ColorAttribute, AttributeSet.FontAttribute, AttributeSet.ParagraphAttribute
 
Field Summary
 
Fields inherited from interface javax.swing.text.AttributeSet
NameAttribute, ResolveAttribute
 
Method Summary
 void addChangeListener(ChangeListener listener)
          Adds a ChangeListener object to the style.
 String getName()
          Returns the name of the style.
 void removeChangeListener(ChangeListener listener)
          Removes a ChangeListener from to the style.
 
Methods inherited from interface javax.swing.text.MutableAttributeSet
addAttribute, addAttributes, removeAttribute, removeAttributes, removeAttributes, setResolveParent
 
Methods inherited from interface javax.swing.text.AttributeSet
containsAttribute, containsAttributes, copyAttributes, getAttribute, getAttributeCount, getAttributeNames, getResolveParent, isDefined, isEqual
 

Method Detail

getName

String getName()
Returns the name of the style.

Returns:
the name

addChangeListener

void addChangeListener(ChangeListener listener)
Adds a ChangeListener object to the style.

Parameters:
listener - the listener object to add

removeChangeListener

void removeChangeListener(ChangeListener listener)
Removes a ChangeListener from to the style.

Parameters:
listener - the listener object to remove,