Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.text.AbstractDocument.AbstractElement
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 Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.
Constructor Summary | |
AbstractDocument.AbstractElement(AbstractDocument this$0,
Element parent,
AttributeSet a)
Creates a new AbstractElement. |
Method Summary | |
void | addAttribute(java.lang.Object name,
java.lang.Object value)
Adds an attribute to the element. |
void | addAttributes(AttributeSet attr)
Adds a set of attributes to the element. |
boolean | containsAttribute(java.lang.Object name,
java.lang.Object value)
Checks whether a given attribute name/value is defined. |
boolean | containsAttributes(AttributeSet attrs)
Checks whether the element contains all the attributes. |
AttributeSet | copyAttributes()
Copies a set of attributes. |
void | dump(java.io.PrintStream out,
int indentAmount)
Dumps a debugging representation of the element hierarchy. |
void | finalize()
Finalizes an AbstractElement. |
java.lang.Object | getAttribute(java.lang.Object attrName)
Gets the value of an attribute. |
int | getAttributeCount()
Gets the number of attributes that are defined. |
java.util.Enumeration | getAttributeNames()
Gets the names of all attributes. |
AttributeSet | getAttributes()
Gets the attributes for the element. |
Document | getDocument()
Retrieves the underlying model. |
Element | getElement(int index)
Gets a child element. |
int | getElementCount()
Gets the number of children for the element. |
int | getElementIndex(int offset)
Gets the child element index closest to the given model offset. |
int | getEndOffset()
Gets the ending offset in the model for the element. |
java.lang.String | getName()
Gets the name of the element. |
Element | getParentElement()
Gets the parent of the element. |
AttributeSet | getResolveParent()
Gets the resolving parent. |
int | getStartOffset()
Gets the starting offset in the model for the element. |
boolean | isDefined(java.lang.Object attrName)
Checks whether a given attribute is defined. |
boolean | isEqual(AttributeSet attr)
Checks whether two attribute sets are equal. |
boolean | isLeaf()
Checks whether the element is a leaf. |
void | removeAttribute(java.lang.Object name)
Removes an attribute from the set. |
void | removeAttributes(java.util.Enumeration names)
Removes a set of attributes for the element. |
void | removeAttributes(AttributeSet attrs)
Removes a set of attributes for the element. |
void | setResolveParent(AttributeSet parent)
Sets the resolving parent. |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Constructor Detail |
public AbstractDocument.AbstractElement(AbstractDocument this$0, Element parent, AttributeSet a)
parent
- the parent element
a
- the attributes for the elementMethod Detail |
public void dump(java.io.PrintStream out, int indentAmount)
out
- the output stream
indentAmount
- the indentation level >= 0protected void finalize() throws java.lang.Throwable
public int getAttributeCount()
public boolean isDefined(java.lang.Object attrName)
attrName
- the non-null attribute namepublic boolean isEqual(AttributeSet attr)
attr
- the attribute set to check againstpublic AttributeSet copyAttributes()
public java.lang.Object getAttribute(java.lang.Object attrName)
attrName
- the non-null attribute namepublic java.util.Enumeration getAttributeNames()
public boolean containsAttribute(java.lang.Object name, java.lang.Object value)
name
- the non-null attribute name
value
- the attribute valuepublic boolean containsAttributes(AttributeSet attrs)
attrs
- the attributes to checkpublic AttributeSet getResolveParent()
public void addAttribute(java.lang.Object name, java.lang.Object value)
name
- the non-null attribute name
value
- the attribute valuepublic void addAttributes(AttributeSet attr)
attr
- the attributes to addpublic void removeAttribute(java.lang.Object name)
name
- the non-null attribute namepublic void removeAttributes(java.util.Enumeration names)
names
- the attribute namespublic void removeAttributes(AttributeSet attrs)
attrs
- the attributespublic void setResolveParent(AttributeSet parent)
parent
- the parent, null if nonepublic Document getDocument()
public Element getParentElement()
public AttributeSet getAttributes()
public java.lang.String getName()
public abstract int getStartOffset()
public abstract int getEndOffset()
public abstract Element getElement(int index)
index
- the child index, >= 0 && < getElementCount()public abstract int getElementCount()
public abstract int getElementIndex(int offset)
offset
- the offset >= 0public abstract boolean isLeaf()
Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |