Altova Authentic 2024 Desktop

The code listing below show how ActiveX controls can be created. The constructors will create the Java wrapper objects. Adding these Canvas-derived objects to a panel or to a frame will trigger the creation of the wrapped ActiveX object.

 

 

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