📄 element.html
字号:
boolean wordWrap)</CODE><BR> Creates a new WrappedPlainView.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../javax/swing/text/ZoneView.html#ZoneView(javax.swing.text.Element, int)">ZoneView</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem, int axis)</CODE><BR> Constructs a ZoneView.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../javax/swing/text/DefaultStyledDocument.ElementBuffer.html#DefaultStyledDocument.ElementBuffer(javax.swing.text.DefaultStyledDocument, javax.swing.text.Element)">DefaultStyledDocument.ElementBuffer</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> root)</CODE><BR> Creates a new ElementBuffer.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../javax/swing/text/DefaultStyledDocument.AttributeUndoableEdit.html#DefaultStyledDocument.AttributeUndoableEdit(javax.swing.text.Element, javax.swing.text.AttributeSet, boolean)">DefaultStyledDocument.AttributeUndoableEdit</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> element, <A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> newAttributes, boolean isReplacing)</CODE><BR> </TD></TR></TABLE> <P><A NAME="javax.swing.text.html"><!-- --></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/html/package-summary.html">javax.swing.text.html</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/html/package-summary.html">javax.swing.text.html</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/html/HTMLDocument.BlockElement.html">HTMLDocument.BlockElement</A></B></CODE><BR> An element that represents a structural <em>block</em> of HTML.</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/html/HTMLDocument.RunElement.html">HTMLDocument.RunElement</A></B></CODE><BR> An element that represents a chunk of text that has a set of HTML character level attributes assigned to it.</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/html/package-summary.html">javax.swing.text.html</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>HTMLFrameHyperlinkEvent.</B><B><A HREF="../../../../javax/swing/text/html/HTMLFrameHyperlinkEvent.html#getSourceElement()">getSourceElement</A></B>()</CODE><BR> returns the element that corresponds to the source of the event.</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>HTMLDocument.</B><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.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 that directly represents text (doesn't have any children).</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>HTMLDocument.</B><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.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>HTMLDocument.</B><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getElement(java.lang.String)">getElement</A></B>(<A HREF="../../../../java/lang/String.html">String</A> id)</CODE><BR> Fetches the element that has the given id attribute.</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>HTMLDocument.</B><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#getElement(javax.swing.text.Element, java.lang.Object, java.lang.Object)">getElement</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> e, <A HREF="../../../../java/lang/Object.html">Object</A> attribute, <A HREF="../../../../java/lang/Object.html">Object</A> value)</CODE><BR> Returns the child element of <code>e</code> that contains the attribute, <code>attribute</code> with value <code>value</code>, or null if one isn't found.</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>HTMLEditorKit.HTMLTextAction.</B><B><A HREF="../../../../javax/swing/text/html/HTMLEditorKit.HTMLTextAction.html#getElementsAt(javax.swing.text.html.HTMLDocument, int)">getElementsAt</A></B>(<A HREF="../../../../javax/swing/text/html/HTMLDocument.html">HTMLDocument</A> doc, int offset)</CODE><BR> Returns an array of the Elements that contain <code>offset</code>.</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>HTMLEditorKit.HTMLTextAction.</B><B><A HREF="../../../../javax/swing/text/html/HTMLEditorKit.HTMLTextAction.html#findElementMatchingTag(javax.swing.text.html.HTMLDocument, int, javax.swing.text.html.HTML.Tag)">findElementMatchingTag</A></B>(<A HREF="../../../../javax/swing/text/html/HTMLDocument.html">HTMLDocument</A> doc, int offset, <A HREF="../../../../javax/swing/text/html/HTML.Tag.html">HTML.Tag</A> tag)</CODE><BR> Returns the deepest element at <code>offset</code> matching <code>tag</code>.</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/html/package-summary.html">javax.swing.text.html</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/Style.html">Style</A></CODE></FONT></TD><TD><CODE><B>StyleSheet.</B><B><A HREF="../../../../javax/swing/text/html/StyleSheet.html#getRule(javax.swing.text.html.HTML.Tag, javax.swing.text.Element)">getRule</A></B>(<A HREF="../../../../javax/swing/text/html/HTML.Tag.html">HTML.Tag</A> t, <A HREF="../../../../javax/swing/text/Element.html">Element</A> e)</CODE><BR> Fetches the style to use to render the given type of HTML tag.</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>HTMLDocument.</B><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.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 that directly represents text (doesn't have any children).</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>HTMLDocument.</B><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.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>HTMLDocument.</B><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#setInnerHTML(javax.swing.text.Element, java.lang.String)">setInnerHTML</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem, <A HREF="../../../../java/lang/String.html">String</A> htmlText)</CODE><BR> Replaces the children of the given element with the contents specified as an HTML string.</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>HTMLDocument.</B><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#setOuterHTML(javax.swing.text.Element, java.lang.String)">setOuterHTML</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem, <A HREF="../../../../java/lang/String.html">String</A> htmlText)</CODE><BR> Replaces the given element in the parent with the contents specified as an HTML string.</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>HTMLDocument.</B><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#insertAfterStart(javax.swing.text.Element, java.lang.String)">insertAfterStart</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem, <A HREF="../../../../java/lang/String.html">String</A> htmlText)</CODE><BR> Inserts the HTML specified as a string at the start of 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>HTMLDocument.</B><B><A HREF="../../../../javax/swing/text/html/HTMLDocument.html#insertBeforeEnd(javax.swing.text.Element, java.lang.String)">insertBeforeEnd</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem, <A HREF="../../../../java/lang/String.html">String</A> htmlText)</CODE><
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -