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

📄 attributeset.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an enumeration over the names of the attributes in the set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/AttributeSet.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;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/AttributeSet.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;Checks whether the named attribute has a value specified in the set without resolving through another attribute set.</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/AttributeSet.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;Determines if the two attribute sets are equivalent.</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="NameAttribute"><!-- --></A><H3>NameAttribute</H3><PRE>public static final <A HREF="../../../java/lang/Object.html">Object</A> <B>NameAttribute</B></PRE><DL><DD>Attribute name used to name the collection of attributes.</DL><HR><A NAME="ResolveAttribute"><!-- --></A><H3>ResolveAttribute</H3><PRE>public static final <A HREF="../../../java/lang/Object.html">Object</A> <B>ResolveAttribute</B></PRE><DL><DD>Attribute name used to identifiy the resolving parent set of attributes, if one is defined.</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="getAttributeCount()"><!-- --></A><H3>getAttributeCount</H3><PRE>public int <B>getAttributeCount</B>()</PRE><DL><DD>Returns the number of attributes contained in this set.<DD><DL><DT><B>Returns:</B><DD>the number of attributes >= 0</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>Checks whether the named attribute has a value specified in the set without resolving through another attribute set.<DD><DL><DT><B>Parameters:</B><DD><CODE>attrName</CODE> - the attribute name<DT><B>Returns:</B><DD>true if the attribute has a value specified</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>Determines if the two attribute sets are equivalent.<DD><DL><DT><B>Parameters:</B><DD><CODE>attr</CODE> - an attribute set<DT><B>Returns:</B><DD>true if the sets are equivalent</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>Returns an attribute set that is guaranteed not to change over time.<DD><DL><DT><B>Returns:</B><DD>a copy of the attribute set</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;key)</PRE><DL><DD>Fetches the value of the given attribute. If the value is not found locally, the search is continued upward through the resolving  parent (if one exists) until the value is either found or there are no more parents.  If the value is not found, null is returned.<DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the non-null key of the attribute binding<DT><B>Returns:</B><DD>the value</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>Returns an enumeration over the names of the attributes in the set. The elements of the enumeration are all Strings.  The set does not include the resolving parent, if one is defined.<DD><DL><DT><B>Returns:</B><DD>the names</DL></DD></DL><HR><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>Returns true if this set contains this attribute with an equal value.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the non-null attribute name<DD><CODE>value</CODE> - the value<DT><B>Returns:</B><DD>true if the set contains the attribute with an equal value</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>Returns true if this set contains all the attributes with equal values.<DD><DL><DT><B>Parameters:</B><DD><CODE>attributes</CODE> - the set of attributes to check against<DT><B>Returns:</B><DD>true if this set contains all the attributes with equal values</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.<DD><DL><DT><B>Returns:</B><DD>the parent</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/AttributeSet.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/AbstractDocument.Content.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/swing/text/AttributeSet.CharacterAttribute.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="AttributeSet.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&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;CONSTR&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 + -