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

📄 defaultstyleddocument.elementspec.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</TR></TABLE><A NAME="StartTagType"><!-- --></A><H3>StartTagType</H3><PRE>public static final short <B>StartTagType</B></PRE><DL><DD>A possible value for getType.  This specifies that this record type is a start tag and represents markup that specifies the start of an element.</DL><HR><A NAME="EndTagType"><!-- --></A><H3>EndTagType</H3><PRE>public static final short <B>EndTagType</B></PRE><DL><DD>A possible value for getType.  This specifies that this record type is a end tag and represents markup that specifies the end of an element.</DL><HR><A NAME="ContentType"><!-- --></A><H3>ContentType</H3><PRE>public static final short <B>ContentType</B></PRE><DL><DD>A possible value for getType.  This specifies that this record type represents content.</DL><HR><A NAME="JoinPreviousDirection"><!-- --></A><H3>JoinPreviousDirection</H3><PRE>public static final short <B>JoinPreviousDirection</B></PRE><DL><DD>A possible value for getDirection.  This specifies that the data associated with this record should be joined to what precedes it.</DL><HR><A NAME="JoinNextDirection"><!-- --></A><H3>JoinNextDirection</H3><PRE>public static final short <B>JoinNextDirection</B></PRE><DL><DD>A possible value for getDirection.  This specifies that the data associated with this record should be joined to what follows it.</DL><HR><A NAME="OriginateDirection"><!-- --></A><H3>OriginateDirection</H3><PRE>public static final short <B>OriginateDirection</B></PRE><DL><DD>A possible value for getDirection.  This specifies that the data associated with this record should be used to originate a new element.  This would be the normal value.</DL><HR><A NAME="JoinFractureDirection"><!-- --></A><H3>JoinFractureDirection</H3><PRE>public static final short <B>JoinFractureDirection</B></PRE><DL><DD>A possible value for getDirection.  This specifies that the data associated with this record should be joined to the fractured element.</DL><!-- ========= 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="DefaultStyledDocument.ElementSpec(javax.swing.text.AttributeSet, short)"><!-- --></A><H3>DefaultStyledDocument.ElementSpec</H3><PRE>public <B>DefaultStyledDocument.ElementSpec</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a,                                         short&nbsp;type)</PRE><DL><DD>Constructor useful for markup when the markup will not be stored in the document.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attributes for the element<DD><CODE>type</CODE> - the type of the element (StartTagType, EndTagType,  ContentType)</DL></DD></DL><HR><A NAME="DefaultStyledDocument.ElementSpec(javax.swing.text.AttributeSet, short, int)"><!-- --></A><H3>DefaultStyledDocument.ElementSpec</H3><PRE>public <B>DefaultStyledDocument.ElementSpec</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a,                                         short&nbsp;type,                                         int&nbsp;len)</PRE><DL><DD>Constructor for parsing inside the document when the data has already been added, but len information is needed.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attributes for the element<DD><CODE>type</CODE> - the type of the element (StartTagType, EndTagType,  ContentType)<DD><CODE>len</CODE> - the length >= 0</DL></DD></DL><HR><A NAME="DefaultStyledDocument.ElementSpec(javax.swing.text.AttributeSet, short, char[], int, int)"><!-- --></A><H3>DefaultStyledDocument.ElementSpec</H3><PRE>public <B>DefaultStyledDocument.ElementSpec</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a,                                         short&nbsp;type,                                         char[]&nbsp;txt,                                         int&nbsp;offs,                                         int&nbsp;len)</PRE><DL><DD>Constructor for creating a spec externally for batch input of content and markup into the document.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attributes for the element<DD><CODE>type</CODE> - the type of the element (StartTagType, EndTagType,  ContentType)<DD><CODE>txt</CODE> - the text for the element<DD><CODE>offs</CODE> - the offset into the text >= 0<DD><CODE>len</CODE> - the length of the text >= 0</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="setType(short)"><!-- --></A><H3>setType</H3><PRE>public void <B>setType</B>(short&nbsp;type)</PRE><DL><DD>Sets the element type.<DD><DL><DT><B>Parameters:</B><DD><CODE>type</CODE> - the type of the element (StartTagType, EndTagType,  ContentType)</DL></DD></DL><HR><A NAME="getType()"><!-- --></A><H3>getType</H3><PRE>public short <B>getType</B>()</PRE><DL><DD>Gets the element type.<DD><DL><DT><B>Returns:</B><DD>the type of the element (StartTagType, EndTagType,  ContentType)</DL></DD></DL><HR><A NAME="setDirection(short)"><!-- --></A><H3>setDirection</H3><PRE>public void <B>setDirection</B>(short&nbsp;direction)</PRE><DL><DD>Sets the direction.<DD><DL><DT><B>Parameters:</B><DD><CODE>direction</CODE> - the direction (JoinPreviousDirection,   JoinNextDirection)</DL></DD></DL><HR><A NAME="getDirection()"><!-- --></A><H3>getDirection</H3><PRE>public short <B>getDirection</B>()</PRE><DL><DD>Gets the direction.<DD><DL><DT><B>Returns:</B><DD>the direction (JoinPreviousDirection, JoinNextDirection)</DL></DD></DL><HR><A NAME="getAttributes()"><!-- --></A><H3>getAttributes</H3><PRE>public <A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A> <B>getAttributes</B>()</PRE><DL><DD>Gets the element attributes.<DD><DL><DT><B>Returns:</B><DD>the attribute set</DL></DD></DL><HR><A NAME="getArray()"><!-- --></A><H3>getArray</H3><PRE>public char[] <B>getArray</B>()</PRE><DL><DD>Gets the array of characters.<DD><DL><DT><B>Returns:</B><DD>the array</DL></DD></DL><HR><A NAME="getOffset()"><!-- --></A><H3>getOffset</H3><PRE>public int <B>getOffset</B>()</PRE><DL><DD>Gets the starting offset.<DD><DL><DT><B>Returns:</B><DD>the offset >= 0</DL></DD></DL><HR><A NAME="getLength()"><!-- --></A><H3>getLength</H3><PRE>public int <B>getLength</B>()</PRE><DL><DD>Gets the length.<DD><DL><DT><B>Returns:</B><DD>the length >= 0</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>Converts the element to a string.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the string</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DefaultStyledDocument.ElementSpec.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../javax/swing/text/DefaultStyledDocument.ElementBuffer.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/swing/text/DefaultStyledDocument.SectionElement.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="DefaultStyledDocument.ElementSpec.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

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