Difference between revisions of "Documentation/DevGuide/JavaBean/The Internal Office Bean API"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Initial author Sun Microsystems, Inc.)
 
(4 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
|NextPage=Documentation/DevGuide/JavaBean/OfficeConnection Interface
 
|NextPage=Documentation/DevGuide/JavaBean/OfficeConnection Interface
 
}}
 
}}
{{DISPLAYTITLE:The Internal Office Bean API}}
+
{{Documentation/DevGuideLanguages|Documentation/DevGuide/JavaBean/{{SUBPAGENAME}}}}
 +
{{DISPLAYTITLE:The Internal Office Bean API}}
 
The Office Bean API is exported in two Java interfaces, <code>com.sun.star.comp.beans.OfficeConnection</code> and <code>com.sun.star.comp.beans.OfficeWindow</code>.  
 
The Office Bean API is exported in two Java interfaces, <code>com.sun.star.comp.beans.OfficeConnection</code> and <code>com.sun.star.comp.beans.OfficeWindow</code>.  
  
{{Documentation/Note|These interfaces are Java interfaces in the com.sun.star.comp.beans package, they are not UNO interfaces.}}
+
{{Note|These interfaces are Java interfaces in the com.sun.star.comp.beans package, they are not UNO interfaces.}}
  
{{Documentation/Note|Prior to {{PRODUCTNAME}} {{OO2.0.0}} all Office Bean classes were in the <tt>com.sun.star.bean</tt> package. As of {{PRODUCTNAME}} {{OO2.0.0}} the classes are contained in the <tt>com.sun.star.comp.bean</tt> package. The classes of the <tt>com.sun.star.bean</tt> package are still contained in the ''officebean.jar'' but they are deprecated. Further development and bug fixing will occur only in the <tt>com.sun.star.comp.bean</tt> package.}}
+
{{Note|Prior to {{PRODUCTNAME}} {{OO2.0.0}} all Office Bean classes were in the <tt>com.sun.star.bean</tt> package. As of {{PRODUCTNAME}} {{OO2.0.0}} the classes are contained in the <tt>com.sun.star.comp.bean</tt> package. The classes of the <tt>com.sun.star.bean</tt> package are still contained in the ''officebean.jar'' but they are deprecated. Further development and bug fixing will occur only in the <tt>com.sun.star.comp.bean</tt> package.}}
  
 
An implementation of <code>com.sun.star.comp.beans.OfficeConnection</code> is provided in the class <code>com.sun.star.comp.beans.LocalOfficeConnection</code>. The class <code>com.sun.star.comp.beans.LocalOfficeWindow</code> implements <code>com.sun.star.comp.beans.OfficeWindow</code>. The relationship between the Office Bean interfaces and their implementation classes is shown in the illustration below.
 
An implementation of <code>com.sun.star.comp.beans.OfficeConnection</code> is provided in the class <code>com.sun.star.comp.beans.LocalOfficeConnection</code>. The class <code>com.sun.star.comp.beans.LocalOfficeWindow</code> implements <code>com.sun.star.comp.beans.OfficeWindow</code>. The relationship between the Office Bean interfaces and their implementation classes is shown in the illustration below.
Line 19: Line 20:
  
 
{{PDL1}}
 
{{PDL1}}
[[Category: JavaBean for Office Components]]
+
 
 +
[[Category:Documentation/Developer's Guide/JavaBean for Office Components]]

Revision as of 19:42, 3 July 2018



The Office Bean API is exported in two Java interfaces, com.sun.star.comp.beans.OfficeConnection and com.sun.star.comp.beans.OfficeWindow.

Documentation note.png These interfaces are Java interfaces in the com.sun.star.comp.beans package, they are not UNO interfaces.
Documentation note.png Prior to OpenOffice.org 2.0 all Office Bean classes were in the com.sun.star.bean package. As of OpenOffice.org 2.0 the classes are contained in the com.sun.star.comp.bean package. The classes of the com.sun.star.bean package are still contained in the officebean.jar but they are deprecated. Further development and bug fixing will occur only in the com.sun.star.comp.bean package.

An implementation of com.sun.star.comp.beans.OfficeConnection is provided in the class com.sun.star.comp.beans.LocalOfficeConnection. The class com.sun.star.comp.beans.LocalOfficeWindow implements com.sun.star.comp.beans.OfficeWindow. The relationship between the Office Bean interfaces and their implementation classes is shown in the illustration below.

The OfficeBean structure

The following sections describe the Office Bean interfaces OfficeConnection and OfficeWindow. Refer to the section Using the OOoBean for an explanation of how the implementation classes are used.

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