|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsferyx.administration.renderers.BigAttributeSet
public class BigAttributeSet
A straightforward implementation of MutableAttributeSet using a hash table.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans
package.
Please see XMLEncoder
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface javax.swing.text.AttributeSet |
---|
javax.swing.text.AttributeSet.CharacterAttribute, javax.swing.text.AttributeSet.ColorAttribute, javax.swing.text.AttributeSet.FontAttribute, javax.swing.text.AttributeSet.ParagraphAttribute |
Field Summary | |
---|---|
static javax.swing.text.AttributeSet |
EMPTY
An empty attribute set. |
Fields inherited from interface javax.swing.text.AttributeSet |
---|
NameAttribute, ResolveAttribute |
Constructor Summary | |
---|---|
BigAttributeSet()
Creates a new attribute set. |
|
BigAttributeSet(javax.swing.text.AttributeSet source)
Creates a new attribute set based on a supplied set of attributes. |
Method Summary | |
---|---|
void |
addAttribute(java.lang.Object name,
java.lang.Object value)
Adds an attribute to the list. |
void |
addAttributes(javax.swing.text.AttributeSet attributes)
Adds a set of attributes to the list. |
java.lang.Object |
clone()
Clones a set of attributes. |
boolean |
containsAttribute(java.lang.Object name,
java.lang.Object value)
Checks whether the attribute list contains a specified attribute name/value pair. |
boolean |
containsAttributes(javax.swing.text.AttributeSet attributes)
Checks whether the attribute list contains all the specified name/value pairs. |
javax.swing.text.AttributeSet |
copyAttributes()
Makes a copy of the attributes. |
boolean |
equals(java.lang.Object obj)
Compares this object to the specified object. |
java.lang.Object |
getAttribute(java.lang.Object name)
Gets the value of an attribute. |
int |
getAttributeCount()
Gets a count of the number of attributes. |
java.util.Enumeration |
getAttributeNames()
Gets the names of the attributes in the set. |
javax.swing.text.AttributeSet |
getResolveParent()
Gets the resolving parent. |
int |
hashCode()
Returns a hashcode for this set of attributes. |
boolean |
isDefined(java.lang.Object attrName)
Tells whether a given attribute is defined. |
boolean |
isEmpty()
Checks whether the set of attributes is empty. |
boolean |
isEqual(javax.swing.text.AttributeSet attr)
Compares two attribute sets. |
void |
removeAttribute(java.lang.Object name)
Removes an attribute from the list. |
void |
removeAttributes(javax.swing.text.AttributeSet attributes)
Removes a set of attributes from the list. |
void |
removeAttributes(java.util.Enumeration names)
Removes a set of attributes from the list. |
void |
setResolveParent(javax.swing.text.AttributeSet parent)
Sets the resolving parent. |
java.lang.String |
toString()
Converts the attribute set to a String. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final javax.swing.text.AttributeSet EMPTY
Constructor Detail |
---|
public BigAttributeSet()
public BigAttributeSet(javax.swing.text.AttributeSet source)
source
- the set of attributesMethod Detail |
---|
public boolean isEmpty()
public int getAttributeCount()
getAttributeCount
in interface javax.swing.text.AttributeSet
public boolean isDefined(java.lang.Object attrName)
isDefined
in interface javax.swing.text.AttributeSet
attrName
- the attribute name
public boolean isEqual(javax.swing.text.AttributeSet attr)
isEqual
in interface javax.swing.text.AttributeSet
attr
- the second attribute set
public javax.swing.text.AttributeSet copyAttributes()
copyAttributes
in interface javax.swing.text.AttributeSet
public java.util.Enumeration getAttributeNames()
getAttributeNames
in interface javax.swing.text.AttributeSet
Enumeration
public java.lang.Object getAttribute(java.lang.Object name)
getAttribute
in interface javax.swing.text.AttributeSet
name
- the attribute name
public boolean containsAttribute(java.lang.Object name, java.lang.Object value)
containsAttribute
in interface javax.swing.text.AttributeSet
name
- the namevalue
- the value
public boolean containsAttributes(javax.swing.text.AttributeSet attributes)
containsAttributes
in interface javax.swing.text.AttributeSet
attributes
- the attribute list
public void addAttribute(java.lang.Object name, java.lang.Object value)
addAttribute
in interface javax.swing.text.MutableAttributeSet
name
- the attribute namevalue
- the attribute valuepublic void addAttributes(javax.swing.text.AttributeSet attributes)
addAttributes
in interface javax.swing.text.MutableAttributeSet
attributes
- the set of attributes to addpublic void removeAttribute(java.lang.Object name)
removeAttribute
in interface javax.swing.text.MutableAttributeSet
name
- the attribute namepublic void removeAttributes(java.util.Enumeration names)
removeAttributes
in interface javax.swing.text.MutableAttributeSet
names
- the set of names to removepublic void removeAttributes(javax.swing.text.AttributeSet attributes)
removeAttributes
in interface javax.swing.text.MutableAttributeSet
attributes
- the set of attributes to removepublic javax.swing.text.AttributeSet getResolveParent()
getResolveParent
in interface javax.swing.text.AttributeSet
public void setResolveParent(javax.swing.text.AttributeSet parent)
setResolveParent
in interface javax.swing.text.MutableAttributeSet
parent
- the parentpublic java.lang.Object clone()
clone
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
true
if the object is an equivalent
set of attributes.
equals
in class java.lang.Object
obj
- the object to compare this attribute set with
true
if the objects are equal;
false
otherwisepublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |