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

From Apache OpenOffice Wiki
Jump to: navigation, search
m (FINAL VERSION FOR L10N)
 
Line 8: Line 8:
 
  {{DISPLAYTITLE:OfficeWindow Interface}}
 
  {{DISPLAYTITLE:OfficeWindow Interface}}
 
<!--<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 {{AOo}} process uses to draw into the window. It provides two public methods:
  
<source lang="java">
+
<syntaxhighlight 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>
+
</syntaxhighlight>
  
 
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.

Latest revision as of 17:35, 21 December 2020



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 Apache OpenOffice 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
In other languages