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

📄 simpleattributeset.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<CODE>&nbsp;<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/SimpleAttributeSet.html#getResolveParent()">getResolveParent</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the resolving parent.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/SimpleAttributeSet.html#hashCode()">hashCode</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a hashcode for this set of attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/SimpleAttributeSet.html#isDefined(java.lang.Object)">isDefined</A></B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;attrName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tells whether a given attribute is defined.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/SimpleAttributeSet.html#isEmpty()">isEmpty</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks whether the set of attributes is empty.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/SimpleAttributeSet.html#isEqual(javax.swing.text.AttributeSet)">isEqual</A></B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compares two attribute sets.</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><A HREF="../../../javax/swing/text/SimpleAttributeSet.html#removeAttribute(java.lang.Object)">removeAttribute</A></B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes an attribute from the list.</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><A HREF="../../../javax/swing/text/SimpleAttributeSet.html#removeAttributes(javax.swing.text.AttributeSet)">removeAttributes</A></B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attributes)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a set of attributes from the list.</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><A HREF="../../../javax/swing/text/SimpleAttributeSet.html#removeAttributes(java.util.Enumeration)">removeAttributes</A></B>(<A HREF="../../../java/util/Enumeration.html">Enumeration</A>&nbsp;names)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes a set of attributes from the list.</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><A HREF="../../../javax/swing/text/SimpleAttributeSet.html#setResolveParent(javax.swing.text.AttributeSet)">setResolveParent</A></B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;parent)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the resolving parent.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/SimpleAttributeSet.html#toString()">toString</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the attribute set to a String.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="EMPTY"><!-- --></A><H3>EMPTY</H3><PRE>public static final <A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A> <B>EMPTY</B></PRE><DL><DD>An empty attribute set.</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="SimpleAttributeSet()"><!-- --></A><H3>SimpleAttributeSet</H3><PRE>public <B>SimpleAttributeSet</B>()</PRE><DL><DD>Creates a new attribute set.</DL><HR><A NAME="SimpleAttributeSet(javax.swing.text.AttributeSet)"><!-- --></A><H3>SimpleAttributeSet</H3><PRE>public <B>SimpleAttributeSet</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;source)</PRE><DL><DD>Creates a new attribute set based on a supplied set of attributes.<DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - the set of attributes</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="isEmpty()"><!-- --></A><H3>isEmpty</H3><PRE>public boolean <B>isEmpty</B>()</PRE><DL><DD>Checks whether the set of attributes is empty.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the set is empty else false</DL></DD></DL><HR><A NAME="getAttributeCount()"><!-- --></A><H3>getAttributeCount</H3><PRE>public int <B>getAttributeCount</B>()</PRE><DL><DD>Gets a count of the number of attributes.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/text/AttributeSet.html#getAttributeCount()">getAttributeCount</A></CODE> in interface <CODE><A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the count</DL></DD></DL><HR><A NAME="isDefined(java.lang.Object)"><!-- --></A><H3>isDefined</H3><PRE>public boolean <B>isDefined</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;attrName)</PRE><DL><DD>Tells whether a given attribute is defined.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/text/AttributeSet.html#isDefined(java.lang.Object)">isDefined</A></CODE> in interface <CODE><A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attrName</CODE> - the attribute name<DT><B>Returns:</B><DD>true if the attribute is defined</DL></DD></DL><HR><A NAME="isEqual(javax.swing.text.AttributeSet)"><!-- --></A><H3>isEqual</H3><PRE>public boolean <B>isEqual</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr)</PRE><DL><DD>Compares two attribute sets.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/text/AttributeSet.html#isEqual(javax.swing.text.AttributeSet)">isEqual</A></CODE> in interface <CODE><A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attr</CODE> - the second attribute set<DT><B>Returns:</B><DD>true if equathe listl</DL></DD></DL><HR><A NAME="copyAttributes()"><!-- --></A><H3>copyAttributes</H3><PRE>public <A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A> <B>copyAttributes</B>()</PRE><DL><DD>Makes a copy of the attributes.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/text/AttributeSet.html#copyAttributes()">copyAttributes</A></CODE> in interface <CODE><A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the copy</DL></DD></DL><HR><A NAME="getAttributeNames()"><!-- --></A><H3>getAttributeNames</H3><PRE>public <A HREF="../../../java/util/Enumeration.html">Enumeration</A> <B>getAttributeNames</B>()</PRE><DL><DD>Gets the names of the attributes in the set.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/text/AttributeSet.html#getAttributeNames()">getAttributeNames</A></CODE> in interface <CODE><A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the names as an Enumeration</DL></DD></DL><HR><A NAME="getAttribute(java.lang.Object)"><!-- --></A><H3>getAttribute</H3><PRE>public <A HREF="../../../java/lang/Object.html">Object</A> <B>getAttribute</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;name)</PRE><DL><DD>Gets the value of an attribute.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/text/AttributeSet.html#getAttribute(java.lang.Object)">getAttribute</A></CODE> in interface <CODE><A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the attribute name<DT><B>Returns:</B><DD>the value</DL></DD></DL><HR>

⌨️ 快捷键说明

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