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

📄 uidefaults.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
		<code>null</code></DL></DD></DL><HR><A NAME="getIcon(java.lang.Object)"><!-- --></A><H3>getIcon</H3><PRE>public <A HREF="../../javax/swing/Icon.html">Icon</A> <B>getIcon</B>(<A HREF="../../java/lang/Object.html">Object</A>&nbsp;key)</PRE><DL><DD>If the value of <code>key</code> is an <code>Icon</code> return it, otherwise return <code>null</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the desired key<DT><B>Returns:</B><DD>if the value for <code>key</code> is an <code>Icon</code>,		return the <code>Icon</code> object; otherwise return		<code>null</code></DL></DD></DL><HR><A NAME="getBorder(java.lang.Object)"><!-- --></A><H3>getBorder</H3><PRE>public <A HREF="../../javax/swing/border/Border.html">Border</A> <B>getBorder</B>(<A HREF="../../java/lang/Object.html">Object</A>&nbsp;key)</PRE><DL><DD>If the value of <code>key</code> is a <code>Border</code> return it, otherwise return <code>null</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the desired key<DT><B>Returns:</B><DD>if the value for <code>key</code> is a <code>Border</code>,		return the <code>Border</code> object; otherwise return		<code>null</code></DL></DD></DL><HR><A NAME="getString(java.lang.Object)"><!-- --></A><H3>getString</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getString</B>(<A HREF="../../java/lang/Object.html">Object</A>&nbsp;key)</PRE><DL><DD>If the value of <code>key</code> is a <code>String</code> return it, otherwise return <code>null</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the desired key<DT><B>Returns:</B><DD>if the value for <code>key</code> is a <code>String</code>,		return the <code>String</code> object; otherwise return		<code>null</code></DL></DD></DL><HR><A NAME="getInt(java.lang.Object)"><!-- --></A><H3>getInt</H3><PRE>public int <B>getInt</B>(<A HREF="../../java/lang/Object.html">Object</A>&nbsp;key)</PRE><DL><DD>If the value of <code>key</code> is an <code>Integer</code> return its integer value, otherwise return 0.<DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the desired key<DT><B>Returns:</B><DD>if the value for <code>key</code> is an <code>Integer</code>,		return its value, otherwise return 0</DL></DD></DL><HR><A NAME="getInsets(java.lang.Object)"><!-- --></A><H3>getInsets</H3><PRE>public <A HREF="../../java/awt/Insets.html">Insets</A> <B>getInsets</B>(<A HREF="../../java/lang/Object.html">Object</A>&nbsp;key)</PRE><DL><DD>If the value of <code>key</code> is an <code>Insets</code> return it, otherwise return <code>null</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the desired key<DT><B>Returns:</B><DD>if the value for <code>key</code> is an <code>Insets</code>,		return the <code>Insets</code> object; otherwise return		<code>null</code></DL></DD></DL><HR><A NAME="getDimension(java.lang.Object)"><!-- --></A><H3>getDimension</H3><PRE>public <A HREF="../../java/awt/Dimension.html">Dimension</A> <B>getDimension</B>(<A HREF="../../java/lang/Object.html">Object</A>&nbsp;key)</PRE><DL><DD>If the value of <code>key</code> is a <code>Dimension</code> return it, otherwise return <code>null</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>key</CODE> - the desired key<DT><B>Returns:</B><DD>if the value for <code>key</code> is a <code>Dimension</code>,		return the <code>Dimension</code> object; otherwise return		<code>null</code></DL></DD></DL><HR><A NAME="getUIClass(java.lang.String, java.lang.ClassLoader)"><!-- --></A><H3>getUIClass</H3><PRE>public <A HREF="../../java/lang/Class.html">Class</A> <B>getUIClass</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;uiClassID,                        <A HREF="../../java/lang/ClassLoader.html">ClassLoader</A>&nbsp;uiClassLoader)</PRE><DL><DD>The value of <code>get(uidClassID)</code> must be the <code>String</code> name of a class that implements the corresponding <code>ComponentUI</code> class.  If the class hasn't been loaded before, this method looks  up the class with <code>uiClassLoader.loadClass()</code> if a non  <code>null</code> class loader is provided, <code>classForName()</code> otherwise. <p> If a mapping for <code>uiClassID</code> exists or if the specified class can't be found, return <code>null</code>. <p> This method is used by <code>getUI</code>, it's usually not neccessary to call it directly.<DD><DL><DT><B>Parameters:</B><DD><CODE>uiClassID</CODE> - a string containing the class ID<DD><CODE>uiClassLoader</CODE> - the object which will load the class<DT><B>Returns:</B><DD>the value of <code>Class.forName(get(uidClassID))</code><DT><B>See Also: </B><DD><A HREF="../../javax/swing/UIDefaults.html#getUI(javax.swing.JComponent)"><CODE>getUI(javax.swing.JComponent)</CODE></A></DL></DD></DL><HR><A NAME="getUIClass(java.lang.String)"><!-- --></A><H3>getUIClass</H3><PRE>public <A HREF="../../java/lang/Class.html">Class</A> <B>getUIClass</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;uiClassID)</PRE><DL><DD>Returns the L&F class that renders this component.<DD><DL><DT><B>Parameters:</B><DD><CODE>uiClassID</CODE> - a string containing the class ID<DT><B>Returns:</B><DD>the Class object returned by		<code>getUIClass(uiClassID, null)</code></DL></DD></DL><HR><A NAME="getUIError(java.lang.String)"><!-- --></A><H3>getUIError</H3><PRE>protected void <B>getUIError</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;msg)</PRE><DL><DD>If <code>getUI()</code> fails for any reason, it calls this method before returning <code>null</code>. Subclasses may choose to do more or less here.<DD><DL><DT><B>Parameters:</B><DD><CODE>msg</CODE> - message string to print<DT><B>See Also: </B><DD><A HREF="../../javax/swing/UIDefaults.html#getUI(javax.swing.JComponent)"><CODE>getUI(javax.swing.JComponent)</CODE></A></DL></DD></DL><HR><A NAME="getUI(javax.swing.JComponent)"><!-- --></A><H3>getUI</H3><PRE>public <A HREF="../../javax/swing/plaf/ComponentUI.html">ComponentUI</A> <B>getUI</B>(<A HREF="../../javax/swing/JComponent.html">JComponent</A>&nbsp;target)</PRE><DL><DD>Creates an <code>ComponentUI</code> implementation for the specified component.  In other words create the look and feel specific delegate object for <code>target</code>. This is done in two steps: <ul> <li> Look up the name of the <code>ComponentUI</code> implementation class under the value returned by <code>target.getUIClassID()</code>. <li> Use the implementation classes static <code>createUI()</code> method to construct a look and feel delegate. </ul><DD><DL><DT><B>Parameters:</B><DD><CODE>target</CODE> - the <code>JComponent</code> which needs a UI<DT><B>Returns:</B><DD>the <code>ComponentUI</code> object</DL></DD></DL><HR><A NAME="addPropertyChangeListener(java.beans.PropertyChangeListener)"><!-- --></A><H3>addPropertyChangeListener</H3><PRE>public void <B>addPropertyChangeListener</B>(<A HREF="../../java/beans/PropertyChangeListener.html">PropertyChangeListener</A>&nbsp;listener)</PRE><DL><DD>Adds a <code>PropertyChangeListener</code> to the listener list. The listener is registered for all properties. <p> A <code>PropertyChangeEvent</code> will get fired whenever a default is changed.<DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the <code>PropertyChangeListener</code> to be added<DT><B>See Also: </B><DD><A HREF="../../java/beans/PropertyChangeSupport.html"><CODE>PropertyChangeSupport</CODE></A></DL></DD></DL><HR><A NAME="removePropertyChangeListener(java.beans.PropertyChangeListener)"><!-- --></A><H3>removePropertyChangeListener</H3><PRE>public void <B>removePropertyChangeListener</B>(<A HREF="../../java/beans/PropertyChangeListener.html">PropertyChangeListener</A>&nbsp;listener)</PRE><DL><DD>Removes a <code>PropertyChangeListener</code> from the listener list. This removes a <code>PropertyChangeListener</code> that was registered for all properties.<DD><DL><DT><B>Parameters:</B><DD><CODE>listener</CODE> - the <code>PropertyChangeListener</code> to be removed<DT><B>See Also: </B><DD><A HREF="../../java/beans/PropertyChangeSupport.html"><CODE>PropertyChangeSupport</CODE></A></DL></DD></DL><HR><A NAME="firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)"><!-- --></A><H3>firePropertyChange</H3><PRE>protected void <B>firePropertyChange</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;propertyName,                                  <A HREF="../../java/lang/Object.html">Object</A>&nbsp;oldValue,                                  <A HREF="../../java/lang/Object.html">Object</A>&nbsp;newValue)</PRE><DL><DD>Support for reporting bound property changes.  If oldValue and newValue are not equal and the <code>PropertyChangeEvent</code>x listener list isn't empty, then fire a  <code>PropertyChange</code> event to each listener.<DD><DL><DT><B>Parameters:</B><DD><CODE>propertyName</CODE> - the programmatic name of the property		that was changed<DD><CODE>oldValue</CODE> - the old value of the property<DD><CODE>newValue</CODE> - the new value of the property<DT><B>See Also: </B><DD><A HREF="../../java/beans/PropertyChangeSupport.html"><CODE>PropertyChangeSupport</CODE></A></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/UIDefaults.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/ToolTipManager.stillInsideTimerAction.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javax/swing/UIDefaults.LazyInputMap.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="UIDefaults.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;FIELD&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;FIELD&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 + -