📄 element.html
字号:
<CODE>abstract <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 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> <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 pos)</CODE><BR> 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> <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 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> <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 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> <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> Returns the underlying element.</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>AbstractDocument.ElementEdit.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.ElementEdit.html#getChildrenRemoved()">getChildrenRemoved</A></B>()</CODE><BR> 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> <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> 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> <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> 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> <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 pos)</CODE><BR> 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> <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 pos)</CODE><BR> 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> <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> 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> <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 pos)</CODE><BR> 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 <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> c, int offs)</CODE><BR> 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> <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> Gets the default root element.</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>DefaultStyledDocument.</B><B><A HREF="../../../../javax/swing/text/DefaultStyledDocument.html#getParagraphElement(int)">getParagraphElement</A></B>(int pos)</CODE><BR> 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> <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 pos)</CODE><BR> 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> <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> Gets the root element.</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>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> parent, <A HREF="../../../../javax/swing/text/Element.html">Element</A> clonee)</CODE><BR> Creates a copy of this element, with a different parent.</TD></TR></TABLE> <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> <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> elem)</CODE><BR> 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 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> next)</CODE><BR> 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 <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> elem)</CODE><BR> 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 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> elem)</CODE><BR> Writes out text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <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> parent, <A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a, int p0, int p1)</CODE><BR> Creates a document leaf element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <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> parent, <A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> 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> 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 offset, int length, <A HREF="../../../../javax/swing/text/Element.html">Element</A>[] elems)</CODE><BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -