📄 basicmenuitemui.html
字号:
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="BasicMenuItemUI()"><!-- --></A><H3>BasicMenuItemUI</H3><PRE>public <B>BasicMenuItemUI</B>()</PRE><DL></DL><!-- ============ 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="createUI(javax.swing.JComponent)"><!-- --></A><H3>createUI</H3><PRE>public static <A HREF="../../../../javax/swing/plaf/ComponentUI.html">ComponentUI</A> <B>createUI</B>(<A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</PRE><DL></DL><HR><A NAME="installUI(javax.swing.JComponent)"><!-- --></A><H3>installUI</H3><PRE>public void <B>installUI</B>(<A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/plaf/ComponentUI.html#installUI(javax.swing.JComponent)">installUI</A></CODE> in class <CODE><A HREF="../../../../javax/swing/plaf/ComponentUI.html">ComponentUI</A></CODE></DL></DD></DL><HR><A NAME="installDefaults()"><!-- --></A><H3>installDefaults</H3><PRE>protected void <B>installDefaults</B>()</PRE><DL></DL><HR><A NAME="installComponents(javax.swing.JMenuItem)"><!-- --></A><H3>installComponents</H3><PRE>protected void <B>installComponents</B>(<A HREF="../../../../javax/swing/JMenuItem.html">JMenuItem</A> menuItem)</PRE><DL><DD><DL><DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="getPropertyPrefix()"><!-- --></A><H3>getPropertyPrefix</H3><PRE>protected <A HREF="../../../../java/lang/String.html">String</A> <B>getPropertyPrefix</B>()</PRE><DL></DL><HR><A NAME="installListeners()"><!-- --></A><H3>installListeners</H3><PRE>protected void <B>installListeners</B>()</PRE><DL></DL><HR><A NAME="installKeyboardActions()"><!-- --></A><H3>installKeyboardActions</H3><PRE>protected void <B>installKeyboardActions</B>()</PRE><DL></DL><HR><A NAME="uninstallUI(javax.swing.JComponent)"><!-- --></A><H3>uninstallUI</H3><PRE>public void <B>uninstallUI</B>(<A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/plaf/ComponentUI.html#uninstallUI(javax.swing.JComponent)">uninstallUI</A></CODE> in class <CODE><A HREF="../../../../javax/swing/plaf/ComponentUI.html">ComponentUI</A></CODE></DL></DD></DL><HR><A NAME="uninstallDefaults()"><!-- --></A><H3>uninstallDefaults</H3><PRE>protected void <B>uninstallDefaults</B>()</PRE><DL></DL><HR><A NAME="uninstallComponents(javax.swing.JMenuItem)"><!-- --></A><H3>uninstallComponents</H3><PRE>protected void <B>uninstallComponents</B>(<A HREF="../../../../javax/swing/JMenuItem.html">JMenuItem</A> menuItem)</PRE><DL><DD><DL><DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="uninstallListeners()"><!-- --></A><H3>uninstallListeners</H3><PRE>protected void <B>uninstallListeners</B>()</PRE><DL></DL><HR><A NAME="uninstallKeyboardActions()"><!-- --></A><H3>uninstallKeyboardActions</H3><PRE>protected void <B>uninstallKeyboardActions</B>()</PRE><DL></DL><HR><A NAME="createMouseInputListener(javax.swing.JComponent)"><!-- --></A><H3>createMouseInputListener</H3><PRE>protected <A HREF="../../../../javax/swing/event/MouseInputListener.html">MouseInputListener</A> <B>createMouseInputListener</B>(<A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</PRE><DL></DL><HR><A NAME="createMenuDragMouseListener(javax.swing.JComponent)"><!-- --></A><H3>createMenuDragMouseListener</H3><PRE>protected <A HREF="../../../../javax/swing/event/MenuDragMouseListener.html">MenuDragMouseListener</A> <B>createMenuDragMouseListener</B>(<A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</PRE><DL></DL><HR><A NAME="createMenuKeyListener(javax.swing.JComponent)"><!-- --></A><H3>createMenuKeyListener</H3><PRE>protected <A HREF="../../../../javax/swing/event/MenuKeyListener.html">MenuKeyListener</A> <B>createMenuKeyListener</B>(<A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</PRE><DL></DL><HR><A NAME="getMinimumSize(javax.swing.JComponent)"><!-- --></A><H3>getMinimumSize</H3><PRE>public <A HREF="../../../../java/awt/Dimension.html">Dimension</A> <B>getMinimumSize</B>(<A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/plaf/ComponentUI.html#getMinimumSize(javax.swing.JComponent)">getMinimumSize</A></CODE> in class <CODE><A HREF="../../../../javax/swing/plaf/ComponentUI.html">ComponentUI</A></CODE></DL></DD></DL><HR><A NAME="getPreferredSize(javax.swing.JComponent)"><!-- --></A><H3>getPreferredSize</H3><PRE>public <A HREF="../../../../java/awt/Dimension.html">Dimension</A> <B>getPreferredSize</B>(<A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/plaf/ComponentUI.html#getPreferredSize(javax.swing.JComponent)">getPreferredSize</A></CODE> in class <CODE><A HREF="../../../../javax/swing/plaf/ComponentUI.html">ComponentUI</A></CODE></DL></DD></DL><HR><A NAME="getMaximumSize(javax.swing.JComponent)"><!-- --></A><H3>getMaximumSize</H3><PRE>public <A HREF="../../../../java/awt/Dimension.html">Dimension</A> <B>getMaximumSize</B>(<A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/plaf/ComponentUI.html#getMaximumSize(javax.swing.JComponent)">getMaximumSize</A></CODE> in class <CODE><A HREF="../../../../javax/swing/plaf/ComponentUI.html">ComponentUI</A></CODE></DL></DD></DL><HR><A NAME="getPreferredMenuItemSize(javax.swing.JComponent, javax.swing.Icon, javax.swing.Icon, int)"><!-- --></A><H3>getPreferredMenuItemSize</H3><PRE>protected <A HREF="../../../../java/awt/Dimension.html">Dimension</A> <B>getPreferredMenuItemSize</B>(<A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c, <A HREF="../../../../javax/swing/Icon.html">Icon</A> checkIcon, <A HREF="../../../../javax/swing/Icon.html">Icon</A> arrowIcon, int defaultTextIconGap)</PRE><DL></DL><HR><A NAME="update(java.awt.Graphics, javax.swing.JComponent)"><!-- --></A><H3>update</H3><PRE>public void <B>update</B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A> g, <A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</PRE><DL><DD>We draw the background in paintMenuItem() so override update (which fills the background of opaque components by default) to just call paint().<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/plaf/ComponentUI.html#update(java.awt.Graphics, javax.swing.JComponent)">update</A></CODE> in class <CODE><A HREF="../../../../javax/swing/plaf/ComponentUI.html">ComponentUI</A></CODE></DL></DD></DL><HR><A NAME="paint(java.awt.Graphics, javax.swing.JComponent)"><!-- --></A><H3>paint</H3><PRE>public void <B>paint</B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A> g, <A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/plaf/ComponentUI.html#paint(java.awt.Graphics, javax.swing.JComponent)">paint</A></CODE> in class <CODE><A HREF="../../../../javax/swing/plaf/ComponentUI.html">ComponentUI</A></CODE></DL></DD></DL><HR><A NAME="paintMenuItem(java.awt.Graphics, javax.swing.JComponent, javax.swing.Icon, javax.swing.Icon, java.awt.Color, java.awt.Color, int)"><!-- --></A><H3>paintMenuItem</H3><PRE>protected void <B>paintMenuItem</B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A> g, <A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c, <A HREF="../../../../javax/swing/Icon.html">Icon</A> checkIcon, <A HREF="../../../../javax/swing/Icon.html">Icon</A> arrowIcon, <A HREF="../../../../java/awt/Color.html">Color</A> background, <A HREF="../../../../java/awt/Color.html">Color</A> foreground, int defaultTextIconGap)</PRE><DL></DL><HR><A NAME="getPath()"><!-- --></A><H3>getPath</H3><PRE>public <A HREF="../../../../javax/swing/MenuElement.html">MenuElement</A>[] <B>getPath</B>()</PRE><DL></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/BasicMenuItemUI.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/plaf/basic/BasicMenuBarUI.html"><B>PREV CLASS</B></A> <A HREF="../../../../javax/swing/plaf/basic/BasicMenuItemUI.MouseInputHandler.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="BasicMenuItemUI.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> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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 + -