javax.swing.text

Interface Style

public interface Style extends MutableAttributeSet

Method Summary
voidaddChangeListener(ChangeListener listener)
Adds a ChangeListener object to the style.
StringgetName()
Returns the name of the style.
voidremoveChangeListener(ChangeListener listener)
Removes a ChangeListener from to the style.

Method Detail

addChangeListener

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

Parameters: listener the listener object to add

getName

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

Returns: the name

removeChangeListener

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

Parameters: listener the listener object to remove,