📄 element.html
字号:
<TD><CODE><B>BasicTextAreaUI.</B><B><A HREF="../../../../javax/swing/plaf/basic/BasicTextAreaUI.html#create(javax.swing.text.Element)">create</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem)</CODE><BR> Creates the view for an element.</TD></TR></TABLE> <P><A NAME="javax.swing.text"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../../javax/swing/text/Element.html">Element</A> in <A HREF="../../../../javax/swing/text/package-summary.html">javax.swing.text</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Classes in <A HREF="../../../../javax/swing/text/package-summary.html">javax.swing.text</A> that implement <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> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/AbstractDocument.AbstractElement.html">AbstractDocument.AbstractElement</A></B></CODE><BR> Implements the abstract part of an element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/AbstractDocument.BranchElement.html">AbstractDocument.BranchElement</A></B></CODE><BR> Implements a composite element that contains other elements.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/AbstractDocument.LeafElement.html">AbstractDocument.LeafElement</A></B></CODE><BR> Implements an element that directly represents content of some kind.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/text/DefaultStyledDocument.SectionElement.html">DefaultStyledDocument.SectionElement</A></B></CODE><BR> Default root element for a document...</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Fields in <A HREF="../../../../javax/swing/text/package-summary.html">javax.swing.text</A> declared as <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>protected <A HREF="../../../../javax/swing/text/Element.html">Element</A></CODE></FONT></TD><TD><CODE><B>DefaultStyledDocument.AttributeUndoableEdit.</B><B><A HREF="../../../../javax/swing/text/DefaultStyledDocument.AttributeUndoableEdit.html#element">element</A></B></CODE><BR> </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> that return <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/Element.html">Element</A></CODE></FONT></TD><TD><CODE><B>ElementIterator.</B><B><A HREF="../../../../javax/swing/text/ElementIterator.html#first()">first</A></B>()</CODE><BR> Fetches the first 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>ElementIterator.</B><B><A HREF="../../../../javax/swing/text/ElementIterator.html#current()">current</A></B>()</CODE><BR> Fetches the current 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>ElementIterator.</B><B><A HREF="../../../../javax/swing/text/ElementIterator.html#next()">next</A></B>()</CODE><BR> Fetches the next 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>ElementIterator.</B><B><A HREF="../../../../javax/swing/text/ElementIterator.html#previous()">previous</A></B>()</CODE><BR> Fetches the previous 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>View.</B><B><A HREF="../../../../javax/swing/text/View.html#getElement()">getElement</A></B>()</CODE><BR> Fetches the structural portion of the subject that this view is mapped to.</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>Element.</B><B><A HREF="../../../../javax/swing/text/Element.html#getParentElement()">getParentElement</A></B>()</CODE><BR> Fetches the parent 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>Element.</B><B><A HREF="../../../../javax/swing/text/Element.html#getElement(int)">getElement</A></B>(int index)</CODE><BR> Fetches the child element at the given index.</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>Document.</B><B><A HREF="../../../../javax/swing/text/Document.html#getRootElements()">getRootElements</A></B>()</CODE><BR> Returns all of the root elements that are defined.</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>Document.</B><B><A HREF="../../../../javax/swing/text/Document.html#getDefaultRootElement()">getDefaultRootElement</A></B>()</CODE><BR> Returns the root element that views should be based upon, unless some other mechanism for assigning views to element structures is provided.</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.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.html#getRootElements()">getRootElements</A></B>()</CODE><BR> Gets all root elements defined.</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>AbstractDocument.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.html#getDefaultRootElement()">getDefaultRootElement</A></B>()</CODE><BR> Returns the root element that views should be based upon unless some other mechanism for assigning views to element structures is provided.</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.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.html#getBidiRootElement()">getBidiRootElement</A></B>()</CODE><BR> Returns the root element of the bidirectional structure for this document.</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>AbstractDocument.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.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>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> <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#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">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -