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

📄 simpleattributeset.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<A NAME="containsAttribute(java.lang.Object, java.lang.Object)"><!-- --></A><H3>containsAttribute</H3><PRE>public boolean <B>containsAttribute</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;name,                                 <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;value)</PRE><DL><DD>Checks whether the attribute list contains a specified attribute name/value pair.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/text/AttributeSet.html#containsAttribute(java.lang.Object, java.lang.Object)">containsAttribute</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 name<DD><CODE>value</CODE> - the value<DT><B>Returns:</B><DD>true if the name/value pair is in the list</DL></DD></DL><HR><A NAME="containsAttributes(javax.swing.text.AttributeSet)"><!-- --></A><H3>containsAttributes</H3><PRE>public boolean <B>containsAttributes</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attributes)</PRE><DL><DD>Checks whether the attribute list contains all the specified name/value pairs.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/text/AttributeSet.html#containsAttributes(javax.swing.text.AttributeSet)">containsAttributes</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>attributes</CODE> - the attribute list<DT><B>Returns:</B><DD>true if the list contains all the name/value pairs</DL></DD></DL><HR><A NAME="addAttribute(java.lang.Object, java.lang.Object)"><!-- --></A><H3>addAttribute</H3><PRE>public void <B>addAttribute</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;name,                         <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;value)</PRE><DL><DD>Adds an attribute to the list.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/text/MutableAttributeSet.html#addAttribute(java.lang.Object, java.lang.Object)">addAttribute</A></CODE> in interface <CODE><A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the attribute name<DD><CODE>value</CODE> - the attribute value</DL></DD></DL><HR><A NAME="addAttributes(javax.swing.text.AttributeSet)"><!-- --></A><H3>addAttributes</H3><PRE>public void <B>addAttributes</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attributes)</PRE><DL><DD>Adds a set of attributes to the list.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/text/MutableAttributeSet.html#addAttributes(javax.swing.text.AttributeSet)">addAttributes</A></CODE> in interface <CODE><A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attributes</CODE> - the set of attributes to add</DL></DD></DL><HR><A NAME="removeAttribute(java.lang.Object)"><!-- --></A><H3>removeAttribute</H3><PRE>public void <B>removeAttribute</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;name)</PRE><DL><DD>Removes an attribute from the list.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/text/MutableAttributeSet.html#removeAttribute(java.lang.Object)">removeAttribute</A></CODE> in interface <CODE><A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the attribute name</DL></DD></DL><HR><A NAME="removeAttributes(java.util.Enumeration)"><!-- --></A><H3>removeAttributes</H3><PRE>public void <B>removeAttributes</B>(<A HREF="../../../java/util/Enumeration.html">Enumeration</A>&nbsp;names)</PRE><DL><DD>Removes a set of attributes from the list.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/text/MutableAttributeSet.html#removeAttributes(java.util.Enumeration)">removeAttributes</A></CODE> in interface <CODE><A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>names</CODE> - the set of names to remove</DL></DD></DL><HR><A NAME="removeAttributes(javax.swing.text.AttributeSet)"><!-- --></A><H3>removeAttributes</H3><PRE>public void <B>removeAttributes</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attributes)</PRE><DL><DD>Removes a set of attributes from the list.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/text/MutableAttributeSet.html#removeAttributes(javax.swing.text.AttributeSet)">removeAttributes</A></CODE> in interface <CODE><A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attributes</CODE> - the set of attributes to remove</DL></DD></DL><HR><A NAME="getResolveParent()"><!-- --></A><H3>getResolveParent</H3><PRE>public <A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A> <B>getResolveParent</B>()</PRE><DL><DD>Gets the resolving parent.  This is the set of attributes to resolve through if an attribute isn't defined locally.  This is null if there  are no other sets of attributes to resolve  through.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/text/AttributeSet.html#getResolveParent()">getResolveParent</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 parent</DL></DD></DL><HR><A NAME="setResolveParent(javax.swing.text.AttributeSet)"><!-- --></A><H3>setResolveParent</H3><PRE>public void <B>setResolveParent</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;parent)</PRE><DL><DD>Sets the resolving parent.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/text/MutableAttributeSet.html#setResolveParent(javax.swing.text.AttributeSet)">setResolveParent</A></CODE> in interface <CODE><A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>parent</CODE> - the parent</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public <A HREF="../../../java/lang/Object.html">Object</A> <B>clone</B>()</PRE><DL><DD>Clones a set of attributes.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the new set of attributes</DL></DD></DL><HR><A NAME="hashCode()"><!-- --></A><H3>hashCode</H3><PRE>public int <B>hashCode</B>()</PRE><DL><DD>Returns a hashcode for this set of attributes.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a hashcode value for this set of attributes.</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;obj)</PRE><DL><DD>Compares this object to the specifed object. The result is <code>true</code> if the object is an equivalent set of attributes.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>obj</CODE> - the object to compare this font with.<DT><B>Returns:</B><DD><code>true</code> if the objects are equal;             <code>false</code> otherwise.</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 attribute set 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/SimpleAttributeSet.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/Segment.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/swing/text/StringContent.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="SimpleAttributeSet.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 + -