⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 element.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<CODE>abstract &nbsp;<A HREF="../../../../javax/swing/text/Element.html">Element</A></CODE></FONT></TD><TD><CODE><B>AbstractDocument.AbstractElement.</B><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" CLASS="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>AbstractDocument.BranchElement.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.BranchElement.html#positionToElement(int)">positionToElement</A></B>(int&nbsp;pos)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the child element that contains the given model position.</TD></TR><TR BGCOLOR="white" CLASS="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>AbstractDocument.BranchElement.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.BranchElement.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" CLASS="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>AbstractDocument.LeafElement.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.LeafElement.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" CLASS="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>AbstractDocument.ElementEdit.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.ElementEdit.html#getElement()">getElement</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the underlying element.</TD></TR><TR BGCOLOR="white" CLASS="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>AbstractDocument.ElementEdit.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.ElementEdit.html#getChildrenRemoved()">getChildrenRemoved</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a list of children that were removed.</TD></TR><TR BGCOLOR="white" CLASS="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>AbstractDocument.ElementEdit.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.ElementEdit.html#getChildrenAdded()">getChildrenAdded</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a list of children that were added.</TD></TR><TR BGCOLOR="white" CLASS="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>StyledEditorKit.</B><B><A HREF="../../../../javax/swing/text/StyledEditorKit.html#getCharacterAttributeRun()">getCharacterAttributeRun</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the element representing the current run of character attributes for the caret.</TD></TR><TR BGCOLOR="white" CLASS="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>StyledDocument.</B><B><A HREF="../../../../javax/swing/text/StyledDocument.html#getParagraphElement(int)">getParagraphElement</A></B>(int&nbsp;pos)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the element that represents the paragraph that encloses the given offset within the document.</TD></TR><TR BGCOLOR="white" CLASS="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>StyledDocument.</B><B><A HREF="../../../../javax/swing/text/StyledDocument.html#getCharacterElement(int)">getCharacterElement</A></B>(int&nbsp;pos)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the element that represents the character that is at the given offset within the document.</TD></TR><TR BGCOLOR="white" CLASS="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>PlainDocument.</B><B><A HREF="../../../../javax/swing/text/PlainDocument.html#getDefaultRootElement()">getDefaultRootElement</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the default root element for the document model.</TD></TR><TR BGCOLOR="white" CLASS="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>PlainDocument.</B><B><A HREF="../../../../javax/swing/text/PlainDocument.html#getParagraphElement(int)">getParagraphElement</A></B>(int&nbsp;pos)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the paragraph element containing the given position.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../javax/swing/text/Element.html">Element</A></CODE></FONT></TD><TD><CODE><B>Utilities.</B><B><A HREF="../../../../javax/swing/text/Utilities.html#getParagraphElement(javax.swing.text.JTextComponent, int)">getParagraphElement</A></B>(<A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A>&nbsp;c,                    int&nbsp;offs)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines the element to use for a paragraph/line.</TD></TR><TR BGCOLOR="white" CLASS="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>DefaultStyledDocument.</B><B><A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#getDefaultRootElement()">getDefaultRootElement</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the default root element.</TD></TR><TR BGCOLOR="white" CLASS="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>DefaultStyledDocument.</B><B><A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#getParagraphElement(int)">getParagraphElement</A></B>(int&nbsp;pos)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the paragraph element at the offset <code>pos</code>.</TD></TR><TR BGCOLOR="white" CLASS="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>DefaultStyledDocument.</B><B><A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#getCharacterElement(int)">getCharacterElement</A></B>(int&nbsp;pos)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a character element based on a position.</TD></TR><TR BGCOLOR="white" CLASS="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>DefaultStyledDocument.ElementBuffer.</B><B><A HREF="../../../../javax/swing/text/DefaultStyledDocument.ElementBuffer.html#getRootElement()">getRootElement</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the root element.</TD></TR><TR BGCOLOR="white" CLASS="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>DefaultStyledDocument.ElementBuffer.</B><B><A HREF="../../../../javax/swing/text/DefaultStyledDocument.ElementBuffer.html#clone(javax.swing.text.Element, javax.swing.text.Element)">clone</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;parent,      <A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;clonee)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a copy of this element, with a different  parent.</TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../javax/swing/text/package-summary.html">javax.swing.text</A> with parameters of type <A HREF="../../../../javax/swing/text/Element.html">Element</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../javax/swing/text/View.html">View</A></CODE></FONT></TD><TD><CODE><B>ViewFactory.</B><B><A HREF="../../../../javax/swing/text/ViewFactory.html#create(javax.swing.text.Element)">create</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a view from the given structural element of a document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;boolean</CODE></FONT></TD><TD><CODE><B>AbstractWriter.</B><B><A HREF="../../../../javax/swing/text/AbstractWriter.html#inRange(javax.swing.text.Element)">inRange</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;next)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method determines whether the current element is in the range specified.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B>AbstractWriter.</B><B><A HREF="../../../../javax/swing/text/AbstractWriter.html#getText(javax.swing.text.Element)">getText</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the text associated with the element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B>AbstractWriter.</B><B><A HREF="../../../../javax/swing/text/AbstractWriter.html#text(javax.swing.text.Element)">text</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Writes out text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../../javax/swing/text/Element.html">Element</A></CODE></FONT></TD><TD><CODE><B>AbstractDocument.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.html#createLeafElement(javax.swing.text.Element, javax.swing.text.AttributeSet, int, int)">createLeafElement</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A>&nbsp;parent,                  <A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a,                  int&nbsp;p0,                  int&nbsp;p1)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a document leaf element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../../../../javax/swing/text/Element.html">Element</A></CODE></FONT></TD><TD><CODE><B>AbstractDocument.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.html#createBranchElement(javax.swing.text.Element, javax.swing.text.AttributeSet)">createBranchElement</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 document branch element, that can contain other elements.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>AbstractDocument.BranchElement.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.BranchElement.html#replace(int, int, javax.swing.text.Element[])">replace</A></B>(int&nbsp;offset,        int&nbsp;length,        <A HREF="../../../../javax/swing/text/Element.html">Element</A>[]&nbsp;elems)</CODE><BR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -