<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Tue Jun 29 06:00:58 GMT+01:00 1999 -->
<TITLE>
Swing 1.1 API Specification: Class  AbstractDocument.AbstractElement
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="class-use/AbstractDocument.AbstractElement.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
Swing 1.1</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../javax/swing/text/AbstractDocument.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/swing/text/AbstractDocument.BranchElement.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="AbstractDocument.AbstractElement.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
javax.swing.text</FONT>
<BR>
Class  AbstractDocument.AbstractElement</H2>
<PRE>
java.lang.Object
  |
  +--<B>javax.swing.text.AbstractDocument.AbstractElement</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../javax/swing/text/AbstractDocument.BranchElement.html">AbstractDocument.BranchElement</A>, <A HREF="../../../javax/swing/text/AbstractDocument.LeafElement.html">AbstractDocument.LeafElement</A></DD>
</DL>
<HR>
<DL>
<DT>public abstract class <B>AbstractDocument.AbstractElement</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../javax/swing/text/Element.html">Element</A>, <A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A>, java.io.Serializable, <A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A></DL>

<P>
Implements the abstract part of an element.  By default elements
 support attributes by having a field that represents the immutable
 part of the current attribute set for the element.  The element itself
 implements MutableAttributeSet which can be used to modify the set
 by fetching a new immutable set.  The immutable sets are provided
 by the AttributeContext associated with the document.
 <p>
 <strong>Warning:</strong>
 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.  A future release of Swing will provide support for
 long term persistence.
<P>
<DL>
<DT><B>See Also: </B><DD><A HREF="../../../serialized-form.html#javax.swing.text.AbstractDocument.AbstractElement">Serialized Form</A></DL>
<HR>

<P>
<!-- ======== INNER CLASS SUMMARY ======== -->


<!-- =========== FIELD SUMMARY =========== -->


<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#AbstractDocument.AbstractElement(javax.swing.text.AbstractDocument, javax.swing.text.Element, javax.swing.text.AttributeSet)">AbstractDocument.AbstractElement</A></B>(<A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;parent,
                                 <A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new AbstractElement.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#addAttribute(java.lang.Object, java.lang.Object)">addAttribute</A></B>(java.lang.Object&nbsp;name,
             java.lang.Object&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds an attribute to the element.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#addAttributes(javax.swing.text.AttributeSet)">addAttributes</A></B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a set of attributes to the element.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;java.util.Enumeration</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#children()">children</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the children of the reciever as an Enumeration.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#containsAttribute(java.lang.Object, java.lang.Object)">containsAttribute</A></B>(java.lang.Object&nbsp;name,
                  java.lang.Object&nbsp;value)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether a given attribute name/value is defined.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#containsAttributes(javax.swing.text.AttributeSet)">containsAttributes</A></B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attrs)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether the element contains all the attributes.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#copyAttributes()">copyAttributes</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copies a set of attributes.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#dump(java.io.PrintStream, int)">dump</A></B>(java.io.PrintStream&nbsp;psOut,
     int&nbsp;indentAmount)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dumps a debugging representation of the element hierarchy.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#finalize()">finalize</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finalizes an AbstractElement.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getAllowsChildren()">getAllowsChildren</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the receiver allows children.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getAttribute(java.lang.Object)">getAttribute</A></B>(java.lang.Object&nbsp;attrName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the value of an attribute.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getAttributeCount()">getAttributeCount</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the number of attributes that are defined.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.util.Enumeration</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getAttributeNames()">getAttributeNames</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the names of all attributes.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getAttributes()">getAttributes</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the attributes for the element.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getChildAt(int)">getChildAt</A></B>(int&nbsp;childIndex)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the child <code>TreeNode</code> at index 
 <code>childIndex</code>.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getChildCount()">getChildCount</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of children <code>TreeNode</code>s the receiver
 contains.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/swing/text/Document.html">Document</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getDocument()">getDocument</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Retrieves the underlying model.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;<A HREF="../../../javax/swing/text/Element.html">Element</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getElement(int)">getElement</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a child element.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getElementCount()">getElementCount</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the number of children for the element.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getElementIndex(int)">getElementIndex</A></B>(int&nbsp;offset)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the child element index closest to the given model offset.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getEndOffset()">getEndOffset</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the ending offset in the model for the element.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getIndex(javax.swing.tree.TreeNode)">getIndex</A></B>(<A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A>&nbsp;node)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the index of <code>node</code> in the receivers children.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getName()">getName</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the name of the element.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getParent()">getParent</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the parent <code>TreeNode</code> of the receiver.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/swing/text/Element.html">Element</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getParentElement()">getParentElement</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the parent of the element.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getResolveParent()">getResolveParent</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the resolving parent.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getStartOffset()">getStartOffset</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the starting offset in the model for the element.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#isDefined(java.lang.Object)">isDefined</A></B>(java.lang.Object&nbsp;attrName)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether a given attribute is defined.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#isEqual(javax.swing.text.AttributeSet)">isEqual</A></B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether two attribute sets are equal.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>abstract &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#isLeaf()">isLeaf</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether the element is a leaf.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#removeAttribute(java.lang.Object)">removeAttribute</A></B>(java.lang.Object&nbsp;name)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes an attribute from the set.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#removeAttributes(javax.swing.text.AttributeSet)">removeAttributes</A></B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attrs)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a set of attributes for the element.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#removeAttributes(java.util.Enumeration)">removeAttributes</A></B>(java.util.Enumeration&nbsp;names)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a set of attributes for the element.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#setResolveParent(javax.swing.text.AttributeSet)">setResolveParent</A></B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;parent)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the resolving parent.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE>clone, 
equals, 
getClass, 
hashCode, 
notify, 
notifyAll, 
toString, 
wait, 
wait, 
wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="AbstractDocument.AbstractElement(javax.swing.text.AbstractDocument, javax.swing.text.Element, javax.swing.text.AttributeSet)"><!-- --></A><H3>
AbstractDocument.AbstractElement</H3>
<PRE>
public <B>AbstractDocument.AbstractElement</B>(<A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;parent,
                                        <A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</PRE>
<DL>
<DD>Creates a new AbstractElement.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>parent</CODE> - the parent element<DD><CODE>a</CODE> - the attributes for the element</DL>
</DD>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="dump(java.io.PrintStream, int)"><!-- --></A><H3>
dump</H3>
<PRE>
public void <B>dump</B>(java.io.PrintStream&nbsp;psOut,
                 int&nbsp;indentAmount)</PRE>
<DL>
<DD>Dumps a debugging representation of the element hierarchy.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>out</CODE> - the output stream<DD><CODE>indentAmount</CODE> - the indentation level >= 0</DL>
</DD>
</DL>
<HR>

<A NAME="finalize()"><!-- --></A><H3>
finalize</H3>
<PRE>
protected void <B>finalize</B>()
                 throws java.lang.Throwable</PRE>
<DL>
<DD>Finalizes an AbstractElement.<DD><DL>
<DT><B>Overrides:</B><DD>finalize in class java.lang.Object</DL>
</DD>
</DL>
<HR>

<A NAME="getAttributeCount()"><!-- --></A><H3>
getAttributeCount</H3>
<PRE>
public int <B>getAttributeCount</B>()</PRE>
<DL>
<DD>Gets the number of attributes that are defined.<DD><DL>
<DT><B>Returns:</B><DD>the number of attributes >= 0<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/AttributeSet.html#getAttributeCount()"><CODE>AttributeSet.getAttributeCount()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="isDefined(java.lang.Object)"><!-- --></A><H3>
isDefined</H3>
<PRE>
public boolean <B>isDefined</B>(java.lang.Object&nbsp;attrName)</PRE>
<DL>
<DD>Checks whether a given attribute is defined.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>attrName</CODE> - the non-null attribute name<DT><B>Returns:</B><DD>true if the attribute is defined<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/AttributeSet.html#isDefined(java.lang.Object)"><CODE>AttributeSet.isDefined(java.lang.Object)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="isEqual(javax.swing.text.AttributeSet)"><!-- --></A><H3>
isEqual</H3>
<PRE>
public boolean <B>isEqual</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr)</PRE>
<DL>
<DD>Checks whether two attribute sets are equal.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>attr</CODE> - the attribute set to check against<DT><B>Returns:</B><DD>true if the same<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/AttributeSet.html#isEqual(javax.swing.text.AttributeSet)"><CODE>AttributeSet.isEqual(javax.swing.text.AttributeSet)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="copyAttributes()"><!-- --></A><H3>
copyAttributes</H3>
<PRE>
public <A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A> <B>copyAttributes</B>()</PRE>
<DL>
<DD>Copies a set of attributes.<DD><DL>
<DT><B>Returns:</B><DD>the copy<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/AttributeSet.html#copyAttributes()"><CODE>AttributeSet.copyAttributes()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getAttribute(java.lang.Object)"><!-- --></A><H3>
getAttribute</H3>
<PRE>
public java.lang.Object <B>getAttribute</B>(java.lang.Object&nbsp;attrName)</PRE>
<DL>
<DD>Gets the value of an attribute.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>attrName</CODE> - the non-null attribute name<DT><B>Returns:</B><DD>the attribute value<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/AttributeSet.html#getAttribute(java.lang.Object)"><CODE>AttributeSet.getAttribute(java.lang.Object)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getAttributeNames()"><!-- --></A><H3>
getAttributeNames</H3>
<PRE>
public java.util.Enumeration <B>getAttributeNames</B>()</PRE>
<DL>
<DD>Gets the names of all attributes.<DD><DL>
<DT><B>Returns:</B><DD>the attribute names as an enumeration<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/AttributeSet.html#getAttributeNames()"><CODE>AttributeSet.getAttributeNames()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="containsAttribute(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
containsAttribute</H3>
<PRE>
public boolean <B>containsAttribute</B>(java.lang.Object&nbsp;name,
                                 java.lang.Object&nbsp;value)</PRE>
<DL>
<DD>Checks whether a given attribute name/value is defined.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the non-null attribute name<DD><CODE>value</CODE> - the attribute value<DT><B>Returns:</B><DD>true if the name/value is defined<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/AttributeSet.html#containsAttribute(java.lang.Object, java.lang.Object)"><CODE>AttributeSet.containsAttribute(java.lang.Object, java.lang.Object)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="containsAttributes(javax.swing.text.AttributeSet)"><!-- --></A><H3>
containsAttributes</H3>
<PRE>
public boolean <B>containsAttributes</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attrs)</PRE>
<DL>
<DD>Checks whether the element contains all the attributes.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>attrs</CODE> - the attributes to check<DT><B>Returns:</B><DD>true if the element contains all the attributes<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/AttributeSet.html#containsAttributes(javax.swing.text.AttributeSet)"><CODE>AttributeSet.containsAttributes(javax.swing.text.AttributeSet)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getResolveParent()"><!-- --></A><H3>
getResolveParent</H3>
<PRE>
public <A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A> <B>getResolveParent</B>()</PRE>
<DL>
<DD>Gets the resolving parent.
 If not overriden, the resolving parent defaults to 
 the parent element.<DD><DL>
<DT><B>Returns:</B><DD>the attributes from the parent, null if none<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/AttributeSet.html#getResolveParent()"><CODE>AttributeSet.getResolveParent()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="addAttribute(java.lang.Object, java.lang.Object)"><!-- --></A><H3>
addAttribute</H3>
<PRE>
public void <B>addAttribute</B>(java.lang.Object&nbsp;name,
                         java.lang.Object&nbsp;value)</PRE>
<DL>
<DD>Adds an attribute to the element.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/text/MutableAttributeSet.html#addAttribute(java.lang.Object, java.lang.Object)">addAttribute</A> in interface <A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A><DT><B>Parameters:</B><DD><CODE>name</CODE> - the non-null attribute name<DD><CODE>value</CODE> - the attribute value<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/MutableAttributeSet.html#addAttribute(java.lang.Object, java.lang.Object)"><CODE>MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="addAttributes(javax.swing.text.AttributeSet)"><!-- --></A><H3>
addAttributes</H3>
<PRE>
public void <B>addAttributes</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr)</PRE>
<DL>
<DD>Adds a set of attributes to the element.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/text/MutableAttributeSet.html#addAttributes(javax.swing.text.AttributeSet)">addAttributes</A> in interface <A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A><DT><B>Parameters:</B><DD><CODE>attr</CODE> - the attributes to add<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/MutableAttributeSet.html#addAttribute(java.lang.Object, java.lang.Object)"><CODE>MutableAttributeSet.addAttribute(java.lang.Object, java.lang.Object)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="removeAttribute(java.lang.Object)"><!-- --></A><H3>
removeAttribute</H3>
<PRE>
public void <B>removeAttribute</B>(java.lang.Object&nbsp;name)</PRE>
<DL>
<DD>Removes an attribute from the set.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/text/MutableAttributeSet.html#removeAttribute(java.lang.Object)">removeAttribute</A> in interface <A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A><DT><B>Parameters:</B><DD><CODE>name</CODE> - the non-null attribute name<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/MutableAttributeSet.html#removeAttribute(java.lang.Object)"><CODE>MutableAttributeSet.removeAttribute(java.lang.Object)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="removeAttributes(java.util.Enumeration)"><!-- --></A><H3>
removeAttributes</H3>
<PRE>
public void <B>removeAttributes</B>(java.util.Enumeration&nbsp;names)</PRE>
<DL>
<DD>Removes a set of attributes for the element.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/text/MutableAttributeSet.html#removeAttributes(java.util.Enumeration)">removeAttributes</A> in interface <A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A><DT><B>Parameters:</B><DD><CODE>names</CODE> - the attribute names<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/MutableAttributeSet.html#removeAttributes(java.util.Enumeration)"><CODE>MutableAttributeSet.removeAttributes(java.util.Enumeration)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="removeAttributes(javax.swing.text.AttributeSet)"><!-- --></A><H3>
removeAttributes</H3>
<PRE>
public void <B>removeAttributes</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attrs)</PRE>
<DL>
<DD>Removes a set of attributes for the element.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/text/MutableAttributeSet.html#removeAttributes(javax.swing.text.AttributeSet)">removeAttributes</A> in interface <A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A><DT><B>Parameters:</B><DD><CODE>attrs</CODE> - the attributes<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/MutableAttributeSet.html#removeAttributes(java.util.Enumeration)"><CODE>MutableAttributeSet.removeAttributes(java.util.Enumeration)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setResolveParent(javax.swing.text.AttributeSet)"><!-- --></A><H3>
setResolveParent</H3>
<PRE>
public void <B>setResolveParent</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;parent)</PRE>
<DL>
<DD>Sets the resolving parent.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/text/MutableAttributeSet.html#setResolveParent(javax.swing.text.AttributeSet)">setResolveParent</A> in interface <A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A><DT><B>Parameters:</B><DD><CODE>parent</CODE> - the parent, null if none<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/MutableAttributeSet.html#setResolveParent(javax.swing.text.AttributeSet)"><CODE>MutableAttributeSet.setResolveParent(javax.swing.text.AttributeSet)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getDocument()"><!-- --></A><H3>
getDocument</H3>
<PRE>
public <A HREF="../../../javax/swing/text/Document.html">Document</A> <B>getDocument</B>()</PRE>
<DL>
<DD>Retrieves the underlying model.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/text/Element.html#getDocument()">getDocument</A> in interface <A HREF="../../../javax/swing/text/Element.html">Element</A><DT><B>Returns:</B><DD>the model</DL>
</DD>
</DL>
<HR>

<A NAME="getParentElement()"><!-- --></A><H3>
getParentElement</H3>
<PRE>
public <A HREF="../../../javax/swing/text/Element.html">Element</A> <B>getParentElement</B>()</PRE>
<DL>
<DD>Gets the parent of the element.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/text/Element.html#getParentElement()">getParentElement</A> in interface <A HREF="../../../javax/swing/text/Element.html">Element</A><DT><B>Returns:</B><DD>the parent</DL>
</DD>
</DL>
<HR>

<A NAME="getAttributes()"><!-- --></A><H3>
getAttributes</H3>
<PRE>
public <A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A> <B>getAttributes</B>()</PRE>
<DL>
<DD>Gets the attributes for the element.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/text/Element.html#getAttributes()">getAttributes</A> in interface <A HREF="../../../javax/swing/text/Element.html">Element</A><DT><B>Returns:</B><DD>the attribute set</DL>
</DD>
</DL>
<HR>

<A NAME="getName()"><!-- --></A><H3>
getName</H3>
<PRE>
public java.lang.String <B>getName</B>()</PRE>
<DL>
<DD>Gets the name of the element.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/text/Element.html#getName()">getName</A> in interface <A HREF="../../../javax/swing/text/Element.html">Element</A><DT><B>Returns:</B><DD>the name, null if none</DL>
</DD>
</DL>
<HR>

<A NAME="getStartOffset()"><!-- --></A><H3>
getStartOffset</H3>
<PRE>
public abstract int <B>getStartOffset</B>()</PRE>
<DL>
<DD>Gets the starting offset in the model for the element.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/text/Element.html#getStartOffset()">getStartOffset</A> in interface <A HREF="../../../javax/swing/text/Element.html">Element</A><DT><B>Returns:</B><DD>the offset >= 0</DL>
</DD>
</DL>
<HR>

<A NAME="getEndOffset()"><!-- --></A><H3>
getEndOffset</H3>
<PRE>
public abstract int <B>getEndOffset</B>()</PRE>
<DL>
<DD>Gets the ending offset in the model for the element.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/text/Element.html#getEndOffset()">getEndOffset</A> in interface <A HREF="../../../javax/swing/text/Element.html">Element</A><DT><B>Returns:</B><DD>the offset >= 0</DL>
</DD>
</DL>
<HR>

<A NAME="getElement(int)"><!-- --></A><H3>
getElement</H3>
<PRE>
public abstract <A HREF="../../../javax/swing/text/Element.html">Element</A> <B>getElement</B>(int&nbsp;index)</PRE>
<DL>
<DD>Gets a child element.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/text/Element.html#getElement(int)">getElement</A> in interface <A HREF="../../../javax/swing/text/Element.html">Element</A><DT><B>Parameters:</B><DD><CODE>index</CODE> - the child index, >= 0 && < getElementCount()<DT><B>Returns:</B><DD>the child element</DL>
</DD>
</DL>
<HR>

<A NAME="getElementCount()"><!-- --></A><H3>
getElementCount</H3>
<PRE>
public abstract int <B>getElementCount</B>()</PRE>
<DL>
<DD>Gets the number of children for the element.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/text/Element.html#getElementCount()">getElementCount</A> in interface <A HREF="../../../javax/swing/text/Element.html">Element</A><DT><B>Returns:</B><DD>the number of children >= 0</DL>
</DD>
</DL>
<HR>

<A NAME="getElementIndex(int)"><!-- --></A><H3>
getElementIndex</H3>
<PRE>
public abstract int <B>getElementIndex</B>(int&nbsp;offset)</PRE>
<DL>
<DD>Gets the child element index closest to the given model offset.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/text/Element.html#getElementIndex(int)">getElementIndex</A> in interface <A HREF="../../../javax/swing/text/Element.html">Element</A><DT><B>Parameters:</B><DD><CODE>offset</CODE> - the offset >= 0<DT><B>Returns:</B><DD>the element index >= 0</DL>
</DD>
</DL>
<HR>

<A NAME="isLeaf()"><!-- --></A><H3>
isLeaf</H3>
<PRE>
public abstract boolean <B>isLeaf</B>()</PRE>
<DL>
<DD>Checks whether the element is a leaf.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/text/Element.html#isLeaf()">isLeaf</A> in interface <A HREF="../../../javax/swing/text/Element.html">Element</A><DT><B>Returns:</B><DD>true if a leaf</DL>
</DD>
</DL>
<HR>

<A NAME="getChildAt(int)"><!-- --></A><H3>
getChildAt</H3>
<PRE>
public <A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A> <B>getChildAt</B>(int&nbsp;childIndex)</PRE>
<DL>
<DD>Returns the child <code>TreeNode</code> at index 
 <code>childIndex</code>.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/tree/TreeNode.html#getChildAt(int)">getChildAt</A> in interface <A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A></DL>
</DD>
</DL>
<HR>

<A NAME="getChildCount()"><!-- --></A><H3>
getChildCount</H3>
<PRE>
public int <B>getChildCount</B>()</PRE>
<DL>
<DD>Returns the number of children <code>TreeNode</code>s the receiver
 contains.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/tree/TreeNode.html#getChildCount()">getChildCount</A> in interface <A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A></DL>
</DD>
</DL>
<HR>

<A NAME="getParent()"><!-- --></A><H3>
getParent</H3>
<PRE>
public <A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A> <B>getParent</B>()</PRE>
<DL>
<DD>Returns the parent <code>TreeNode</code> of the receiver.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/tree/TreeNode.html#getParent()">getParent</A> in interface <A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A></DL>
</DD>
</DL>
<HR>

<A NAME="getIndex(javax.swing.tree.TreeNode)"><!-- --></A><H3>
getIndex</H3>
<PRE>
public int <B>getIndex</B>(<A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A>&nbsp;node)</PRE>
<DL>
<DD>Returns the index of <code>node</code> in the receivers children.
 If the receiver does not contain <code>node</code>, -1 will be
 returned.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/tree/TreeNode.html#getIndex(javax.swing.tree.TreeNode)">getIndex</A> in interface <A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A></DL>
</DD>
</DL>
<HR>

<A NAME="getAllowsChildren()"><!-- --></A><H3>
getAllowsChildren</H3>
<PRE>
public abstract boolean <B>getAllowsChildren</B>()</PRE>
<DL>
<DD>Returns true if the receiver allows children.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/tree/TreeNode.html#getAllowsChildren()">getAllowsChildren</A> in interface <A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A></DL>
</DD>
</DL>
<HR>

<A NAME="children()"><!-- --></A><H3>
children</H3>
<PRE>
public abstract java.util.Enumeration <B>children</B>()</PRE>
<DL>
<DD>Returns the children of the reciever as an Enumeration.<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/tree/TreeNode.html#children()">children</A> in interface <A HREF="../../../javax/swing/tree/TreeNode.html">TreeNode</A></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="class-use/AbstractDocument.AbstractElement.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
Swing 1.1</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../javax/swing/text/AbstractDocument.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/swing/text/AbstractDocument.BranchElement.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="AbstractDocument.AbstractElement.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>Java is a trademark or registered trademark of Sun Microsystems,  Inc. in the US and other countries.<br>Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font>
</BODY>
</HTML>
