Altova Authentic 2025 Desktop

Im unten gezeigten Code sehen Sie wie ActiveX Controls erstellt werden. Die Konstruktoren erstellen die Java Wrapper-Objekte. Durch Hinzufügen dieser aus Canvas stammenden Objekte zu einem Bereich oder Rahmen wird die Erstellung des in Wrapper verpackten ActiveX-Objekts ausgelöst.

 

 

01   /**

02    * Authentic Desktop manager control - always needed

03    */

04   public static AuthenticDesktopControl         authenticDesktopControl = null;

05

06   /**

07    * Authentic Desktop document editing control

08    */

09   public static AuthenticDesktopControlDocument     authenticDesktopDocument = null;

10

11   /**

12    * Tool windows - Authentic Desktop place-holder controls

13    */

14   private static AuthenticDesktopControlPlaceHolder   authenticDesktopInfoToolWindow = null;

15   private static AuthenticDesktopControlPlaceHolder   authenticDesktopEHElementToolWindow = null;

16   private static AuthenticDesktopControlPlaceHolder   authenticDesktopProjectToolWindow = null;

17

18   // Create the Authentic Desktop ActiveX control, The parameter determines that we want
    // to place document controls and place-holder controls individually.

19   // It gives us full control over the menu, as well.

20      authenticDesktopControl = new AuthenticDesktopControl(
       ICActiveXIntegrationLevel.ICActiveXIntegrationOnDocumentLevel.getValue() );

21

22      authenticDesktopDocument = new AuthenticDesktopControlDocument();

23      authenticDesktopDocument.setPreferredSize( new Dimension ( 640, 480 ) );

24      frame.add( authenticDesktopDocument, BorderLayout.CENTER );

25

26   // Create a project window and open the sample project in it

27      authenticDesktopProjectToolWindow = new AuthenticDesktopControlPlaceHolder(
       XMLSpyControlPlaceholderWindow.XMLSpyControlProjectWindowToolWnd.getValue() );

28      authenticDesktopProjectToolWindow.setPreferredSize( new Dimension( 200, 200 ) );

).

© 2018-2024 Altova GmbH