Home
Categories
Dictionary
Glossary
Download
Project Details
Changes Log
What Links Here
FAQ
License

UA WindowHelper



The UA application WindowHelper class allows to get the list of native Windows on the machine on which the framework is running.

Accessing the class

To be able to use the UAAppliHelper.jar library, you will need to reference it in your application configuration. For example:
      <applications>
         <application name="uaappli">
            <deployment>
               <lib url="UAApplication.jar" />
               <lib url="UAAppliHelper.jar" />
            </deployment>
            <modules>
               <module name="uaappli"/>     
            </modules>
         </application>     
      </applications>

Getting the list of all native windows

The WindowsHelper.getNativeWindows() returns the map of all the native windows on the machine on which the framework is running.

Only the windows with a not null and not empty title will be included in the result.
Each NativeWindow contains:
  • The title of the window
  • The position and size of the window in pixels
  • The position and size of the window in ARINC 661 units (1/100th of mm)

Getting a filtered list of all native windows

The WindowsHelper.getNativeWindows(String...) returns the map of all the native windows on the machine on which the framework is running, only for the windows for which the titles are defined in the vararg input.

For example:
      Map<String, NativeWindow> windows = WindowsHelper.getNativeWindows("L-PFD", "R-PFD", "MFD"); 

See also


Categories: builtin-applis | uaappli

Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence