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

📄 basicoptionpaneui.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</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>&nbsp;c)</PRE><DL><DD>Messages getPreferredSize.<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="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>&nbsp;c)</PRE><DL><DD>Messages getPreferredSize.<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="createMessageArea()"><!-- --></A><H3>createMessageArea</H3><PRE>protected <A HREF="../../../../java/awt/Container.html">Container</A> <B>createMessageArea</B>()</PRE><DL><DD>Messaged from installComponents to create a Container containing the body of the message. The icon is the created by calling <code>addIcon</code>.</DL><HR><A NAME="addMessageComponents(java.awt.Container, java.awt.GridBagConstraints, java.lang.Object, int, boolean)"><!-- --></A><H3>addMessageComponents</H3><PRE>protected void <B>addMessageComponents</B>(<A HREF="../../../../java/awt/Container.html">Container</A>&nbsp;container,                                    <A HREF="../../../../java/awt/GridBagConstraints.html">GridBagConstraints</A>&nbsp;cons,                                    <A HREF="../../../../java/lang/Object.html">Object</A>&nbsp;msg,                                    int&nbsp;maxll,                                    boolean&nbsp;internallyCreated)</PRE><DL><DD>Creates the appropriate object to represent <code>msg</code> and places it into <code>container</code>. If <code>msg</code> is an instance of Component, it is added directly, if it is an Icon, a JLabel is created to represent it, otherwise a JLabel is created for the string, if <code>d</code> is an Object[], this method will be recursively invoked for the children. <code>internallyCreated</code> is true if Objc is an instance of Component and was created internally by this method (this is used to correctly set hasCustomComponents only if !internallyCreated).</DL><HR><A NAME="getMessage()"><!-- --></A><H3>getMessage</H3><PRE>protected <A HREF="../../../../java/lang/Object.html">Object</A> <B>getMessage</B>()</PRE><DL><DD>Returns the message to display from the JOptionPane the receiver is providing the look and feel for.</DL><HR><A NAME="addIcon(java.awt.Container)"><!-- --></A><H3>addIcon</H3><PRE>protected void <B>addIcon</B>(<A HREF="../../../../java/awt/Container.html">Container</A>&nbsp;top)</PRE><DL><DD>Creates and adds a JLabel representing the icon returned from <code>getIcon</code> to <code>top</code>. This is messaged from <code>createMessageArea</code></DL><HR><A NAME="getIcon()"><!-- --></A><H3>getIcon</H3><PRE>protected <A HREF="../../../../javax/swing/Icon.html">Icon</A> <B>getIcon</B>()</PRE><DL><DD>Returns the icon from the JOptionPane the reciever is providing the look and feel for, or the default icon as returned from getDefaultIcon.</DL><HR><A NAME="getIconForType(int)"><!-- --></A><H3>getIconForType</H3><PRE>protected <A HREF="../../../../javax/swing/Icon.html">Icon</A> <B>getIconForType</B>(int&nbsp;messageType)</PRE><DL><DD>Returns the icon to use for the passed in type.</DL><HR><A NAME="getMaxCharactersPerLineCount()"><!-- --></A><H3>getMaxCharactersPerLineCount</H3><PRE>protected int <B>getMaxCharactersPerLineCount</B>()</PRE><DL><DD>Returns the maximum number of characters to place on a line.</DL><HR><A NAME="burstStringInto(java.awt.Container, java.lang.String, int)"><!-- --></A><H3>burstStringInto</H3><PRE>protected void <B>burstStringInto</B>(<A HREF="../../../../java/awt/Container.html">Container</A>&nbsp;c,                               <A HREF="../../../../java/lang/String.html">String</A>&nbsp;d,                               int&nbsp;maxll)</PRE><DL><DD>Recursively creates new JLabel instances to represent <code>d</code>. Each JLabel instance is added to <code>c</code>.</DL><HR><A NAME="createSeparator()"><!-- --></A><H3>createSeparator</H3><PRE>protected <A HREF="../../../../java/awt/Container.html">Container</A> <B>createSeparator</B>()</PRE><DL></DL><HR><A NAME="createButtonArea()"><!-- --></A><H3>createButtonArea</H3><PRE>protected <A HREF="../../../../java/awt/Container.html">Container</A> <B>createButtonArea</B>()</PRE><DL><DD>Creates and returns a Container containin the buttons. The buttons are created by calling <code>getButtons</code>.</DL><HR><A NAME="addButtonComponents(java.awt.Container, java.lang.Object[], int)"><!-- --></A><H3>addButtonComponents</H3><PRE>protected void <B>addButtonComponents</B>(<A HREF="../../../../java/awt/Container.html">Container</A>&nbsp;container,                                   <A HREF="../../../../java/lang/Object.html">Object</A>[]&nbsp;buttons,                                   int&nbsp;initialIndex)</PRE><DL><DD>Creates the appropriate object to represent each of the objects in <code>buttons</code> and adds it to <code>container</code>. This differs from addMessageComponents in that it will recurse on <code>buttons</code> and that if button is not a Component it will create an instance of JButton.</DL><HR><A NAME="createButtonActionListener(int)"><!-- --></A><H3>createButtonActionListener</H3><PRE>protected <A HREF="../../../../java/awt/event/ActionListener.html">ActionListener</A> <B>createButtonActionListener</B>(int&nbsp;buttonIndex)</PRE><DL></DL><HR><A NAME="getButtons()"><!-- --></A><H3>getButtons</H3><PRE>protected <A HREF="../../../../java/lang/Object.html">Object</A>[] <B>getButtons</B>()</PRE><DL><DD>Returns the buttons to display from the JOptionPane the receiver is providing the look and feel for. If the JOptionPane has options set, they will be provided, otherwise if the optionType is YES_NO_OPTION, yesNoOptions is returned, if the type is YES_NO_CANCEL_OPTION yesNoCancelOptions is returned, otherwise defaultButtons are returned.</DL><HR><A NAME="getSizeButtonsToSameWidth()"><!-- --></A><H3>getSizeButtonsToSameWidth</H3><PRE>protected boolean <B>getSizeButtonsToSameWidth</B>()</PRE><DL><DD>Returns true, basic L&F wants all the buttons to have the same width.</DL><HR><A NAME="getInitialValueIndex()"><!-- --></A><H3>getInitialValueIndex</H3><PRE>protected int <B>getInitialValueIndex</B>()</PRE><DL><DD>Returns the initial index into the buttons to select. The index is calculated from the initial value from the JOptionPane and options of the JOptionPane or 0.</DL><HR><A NAME="resetInputValue()"><!-- --></A><H3>resetInputValue</H3><PRE>protected void <B>resetInputValue</B>()</PRE><DL><DD>Sets the input value in the option pane the receiver is providing the look and feel for based on the value in the inputComponent.</DL><HR><A NAME="selectInitialValue(javax.swing.JOptionPane)"><!-- --></A><H3>selectInitialValue</H3><PRE>public void <B>selectInitialValue</B>(<A HREF="../../../../javax/swing/JOptionPane.html">JOptionPane</A>&nbsp;op)</PRE><DL><DD>If inputComponent is non-null, the focus is requested on that, otherwise request focus on the default value<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/plaf/OptionPaneUI.html#selectInitialValue(javax.swing.JOptionPane)">selectInitialValue</A></CODE> in class <CODE><A HREF="../../../../javax/swing/plaf/OptionPaneUI.html">OptionPaneUI</A></CODE></DL></DD></DL><HR><A NAME="containsCustomComponents(javax.swing.JOptionPane)"><!-- --></A><H3>containsCustomComponents</H3><PRE>public boolean <B>containsCustomComponents</B>(<A HREF="../../../../javax/swing/JOptionPane.html">JOptionPane</A>&nbsp;op)</PRE><DL><DD>Returns true if in the last call to validateComponent the message or buttons contained a subclass of Component.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/plaf/OptionPaneUI.html#containsCustomComponents(javax.swing.JOptionPane)">containsCustomComponents</A></CODE> in class <CODE><A HREF="../../../../javax/swing/plaf/OptionPaneUI.html">OptionPaneUI</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>&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/BasicOptionPaneUI.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-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>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../javax/swing/plaf/basic/BasicMenuUI.ChangeHandler.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../javax/swing/plaf/basic/BasicOptionPaneUI.ButtonActionListener.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="BasicOptionPaneUI.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&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><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 + -