📄 iframe.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Fri Feb 06 18:51:03 CST 2004 -->
<TITLE>
IFrame
</TITLE>
<META NAME="keywords" CONTENT="com.ibm.iwt.IFrame,IFrame class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
</HEAD>
<SCRIPT>
function asd()
{
parent.document.title="IFrame";
}
</SCRIPT>
<BODY BGCOLOR="white" onload="asd();">
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 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"> <A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/IFrame.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="../../../serialized-form.html"><FONT CLASS="NavBarFont1"><B>Serialized</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>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
<A HREF="../../../com/ibm/iwt/IFrame.DefaultBorder.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="IFrame.html" TARGET="_top"><B>NO FRAMES</B></A>
<SCRIPT> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: <A HREF="#nested_class_summary">NESTED</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>
<A NAME="main"></A>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.ibm.iwt</FONT>
<BR>
Class IFrame</H2>
<PRE>
<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Object.html">java.lang.Object</A>
|
+--<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Component.html">java.awt.Component</A>
|
+--<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Container.html">java.awt.Container</A>
|
+--<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Window.html">java.awt.Window</A>
|
+--<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/Frame.html">java.awt.Frame</A>
|
+--<A HREF="http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/JFrame.html">javax.swing.JFrame</A>
|
+--<B>com.ibm.iwt.IFrame</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://java.sun.com/j2se/1.4.1/docs/api/javax/accessibility/Accessible.html">Accessible</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/util/EventListener.html">EventListener</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/image/ImageObserver.html">ImageObserver</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/MenuContainer.html">MenuContainer</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/event/MouseListener.html">MouseListener</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/event/MouseMotionListener.html">MouseMotionListener</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/RootPaneContainer.html">RootPaneContainer</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/io/Serializable.html">Serializable</A>, <A HREF="../../../com/ibm/iwt/event/WindowChangeListener.html">WindowChangeListener</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/WindowConstants.html">WindowConstants</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/event/WindowListener.html">WindowListener</A></DD>
</DL>
<HR>
<DL>
<DT>public class <B>IFrame</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/JFrame.html">JFrame</A><DT>implements <A HREF="../../../com/ibm/iwt/event/WindowChangeListener.html">WindowChangeListener</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/event/WindowListener.html">WindowListener</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/event/MouseListener.html">MouseListener</A>, <A HREF="http://java.sun.com/j2se/1.4.1/docs/api/java/awt/event/MouseMotionListener.html">MouseMotionListener</A></DL>
<P>
<p>The IFrame is the main class that is used to create a custom frame. In addition to the methods inherited from the IFrame's superclass, JFrame, there are public methods added to the IFrame that allow you to change some basic look and feel components on your frame. <p>The default IFrame behaves exactly the same as a JFrame does so that a JFrame and default IFrame can be interchangeable. However, by calling some of the public methods available in the IFrame, you can quickly change the look of your window with only a few lines of code. <p><b>Note:</b> The IFrame functions <code>getIContentPane()</code> and <code>setIContentPane()</code> should be used in place of the JFrame equivelent <code>getContentPane()</code> and <code>setContentPane()</code>. All components that get added to the IFrame should call <code>myIFrame.getIContentPane().add()</code>. Adding components to the IFrame using <code>getContentPane()</code> or setting the content pane using <code>setContentPane()</code> will lead to unpredictable and most likely incorrect behavior.
<P>
<P>
<DL>
<DT><B>Author:</B></DT> <DD>MAbernethy <p><font size=-1><b>Known Issues</b> <br>+ When user clicks on transparent region of IFrame, IFrame is sent to back of all open windows, instead of just the window clicked on. <br>+ There is no minimum size for the windows, which can lead to layout issues on default title bars and disappearing windows which have 1 pixel width or height. <br>+ When the window loses focus, and then regains focus, it does not recapture the screen shot. For example, but minimizing a window behind the IFrame, correct behavior would be to recapture the screen shot without that minimized window. The solution causes slow performance when the IFrame regains focus and has been omitted. As a workaround, code can be added to windowDeactived() to forcefully minimize the window when it loses focus. </font></DD><DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html" TARGET="com.ibm.iwt.IFrame">Serialized Form</A></DL>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<A NAME="nested_class_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN=2><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected class</CODE></FONT></TD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -