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

📄 systraymenuicon.html

📁 system tray透過JNI將Java程式縮小進系統列,說明完整,,Java,Windows Develop
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="SysTrayMenuIcon(java.lang.String)"><!-- --></A><H3>
SysTrayMenuIcon</H3>
<PRE>
public <B>SysTrayMenuIcon</B>(java.lang.String&nbsp;iconFileName)</PRE>
<DL>
<DD><p>Creates a new <code>SysTrayMenuIcon</code> object.</p> <p>Since the file extension (ico/xpm) depends on the actual platform, it is allowed, but not necessary to specify it.</p> <p>Example:<br>&nbsp&nbsprealFileName: duke.ico<br> &nbsp&nbsppassedFileName: duke or duke.ico</p>
<P>
<DT><B>Parameters:</B><DD><CODE>iconFileName</CODE> - The associated file name.</DL>
<HR>

<A NAME="SysTrayMenuIcon(java.lang.String, java.lang.String)"><!-- --></A><H3>
SysTrayMenuIcon</H3>
<PRE>
public <B>SysTrayMenuIcon</B>(java.lang.String&nbsp;iconFileName,                       java.lang.String&nbsp;actionCommand)</PRE>
<DL>
<DD>Creates a new <code>SysTrayMenuIcon</code> object. <p>Since the file extension (ico/xpm) depends on the actual platform, it is allowed, but not necessary to specify it.</p> <p>Example:<br>&nbsp&nbsprealFileName: duke.ico<br> &nbsp&nbsppassedFileName: duke or duke.ico</p>
<P>
<DT><B>Parameters:</B><DD><CODE>iconFileName</CODE> - The associated file name.<DD><CODE>actionCommand</CODE> - The action command passed to the listeners.</DL>
<HR>

<A NAME="SysTrayMenuIcon(java.net.URL)"><!-- --></A><H3>
SysTrayMenuIcon</H3>
<PRE>
public <B>SysTrayMenuIcon</B>(java.net.URL&nbsp;icon)</PRE>
<DL>
<DD><p>Creates a new <code>SysTrayMenuIcon</code> object from the file pointed to by the URL.</p> <p>This constructor makes it possible to store the icon files together with the application classes in a JAR file.</p> <p>One possibility to get the URL of an icon is through the getResource() method:<br><br><ul style="list-style-type:none"> <li><code>getClass().getResource( "duke" + SysTrayMenuIcon.getExtension() ) </code></li></ul><br>provided that the icon is in the same path where the class is stored.</p>
<P>
<DT><B>Parameters:</B><DD><CODE>icon</CODE> - The URL of the icon.</DL>
<HR>

<A NAME="SysTrayMenuIcon(java.net.URL, java.lang.String)"><!-- --></A><H3>
SysTrayMenuIcon</H3>
<PRE>
public <B>SysTrayMenuIcon</B>(java.net.URL&nbsp;icon,                       java.lang.String&nbsp;actionCommand)</PRE>
<DL>
<DD><p>Creates a new <code>SysTrayMenuIcon</code> object from the file pointed to by the URL.</p> <p>This constructor makes it possible to store the icon files together with the application classes in a JAR file.</p> <p>One possibility to get the URL of an icon is through the getResource() method:<br><br><ul style="list-style-type:none"> <li><code>getClass().getResource( "duke" + SysTrayMenuIcon.getExtension() ) </code></li></ul><br>provided that the icon is in the same path where the class is stored.</p>
<P>
<DT><B>Parameters:</B><DD><CODE>icon</CODE> - The URL of the icon.<DD><CODE>actionCommand</CODE> - The action command passed to the listeners.</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="addSysTrayMenuListener(snoozesoft.systray4j.SysTrayMenuListener)"><!-- --></A><H3>
addSysTrayMenuListener</H3>
<PRE>
public void <B>addSysTrayMenuListener</B>(<A HREF="../../snoozesoft/systray4j/SysTrayMenuListener.html" title="interface in snoozesoft.systray4j">SysTrayMenuListener</A>&nbsp;listener)</PRE>
<DL>
<DD>Adds the specified listener to receive events from this icon.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - The systray menu listener.</DL>
</DD>
</DL>
<HR>

<A NAME="getActionCommand()"><!-- --></A><H3>
getActionCommand</H3>
<PRE>
public java.lang.String <B>getActionCommand</B>()</PRE>
<DL>
<DD>Getter for the action command.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The action command passed to the listeners.</DL>
</DD>
</DL>
<HR>

<A NAME="getExtension()"><!-- --></A><H3>
getExtension</H3>
<PRE>
public static java.lang.String <B>getExtension</B>()</PRE>
<DL>
<DD>This method returns the correct icon file extension for the actual platform.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>".ico" ro ".xpm" depending on the platform.</DL>
</DD>
</DL>
<HR>

<A NAME="getName()"><!-- --></A><H3>
getName</H3>
<PRE>
public java.lang.String <B>getName</B>()</PRE>
<DL>
<DD>Getter for the file name associated with this object.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The associated file name.</DL>
</DD>
</DL>
<HR>

<A NAME="removeSysTrayMenuListener(snoozesoft.systray4j.SysTrayMenuListener)"><!-- --></A><H3>
removeSysTrayMenuListener</H3>
<PRE>
public void <B>removeSysTrayMenuListener</B>(<A HREF="../../snoozesoft/systray4j/SysTrayMenuListener.html" title="interface in snoozesoft.systray4j">SysTrayMenuListener</A>&nbsp;listener)</PRE>
<DL>
<DD>Removes the specified listener so that it no longer receives events from this menu item.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - The systray menu listener.</DL>
</DD>
</DL>
<HR>

<A NAME="setActionCommand(java.lang.String)"><!-- --></A><H3>
setActionCommand</H3>
<PRE>
public void <B>setActionCommand</B>(java.lang.String&nbsp;actionCommand)</PRE>
<DL>
<DD>Setter for the action command.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>actionCommand</CODE> - The action command passed to the listeners.</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="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="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</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>SysTray for Java<br>v2.4.1&nbsp&nbsp</b></EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../snoozesoft/systray4j/SysTrayMenuEvent.html" title="class in snoozesoft.systray4j"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../snoozesoft/systray4j/SysTrayMenuItem.html" title="class in snoozesoft.systray4j"><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="SysTrayMenuIcon.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>

</BODY>
</HTML>

⌨️ 快捷键说明

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