qtbutton.html

来自「这个是java的quicktime for java 的详细使用文档」· HTML 代码 · 共 755 行 · 第 1/3 页

HTML
755
字号
</TABLE><A NAME="released()"><!-- --></A><H3>released</H3><PRE>public void <B>released</B>()              throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Subclass provides the implementation for this method, though the subclass should ensure that super.released() is called. This method is called when the mouse button is  released on the button, or the mouse leaves a pressed button.</DL><HR><A NAME="setReleasedImage(quicktime.app.image.ImageSpec)"><!-- --></A><H3>setReleasedImage</H3><PRE>public void <B>setReleasedImage</B>(<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;image)                      throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Sets a new image for the released state of the button.<DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the new released image</DL></DD></DL><HR><A NAME="getReleasedImage()"><!-- --></A><H3>getReleasedImage</H3><PRE>public <A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A> <B>getReleasedImage</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the current image that is being used for the released state of the button</DL></DD></DL><HR><A NAME="setRolloverImage(quicktime.app.image.ImageSpec)"><!-- --></A><H3>setRolloverImage</H3><PRE>public void <B>setRolloverImage</B>(<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;image)                      throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Sets a new image for the rollover state of the button.<DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the new rollover image</DL></DD></DL><HR><A NAME="getRolloverImage()"><!-- --></A><H3>getRolloverImage</H3><PRE>public <A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A> <B>getRolloverImage</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the current image that is being used for the rollover state of the button</DL></DD></DL><HR><A NAME="setPressedImage(quicktime.app.image.ImageSpec)"><!-- --></A><H3>setPressedImage</H3><PRE>public void <B>setPressedImage</B>(<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;image)                     throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Sets a new image for the pressed state of the button.<DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the new pressed image</DL></DD></DL><HR><A NAME="getPressedImage()"><!-- --></A><H3>getPressedImage</H3><PRE>public <A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A> <B>getPressedImage</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the current image that is being used for the pressed state of the button</DL></DD></DL><HR><A NAME="setDeactiveImage(quicktime.app.image.ImageSpec)"><!-- --></A><H3>setDeactiveImage</H3><PRE>public void <B>setDeactiveImage</B>(<A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A>&nbsp;image)                      throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Sets a new image for the deactive state of the button.<DD><DL><DT><B>Parameters:</B><DD><CODE>image</CODE> - the new deactive image</DL></DD></DL><HR><A NAME="getDeactiveImage()"><!-- --></A><H3>getDeactiveImage</H3><PRE>public <A HREF="../../../quicktime/app/image/ImageSpec.html">ImageSpec</A> <B>getDeactiveImage</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the current image that is being used for the deactive state of the button</DL></DD></DL><HR><A NAME="pressed()"><!-- --></A><H3>pressed</H3><PRE>public void <B>pressed</B>()             throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Subclass provides the implementation for this method, though the subclass should ensure that super.pressed() is called. This method is called when the mouse button is  pressed on the button and the mouse is in the buttton when pressed.</DL><HR><A NAME="isPressed()"><!-- --></A><H3>isPressed</H3><PRE>public boolean <B>isPressed</B>()</PRE><DL></DL><HR><A NAME="isMouseInButton()"><!-- --></A><H3>isMouseInButton</H3><PRE>public boolean <B>isMouseInButton</B>()</PRE><DL></DL><HR><A NAME="addActionListener(quicktime.app.event.QTActionListener)"><!-- --></A><H3>addActionListener</H3><PRE>public void <B>addActionListener</B>(<A HREF="../../../quicktime/app/event/QTActionListener.html">QTActionListener</A>&nbsp;l)</PRE><DL><DD>Add an QTActionListeners to this button.<DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - a new ActionListener</DL></DD></DL><HR><A NAME="removeActionListener(quicktime.app.event.QTActionListener)"><!-- --></A><H3>removeActionListener</H3><PRE>public void <B>removeActionListener</B>(<A HREF="../../../quicktime/app/event/QTActionListener.html">QTActionListener</A>&nbsp;l)</PRE><DL><DD>Remove an ActionListener from this button.<DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - a new QTActionListeners</DL></DD></DL><HR><A NAME="addMouseTargetListener(quicktime.app.event.MouseTargetListener)"><!-- --></A><H3>addMouseTargetListener</H3><PRE>public void <B>addMouseTargetListener</B>(<A HREF="../../../quicktime/app/event/MouseTargetListener.html">MouseTargetListener</A>&nbsp;l)</PRE><DL><DD>Add a MouseTargetListener for this QTButton. This listener will fire when the mouse enters or exits the button.<DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - a new MouseTargetListener</DL></DD></DL><HR><A NAME="removeMouseTargetListener(quicktime.app.event.MouseTargetListener)"><!-- --></A><H3>removeMouseTargetListener</H3><PRE>public void <B>removeMouseTargetListener</B>(<A HREF="../../../quicktime/app/event/MouseTargetListener.html">MouseTargetListener</A>&nbsp;l)</PRE><DL><DD>Remove a MouseTargetListener for this QTButton.<DD><DL><DT><B>Parameters:</B><DD><CODE>l</CODE> - a MouseTargetListener to remove</DL></DD></DL><HR><A NAME="entered(quicktime.app.event.QTMouseEvent)"><!-- --></A><H3>entered</H3><PRE>protected void <B>entered</B>(<A HREF="../../../quicktime/app/event/QTMouseEvent.html">QTMouseEvent</A>&nbsp;e)                throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method is called by the ButtonActivator when the mouse enters the button</DL><HR><A NAME="exited(quicktime.app.event.QTMouseEvent)"><!-- --></A><H3>exited</H3><PRE>protected void <B>exited</B>(<A HREF="../../../quicktime/app/event/QTMouseEvent.html">QTMouseEvent</A>&nbsp;e)               throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>This method is called by the ButtonActivator when the mouse exits the button</DL><HR><A NAME="fireAction()"><!-- --></A><H3>fireAction</H3><PRE>protected void <B>fireAction</B>()</PRE><DL><DD>This method is invoked by the event handling code so that any QTActionListeners actionPerformed methods are invoked.</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/QTButton.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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../quicktime/app/ui/PressReleaseButton.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../quicktime/app/ui/ReleaseButton.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="QTButton.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></BODY></HTML>

⌨️ 快捷键说明

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