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

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Changing Category:JavaBean for Office Components)
Line 19: Line 19:
  
 
{{PDL1}}
 
{{PDL1}}
[[Category: JavaBean for Office Components]]
+
 
 +
[[Category:Documentation/Developers Guide/JavaBean for Office Components]]

Revision as of 09:09, 4 June 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