📄 abstractdocument.abstractelement.html
字号:
<BR> Gets the names of all attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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> Gets the attributes for the element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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 childIndex)</CODE><BR> Returns the child <code>TreeNode</code> at index <code>childIndex</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getChildCount()">getChildCount</A></B>()</CODE><BR> Returns the number of children <code>TreeNode</code>s the receiver contains.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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> Retrieves the underlying model.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <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 index)</CODE><BR> Gets a child element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getElementCount()">getElementCount</A></B>()</CODE><BR> Gets the number of children for the element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getElementIndex(int)">getElementIndex</A></B>(int offset)</CODE><BR> Gets the child element index closest to the given model offset.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getEndOffset()">getEndOffset</A></B>()</CODE><BR> Gets the ending offset in the model for the element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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> node)</CODE><BR> Returns the index of <code>node</code> in the receivers children.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getName()">getName</A></B>()</CODE><BR> Gets the name of the element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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> Returns the parent <code>TreeNode</code> of the receiver.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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> Gets the parent of the element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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> Gets the resolving parent.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#getStartOffset()">getStartOffset</A></B>()</CODE><BR> Gets the starting offset in the model for the element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#isDefined(java.lang.Object)">isDefined</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> attrName)</CODE><BR> Checks whether a given attribute is defined.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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> attr)</CODE><BR> Checks whether two attribute sets are equal.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#isLeaf()">isLeaf</A></B>()</CODE><BR> Checks whether the element is a leaf.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#removeAttribute(java.lang.Object)">removeAttribute</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> name)</CODE><BR> Removes an attribute from the set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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> attrs)</CODE><BR> Removes a set of attributes for the element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/AbstractDocument.AbstractElement.html#removeAttributes(java.util.Enumeration)">removeAttributes</A></B>(<A HREF="../../../java/util/Enumeration.html">Enumeration</A> names)</CODE><BR> Removes a set of attributes for the element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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> parent)</CODE><BR> Sets the resolving parent.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="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> parent, <A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A> 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" CLASS="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>(<A HREF="../../../java/io/PrintStream.html">PrintStream</A> psOut, int indentAmount)</PRE><DL><DD>Dumps a debugging representation of the element hierarchy.<DD><DL></DL></DD><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 <A HREF="../../../java/lang/Throwable.html">Throwable</A></PRE><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -