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

📄 association.html

📁 java GUI编程
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</DD>
</DL>
<HR>

<A NAME="setName(java.lang.String)"><!-- --></A><H3>
setName</H3>
<PRE>
public void <B>setName</B>(java.lang.String&nbsp;name)</PRE>
<DL>
<DD>Returns the name of the MIME files the association is stored in for Gnome/Unix platforms.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - a given name value.</DL>
</DD>
</DL>
<HR>

<A NAME="getDescription()"><!-- --></A><H3>
getDescription</H3>
<PRE>
public java.lang.String <B>getDescription</B>()</PRE>
<DL>
<DD>Returns the description string of this <code>Association</code>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the description of this association.</DL>
</DD>
</DL>
<HR>

<A NAME="setDescription(java.lang.String)"><!-- --></A><H3>
setDescription</H3>
<PRE>
public void <B>setDescription</B>(java.lang.String&nbsp;description)</PRE>
<DL>
<DD>Sets the description string of this <code>Association</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>description</CODE> - a given description value.</DL>
</DD>
</DL>
<HR>

<A NAME="getMimeType()"><!-- --></A><H3>
getMimeType</H3>
<PRE>
public java.lang.String <B>getMimeType</B>()</PRE>
<DL>
<DD>Returns the MIME type of this <code>Association</code>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the MIME type.</DL>
</DD>
</DL>
<HR>

<A NAME="setMimeType(java.lang.String)"><!-- --></A><H3>
setMimeType</H3>
<PRE>
public void <B>setMimeType</B>(java.lang.String&nbsp;mimeType)</PRE>
<DL>
<DD>Sets the MIME type of this <code>Association</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>mimeType</CODE> - a given MIME type.</DL>
</DD>
</DL>
<HR>

<A NAME="addFileExtension(java.lang.String)"><!-- --></A><H3>
addFileExtension</H3>
<PRE>
public boolean <B>addFileExtension</B>(java.lang.String&nbsp;fileExt)</PRE>
<DL>
<DD>Adds one file extension to the file extension list of this <code>Association</code>.  If the given file extension already exists in the file extension list, no changes are made to the file extension list. <P> The specified file extension could have a leading '.' character or not. <P> For Microsoft Windows platforms, only the first file extension is used during  registeration.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fileExt</CODE> - a given file extension.<DT><B>Returns:</B><DD><code>true</code> if the given file extension is added successfully          to the file extension list; <code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="removeFileExtension(java.lang.String)"><!-- --></A><H3>
removeFileExtension</H3>
<PRE>
public boolean <B>removeFileExtension</B>(java.lang.String&nbsp;fileExt)</PRE>
<DL>
<DD>Removes the given file extension from the file extension list of this  <code>Association</code>. If the file extension is not contained in the file  extension list, no changes are made to the file extension list. <P> The specified file extension may have a leading '.' character or not.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fileExt</CODE> - a given file extension.<DT><B>Returns:</B><DD><code>true</code> if the given file extension is removed successfully          from the file extension list; <code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="getFileExtList()"><!-- --></A><H3>
getFileExtList</H3>
<PRE>
public java.util.List <B>getFileExtList</B>()</PRE>
<DL>
<DD>Returns the file extension list of this <code>Association</code>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the file extension list of the association.</DL>
</DD>
</DL>
<HR>

<A NAME="getIconFileName()"><!-- --></A><H3>
getIconFileName</H3>
<PRE>
public java.lang.String <B>getIconFileName</B>()</PRE>
<DL>
<DD>Returns the icon file name representing this <code>Association</code>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the icon file name for this association.</DL>
</DD>
</DL>
<HR>

<A NAME="setIconFileName(java.lang.String)"><!-- --></A><H3>
setIconFileName</H3>
<PRE>
public void <B>setIconFileName</B>(java.lang.String&nbsp;fileName)</PRE>
<DL>
<DD>Sets the icon file name representing this <code>Association</code>. <P> For Microsoft Windows platforms, the given icon file will be registered only if the given file extension list is not empty.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fileName</CODE> - a given icon file name.</DL>
</DD>
</DL>
<HR>

<A NAME="addAction(org.jdesktop.jdic.filetypes.Action)"><!-- --></A><H3>
addAction</H3>
<PRE>
public boolean <B>addAction</B>(<A HREF="../../../../org/jdesktop/jdic/filetypes/Action.html" title="class in org.jdesktop.jdic.filetypes">Action</A>&nbsp;action)</PRE>
<DL>
<DD>Adds a given action to the action list of this <code>Association</code>.  If the given action already exists in the action list, no changes are  made to the action list. <P> A valid action should not have null verb or command field. <P> For Microsoft Windows platforms, an association with non-empty action list  would be valid for registration when the file extension list is not empty.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>action</CODE> - a given action.<DT><B>Returns:</B><DD><code>true</code> if the given action is added successfully          to the action list; <code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="removeAction(org.jdesktop.jdic.filetypes.Action)"><!-- --></A><H3>
removeAction</H3>
<PRE>
public boolean <B>removeAction</B>(<A HREF="../../../../org/jdesktop/jdic/filetypes/Action.html" title="class in org.jdesktop.jdic.filetypes">Action</A>&nbsp;action)</PRE>
<DL>
<DD>Removes a given action from the action list of this <code>Association</code>.  If the action is not contained in the action list, no changes are made to  the action list. <P> A valid action should not have null verb or command field.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>action</CODE> - a given action.<DT><B>Returns:</B><DD><code>true</code> if the given action is removed successfully          from the action list; <code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="getActionList()"><!-- --></A><H3>
getActionList</H3>
<PRE>
public java.util.List <B>getActionList</B>()</PRE>
<DL>
<DD>Returns the action list of this <code>Association</code>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the action list of the association.</DL>
</DD>
</DL>
<HR>

<A NAME="getActionByVerb(java.lang.String)"><!-- --></A><H3>
getActionByVerb</H3>
<PRE>
public <A HREF="../../../../org/jdesktop/jdic/filetypes/Action.html" title="class in org.jdesktop.jdic.filetypes">Action</A> <B>getActionByVerb</B>(java.lang.String&nbsp;verb)</PRE>
<DL>
<DD>Returns the action, whose verb field is the same with the specified verb.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>verb</CODE> - the specified verb.<DT><B>Returns:</B><DD>the action with the specified verb; <code>null</code> if no         approprate action is found.</DL>
</DD>
</DL>
<HR>

<A NAME="equals(java.lang.Object)"><!-- --></A><H3>
equals</H3>
<PRE>
public boolean <B>equals</B>(java.lang.Object&nbsp;other)</PRE>
<DL>
<DD>Overrides the same method of <code>java.lang.Object</code>. <p> Determines whether or not two associations are equal. Two instances  of <code>Association</code> are equal if the values of all the fields  are the same.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>other</CODE> - an object to be compared with this <code>Association</code>.<DT><B>Returns:</B><DD><code>true</code> if the object to be compared is an instance of          <code>Association</code> and has the same values;          <code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="hashCode()"><!-- --></A><H3>
hashCode</H3>
<PRE>
public int <B>hashCode</B>()</PRE>
<DL>
<DD>Overrides the same method of <code>java.lang.Object</code>. <p> Returns the hashcode for this <code>Association</code>.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>a hash code for this <code>Association<code>.</DL>
</DD>
</DL>
<HR>

<A NAME="toString()"><!-- --></A><H3>
toString</H3>
<PRE>
public java.lang.String <B>toString</B>()</PRE>
<DL>
<DD>Overrides the same method of <code>java.lang.Object</code>. <p> Returns a <code>String</code> that represents the value of this  <code>Association</code>.  <PRE> The output of this object as a string would be like:     MIME File Name:       Description:       MIME Type:       Icon File:       File Extension:       Action List:           Description:             Verb:          Command:  </PRE>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>a string representation of this <code>Association</code>.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <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/Association.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-all.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>
JDIC API V2006 Release 0308</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/jdesktop/jdic/filetypes/Action.html" title="class in org.jdesktop.jdic.filetypes"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/jdesktop/jdic/filetypes/AssociationService.html" title="class in org.jdesktop.jdic.filetypes"><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="Association.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&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;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>
<font size=-1>For more information and documentation on JDIC,                see <a href=https://jdic.dev.java.net>JDIC website</a>. <p>That documentation                contains more detailed, developer-targeted descriptions, with conceptual                overviews, working code examples, license terms and bug report information.               <p>Copyright (c) 2004 Sun Microsystems, Inc. All rights reserved. Use is                subject to <a href=               https://jdic.dev.java.net/source/browse/jdic/src/COPYING>license terms</a>.                </font>
</BODY>
</HTML>

⌨️ 快捷键说明

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