Difference between revisions of "Documentation/DevGuide/JavaBean/OfficeWindow Interface"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (1 revision(s))
m
Line 8: Line 8:
 
<!--<idltopic>com.sun.star.awt.XWindowPeer</idltopic>-->
 
<!--<idltopic>com.sun.star.awt.XWindowPeer</idltopic>-->
 
The <code>com.sun.star.comp.beans.OfficeWindow</code> interface encapsulates the relationship between the AWT window that the client plugs into its UI, and the <idl>com.sun.star.awt.XWindowPeer</idl> object, which the {{PRODUCTNAME}} process uses to draw into the window. It provides two public methods:
 
The <code>com.sun.star.comp.beans.OfficeWindow</code> interface encapsulates the relationship between the AWT window that the client plugs into its UI, and the <idl>com.sun.star.awt.XWindowPeer</idl> object, which the {{PRODUCTNAME}} process uses to draw into the window. It provides two public methods:
 
+
<source lang="java">
 
   public java.awt.Component getAWTComponent()
 
   public java.awt.Component getAWTComponent()
 
   public com.sun.star.awt.XWindowPeer getUNOWindowPeer()
 
   public com.sun.star.awt.XWindowPeer getUNOWindowPeer()
 
+
</source>
 
The client uses <code>getAWTComponent()</code> to obtain the Component window associated with an OfficeWindow. This Component is then added to the clients UI hierarchy.
 
The client uses <code>getAWTComponent()</code> to obtain the Component window associated with an OfficeWindow. This Component is then added to the clients UI hierarchy.
  

Revision as of 22:20, 13 April 2008



The com.sun.star.comp.beans.OfficeWindow interface encapsulates the relationship between the AWT window that the client plugs into its UI, and the com.sun.star.awt.XWindowPeer object, which the OpenOffice.org process uses to draw into the window. It provides two public methods:

  public java.awt.Component getAWTComponent()
  public com.sun.star.awt.XWindowPeer getUNOWindowPeer()

The client uses getAWTComponent() to obtain the Component window associated with an OfficeWindow. This Component is then added to the clients UI hierarchy.

The method getUNOWindowPeer() obtains the UNO com.sun.star.awt.XWindowPeer object associated with an OfficeWindow<ode>.

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools