Home
Categories
Dictionary
Download
Project Details
Changes Log
Who We Are
FAQ
License

Server widgets implementation configuration file



This Server widgets rendering pipeline XML configuration file specifies the Java classes which implements the ARINC 661 widgets and MapItems defined in the meta-definition.

Grammar

See the Widgets implementation configuration Schema.

Structure

The XML file contains the following elements:
  • The paths for the classes implementing each ARINC 661 extension
  • The paths for the classes implementing each MapItem
  • The paths for the classes implementing each widget

ARINC Extension implementation

The "extension" element has one "arincID" attribute which specifies the extension ARINC ID. It contains a child "path" element which allow to specify the classpath of the Java class implementing the extension.

For example:
      <extension arincID="A661_CHILD_INDEX_EXTENSION">
         <path path="arinc661.server.model.arinc.ChildIndexExtension"/>
      </extension>

MapItem implementation

The "mapItem" element has one "arincID" attribute which specifies the MapItem ARINC ID. It contains a child "applyTo" element which allow to specify the classpath of the Java class implementing the MapItem.

For example:
      <mapItem arincID="A661_SYMBOL_RECTANGLE">
         <applyTo path="arinc661.server.model.maps2d.items.SymbolRectangle"/>
      </mapItem>

Widget implementation

The "widget" element has the following attributes:
  • "arincID": the widget ARINC ID
  • "isSized": (optional) set to false if the widget has no size (meaning no A661_SIZE_X and A661_SIZE_Y ARINC properties)
  • "isSized": (optional) set to false if the widget has no size (meaning no A661_SIZE_X and A661_SIZE_Y or equivalent ARINC properties)
  • "sizeType": (optional) useful when the widget has no size, has the following enumeration values:
    • "parent": the widget area must fill its arent area. This is the case for the majority of unsized widgets such as for example A661_BASIC_CONTAINER
    • "renderer": a special case for widgets which do not have an ARINC 661 size, but must have however a size in their rendering implemention. This is the case for the A661_TABBED_PANEL widget
  • "positionType": (optional) useful when the widget has no size, has the following enumeration values:
    • "parent": the widget has the same position as its parent
    • "widget": the widget has its own position
Note that the "sizeType" and "positionType" attributes are only used in Swing.

The widget contains a child "path" element which allow to specify the classpath of the Java class implementing the widget.

Examples

      <widget arincID="A661_PUSH_BUTTON">
         <path path="arinc661.server.model.arinc.ARINCPushButton"/>
      </widget>
An unsized widget which takes its own position:
      <widget arincID="A661_GP_LINE" isSized="false" positionType="widget" sizeType="parent">
         <path path="arinc661.server.model.arinc.ARINCGPLine"/>
      </widget>
An unsized widget which takes the position of its parent:
      <widget arincID="A661_MENU_BAR" isSized="false" positionType="parent" sizeType="parent">
         <path path="arinc661.server.model.arinc.ARINCMenuBar"/>
      </widget>

See also


Categories: dev | server

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