📄 tooltipmanager.html
字号:
<A NAME="lightWeightPopupEnabled"><!-- --></A><H3>lightWeightPopupEnabled</H3><PRE>protected boolean <B>lightWeightPopupEnabled</B></PRE><DL></DL><HR><A NAME="heavyWeightPopupEnabled"><!-- --></A><H3>heavyWeightPopupEnabled</H3><PRE>protected boolean <B>heavyWeightPopupEnabled</B></PRE><DL></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="setEnabled(boolean)"><!-- --></A><H3>setEnabled</H3><PRE>public void <B>setEnabled</B>(boolean flag)</PRE><DL><DD>Enables or disables the tooltip.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>flag</CODE> - true to enable the tip</DL></DD></DL><HR><A NAME="isEnabled()"><!-- --></A><H3>isEnabled</H3><PRE>public boolean <B>isEnabled</B>()</PRE><DL><DD>Returns true if this object is enabled.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if this object is enabled</DL></DD></DL><HR><A NAME="setLightWeightPopupEnabled(boolean)"><!-- --></A><H3>setLightWeightPopupEnabled</H3><PRE>public void <B>setLightWeightPopupEnabled</B>(boolean aFlag)</PRE><DL><DD>When displaying the JToolTip, the ToolTipManager choose to use a light weight JPanel if it fits. This method allows you to disable this feature. You have to do disable it if your application mixes light weight and heavy weights components.<DD><DL></DL></DD></DL><HR><A NAME="isLightWeightPopupEnabled()"><!-- --></A><H3>isLightWeightPopupEnabled</H3><PRE>public boolean <B>isLightWeightPopupEnabled</B>()</PRE><DL><DD>Returns true if lightweight (all-Java) Tooltips are in use, or false if heavyweight (native peer) Tooltips are being used.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if lightweight ToolTips are in use</DL></DD></DL><HR><A NAME="setInitialDelay(int)"><!-- --></A><H3>setInitialDelay</H3><PRE>public void <B>setInitialDelay</B>(int milliseconds)</PRE><DL><DD>Specifies the initial delay value.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>milliseconds</CODE> - the number of milliseconds to delay (after the cursor has paused) before displaying the tooltip<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ToolTipManager.html#getInitialDelay()"><CODE>getInitialDelay()</CODE></A></DL></DD></DL><HR><A NAME="getInitialDelay()"><!-- --></A><H3>getInitialDelay</H3><PRE>public int <B>getInitialDelay</B>()</PRE><DL><DD>Returns the initial delay value.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an int representing the initial delay value<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ToolTipManager.html#setInitialDelay(int)"><CODE>setInitialDelay(int)</CODE></A></DL></DD></DL><HR><A NAME="setDismissDelay(int)"><!-- --></A><H3>setDismissDelay</H3><PRE>public void <B>setDismissDelay</B>(int milliseconds)</PRE><DL><DD>Specifies the dismisal delay value.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>milliseconds</CODE> - the number of milliseconds to delay (after the cursor has moved on) before taking away the tooltip<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ToolTipManager.html#getDismissDelay()"><CODE>getDismissDelay()</CODE></A></DL></DD></DL><HR><A NAME="getDismissDelay()"><!-- --></A><H3>getDismissDelay</H3><PRE>public int <B>getDismissDelay</B>()</PRE><DL><DD>Returns the dismisal delay value.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an int representing the dismisal delay value<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ToolTipManager.html#setDismissDelay(int)"><CODE>setDismissDelay(int)</CODE></A></DL></DD></DL><HR><A NAME="setReshowDelay(int)"><!-- --></A><H3>setReshowDelay</H3><PRE>public void <B>setReshowDelay</B>(int milliseconds)</PRE><DL><DD>Specifies the time to delay before reshowing the tooltip.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>milliseconds</CODE> - the time in milliseconds to delay before reshowing the tooltip if the cursor stops again<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ToolTipManager.html#getReshowDelay()"><CODE>getReshowDelay()</CODE></A></DL></DD></DL><HR><A NAME="getReshowDelay()"><!-- --></A><H3>getReshowDelay</H3><PRE>public int <B>getReshowDelay</B>()</PRE><DL><DD>Returns the reshow delay value.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an int representing the reshow delay value<DT><B>See Also: </B><DD><A HREF="../../javax/swing/ToolTipManager.html#setReshowDelay(int)"><CODE>setReshowDelay(int)</CODE></A></DL></DD></DL><HR><A NAME="sharedInstance()"><!-- --></A><H3>sharedInstance</H3><PRE>public static <A HREF="../../javax/swing/ToolTipManager.html">ToolTipManager</A> <B>sharedInstance</B>()</PRE><DL><DD>Returns a shared ToolTipManager instance.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a shared ToolTipManager object</DL></DD></DL><HR><A NAME="registerComponent(javax.swing.JComponent)"><!-- --></A><H3>registerComponent</H3><PRE>public void <B>registerComponent</B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A> component)</PRE><DL><DD>Register a component for tooltip management. <p>This will register key bindings to show and hide the tooltip text only if <code>component</code> has focus bindings. This is done so that components that are not normally focus traversable, such as JLabel, are not made focus traversable as a result of invoking this method.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>component</CODE> - a JComponent object<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JComponent.html#isFocusTraversable()"><CODE>JComponent.isFocusTraversable()</CODE></A></DL></DD></DL><HR><A NAME="unregisterComponent(javax.swing.JComponent)"><!-- --></A><H3>unregisterComponent</H3><PRE>public void <B>unregisterComponent</B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A> component)</PRE><DL><DD>Remove a component from tooltip control.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>component</CODE> - a JComponent object</DL></DD></DL><HR><A NAME="mouseEntered(java.awt.event.MouseEvent)"><!-- --></A><H3>mouseEntered</H3><PRE>public void <B>mouseEntered</B>(<A HREF="../../java/awt/event/MouseEvent.html">MouseEvent</A> event)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../java/awt/event/MouseAdapter.html">MouseAdapter</A></CODE></B></DD><DD>Invoked when the mouse enters a component.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/event/MouseAdapter.html#mouseEntered(java.awt.event.MouseEvent)">mouseEntered</A></CODE> in class <CODE><A HREF="../../java/awt/event/MouseAdapter.html">MouseAdapter</A></CODE></DL></DD></DL><HR><A NAME="mouseExited(java.awt.event.MouseEvent)"><!-- --></A><H3>mouseExited</H3><PRE>public void <B>mouseExited</B>(<A HREF="../../java/awt/event/MouseEvent.html">MouseEvent</A> event)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../java/awt/event/MouseAdapter.html">MouseAdapter</A></CODE></B></DD><DD>Invoked when the mouse exits a component.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/event/MouseAdapter.html#mouseExited(java.awt.event.MouseEvent)">mouseExited</A></CODE> in class <CODE><A HREF="../../java/awt/event/MouseAdapter.html">MouseAdapter</A></CODE></DL></DD></DL><HR><A NAME="mousePressed(java.awt.event.MouseEvent)"><!-- --></A><H3>mousePressed</H3><PRE>public void <B>mousePressed</B>(<A HREF="../../java/awt/event/MouseEvent.html">MouseEvent</A> event)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../java/awt/event/MouseAdapter.html">MouseAdapter</A></CODE></B></DD><DD>Invoked when a mouse button has been pressed on a component.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/event/MouseAdapter.html#mousePressed(java.awt.event.MouseEvent)">mousePressed</A></CODE> in class <CODE><A HREF="../../java/awt/event/MouseAdapter.html">MouseAdapter</A></CODE></DL></DD></DL><HR><A NAME="mouseDragged(java.awt.event.MouseEvent)"><!-- --></A><H3>mouseDragged</H3><PRE>public void <B>mouseDragged</B>(<A HREF="../../java/awt/event/MouseEvent.html">MouseEvent</A> event)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../java/awt/event/MouseMotionListener.html">MouseMotionListener</A></CODE></B></DD><DD>Invoked when a mouse button is pressed on a component and then dragged. Mouse drag events will continue to be delivered to the component where the first originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the component).<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../java/awt/event/MouseMotionListener.html#mouseDragged(java.awt.event.MouseEvent)">mouseDragged</A></CODE> in interface <CODE><A HREF="../../java/awt/event/MouseMotionListener.html">MouseMotionListener</A></CODE></DL></DD></DL><HR><A NAME="mouseMoved(java.awt.event.MouseEvent)"><!-- --></A><H3>mouseMoved</H3><PRE>public void <B>mouseMoved</B>(<A HREF="../../java/awt/event/MouseEvent.html">MouseEvent</A> event)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../java/awt/event/MouseMotionListener.html">MouseMotionListener</A></CODE></B></DD><DD>Invoked when the mouse button has been moved on a component (with no buttons no down).<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../java/awt/event/MouseMotionListener.html#mouseMoved(java.awt.event.MouseEvent)">mouseMoved</A></CODE> in interface <CODE><A HREF="../../java/awt/event/MouseMotionListener.html">MouseMotionListener</A></CODE></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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ToolTipManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../javax/swing/Timer.html"><B>PREV CLASS</B></A> <A HREF="../../javax/swing/ToolTipManager.insideTimerAction.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> <A HREF="ToolTipManager.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#inner_class_summary">INNER</A> | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <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 + -