All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.text.JAttributes

java.lang.Object
   |
   +----com.sun.java.swing.text.JAttributes

public class JAttributes
extends Object
implements Attributes, Serializable
Implements the Attribute interface using a hashtable.


Variable Index

 o changeEvent
 o changeListener

Constructor Index

 o JAttributes()
 o JAttributes(Attributes)

Method Index

 o addChangeListener(ChangeListener)
 o copyAttributes(Attributes)
 o getAttribute(String)
Fetch the value of the given attribute.
 o getAttributeNames()
 o getLocalAttribute(String)
Fetch the value of the given attribute.
 o getResolveParent()
 o removeAttribute(String)
 o removeAttributes()
 o removeChangeListener(ChangeListener)
 o setAttribute(String, Object)
Set the value for some general attribute.
 o setResolveParent(Attributes)

Variables

 o changeListener
 protected transient ChangeListener changeListener
 o changeEvent
 protected ChangeEvent changeEvent

Constructors

 o JAttributes
 public JAttributes()
 o JAttributes
 public JAttributes(Attributes parent)

Methods

 o addChangeListener
 public void addChangeListener(ChangeListener l)
See Also:
addChangeListener
 o removeChangeListener
 public void removeChangeListener(ChangeListener l)
See Also:
removeChangeListener
 o getAttributeNames
 public String[] getAttributeNames()
See Also:
getAttributeNames
 o getAttribute
 public Object getAttribute(String attrName)
Fetch the value of the given attribute. If the value is not found locally, the search is continued upward until the value is either found or there are no more parents. If the value is not found, null is returned.

 o getLocalAttribute
 public Object getLocalAttribute(String attrName)
Fetch the value of the given attribute. If the value is not found locally, then discontinue the search and return null.

 o setAttribute
 public void setAttribute(String attrName,
                          Object attrValue)
Set the value for some general attribute.

 o removeAttribute
 public void removeAttribute(String attrName)
See Also:
removeAttribute
 o getResolveParent
 public Attributes getResolveParent()
 o setResolveParent
 public void setResolveParent(Attributes parent)
 o removeAttributes
 public void removeAttributes()
 o copyAttributes
 public void copyAttributes(Attributes attr)

All Packages  Class Hierarchy  This Package  Previous  Next  Index