📄 metalcomboboxui.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:41:17 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Class MetalComboBoxUI</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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/MetalComboBoxUI.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/metal/MetalComboBoxIcon.html"><B>PREV CLASS</B></A> <A HREF="../../../../javax/swing/plaf/metal/MetalComboBoxUI.MetalComboBoxLayoutManager.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="MetalComboBoxUI.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="#fields_inherited_from_class_javax.swing.plaf.basic.BasicComboBoxUI">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: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">javax.swing.plaf.metal</FONT><BR>Class MetalComboBoxUI</H2><PRE><A HREF="../../../../java/lang/Object.html">java.lang.Object</A> | +--<A HREF="../../../../javax/swing/plaf/ComponentUI.html">javax.swing.plaf.ComponentUI</A> | +--<A HREF="../../../../javax/swing/plaf/ComboBoxUI.html">javax.swing.plaf.ComboBoxUI</A> | +--<A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html">javax.swing.plaf.basic.BasicComboBoxUI</A> | +--<B>javax.swing.plaf.metal.MetalComboBoxUI</B></PRE><HR><DL><DT>public class <B>MetalComboBoxUI</B><DT>extends <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html">BasicComboBoxUI</A></DL><P>Metal UI for JComboBox <p> <strong>Warning:</strong> Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.<P><DL><DT><B>See Also: </B><DD><CODE>MetalComboBoxListCellRenderer</CODE>, <CODE>MetalPopupMenuBorder</CODE></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><A NAME="inner_class_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Inner Class Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/metal/MetalComboBoxUI.MetalComboBoxLayoutManager.html">MetalComboBoxUI.MetalComboBoxLayoutManager</A></B></CODE><BR> This inner class is marked "public" due to a compiler bug.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/metal/MetalComboBoxUI.MetalComboPopup.html">MetalComboBoxUI.MetalComboPopup</A></B></CODE><BR> This inner class is marked "public" due to a compiler bug.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/metal/MetalComboBoxUI.MetalPropertyChangeListener.html">MetalComboBoxUI.MetalPropertyChangeListener</A></B></CODE><BR> This inner class is marked "public" due to a compiler bug.</TD></TR></TABLE> <A NAME="inner_classes_inherited_from_class_javax.swing.plaf.basic.BasicComboBoxUI"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Inner classes inherited from class javax.swing.plaf.basic.<A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html">BasicComboBoxUI</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.ComboBoxLayoutManager.html">BasicComboBoxUI.ComboBoxLayoutManager</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.FocusHandler.html">BasicComboBoxUI.FocusHandler</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.ItemHandler.html">BasicComboBoxUI.ItemHandler</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.KeyHandler.html">BasicComboBoxUI.KeyHandler</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.ListDataHandler.html">BasicComboBoxUI.ListDataHandler</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.PropertyChangeHandler.html">BasicComboBoxUI.PropertyChangeHandler</A></CODE></TD></TR></TABLE> <!-- =========== FIELD SUMMARY =========== --><A NAME="fields_inherited_from_class_javax.swing.plaf.basic.BasicComboBoxUI"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from class javax.swing.plaf.basic.<A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html">BasicComboBoxUI</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html#arrowButton">arrowButton</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html#cachedMinimumSize">cachedMinimumSize</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html#comboBox">comboBox</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html#currentValuePane">currentValuePane</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html#editor">editor</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html#focusListener">focusListener</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html#hasFocus">hasFocus</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html#isMinimumSizeDirty">isMinimumSizeDirty</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html#itemListener">itemListener</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html#keyListener">keyListener</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html#listBox">listBox</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html#listDataListener">listDataListener</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html#popup">popup</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html#popupKeyListener">popupKeyListener</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html#popupMouseListener">popupMouseListener</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html#popupMouseMotionListener">popupMouseMotionListener</A>, <A HREF="../../../../javax/swing/plaf/basic/BasicComboBoxUI.html#propertyChangeListener">propertyChangeListener</A></CODE></TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../javax/swing/plaf/metal/MetalComboBoxUI.html#MetalComboBoxUI()">MetalComboBoxUI</A></B>()</CODE><BR> </TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/metal/MetalComboBoxUI.html#configureArrowButton()">configureArrowButton</A></B>()</CODE><BR> Configures the arrow button by adding listeners.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/metal/MetalComboBoxUI.html#configureEditor()">configureEditor</A></B>()</CODE><BR> Configures the editor by setting its font and adding listeners.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/JButton.html">JButton</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/metal/MetalComboBoxUI.html#createArrowButton()">createArrowButton</A></B>()</CODE><BR> Creates the arrow button.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/ComboBoxEditor.html">ComboBoxEditor</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/metal/MetalComboBoxUI.html#createEditor()">createEditor</A></B>()</CODE><BR> Creates the editor that is to be used in editable combo boxes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../java/awt/LayoutManager.html">LayoutManager</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/metal/MetalComboBoxUI.html#createLayoutManager()">createLayoutManager</A></B>()</CODE><BR> Creates the standard combo box layout manager that has the arrow button to the right and the editor to the left.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/plaf/basic/ComboPopup.html">ComboPopup</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/metal/MetalComboBoxUI.html#createPopup()">createPopup</A></B>()</CODE><BR> Creates an implementation of the ComboPopup interface.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/beans/PropertyChangeListener.html">PropertyChangeListener</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/metal/MetalComboBoxUI.html#createPropertyChangeListener()">createPropertyChangeListener</A></B>()</CODE><BR> Creates the list data listener that is used for caching the preferred sizes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../javax/swing/plaf/ComponentUI.html">ComponentUI</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/metal/MetalComboBoxUI.html#createUI(javax.swing.JComponent)">createUI</A></B>(<A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -