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

ARINC661 Look and Feel configuration



The Look and Feel configuration file specifies the Look and Feel file for the CDS. This definition is an XML file which is defined in the properties file with the properties named ui.

Grammar

See the Look and Feel configuration Schema.

Structure

The structure of the Look and Feel configuration file contains "ui" elements, each of these elements defining one Swing or JavaFX Look and Feel The effective Look and Feel is specified through the lf property in the Server configuration properties.

ui element

The "ui" element has the following XML attributes:
  • name: the name of the Look and Feel, which can be adressed through the lf property in the Server configuration properties
  • type: the Look and Feel type. There is only one supported type for the JavaFX UI which is:
    • "jfx": JavaFX Look and Feel


This element may have the following children "property" elements.

The lf property in the configuration property refer to one of the Look and Feels specified in this file.

property element

The "property" element specify the additional properties which can be necessary to specify completely the Look and Feel. See the various Look and Feel types to look for the supported properties for each type.

The following properties are optional and usable for all Look and Feel types:
  • "styleSets": (optional) specifies the path for the XML configuration file defining names for StyleSets, usable in XML Definition Files
  • "rendererStyles": (optional) specifies the path for the XML file defining the correspondance between the widget and its renderers implemententations. It allows to have different widgets renderers implementations for different StyleSets. Note by by default all StyleSets will share the same renderer class.

Supported Look and Feel type

The "jfx" type is a JavaFX Look and Feel. This Look and Feel has three specific property:
  • "url": the path of the JavaFX CSS configuration file for the Look and Feel (relative to the Look and Feel configuration file, or absolute)
  • "componentsStructure": (optional) the path of an XML file specifying the structure of the of the widgets sub-components
  • "componentsStyles: (optional) the path of an XML file specifying the styles of the widgets sub-components


For example:
         <ui name="JavaFX" type="jfx" >
            <property name="url" value="javaFX.css" />
         </ui>

See also


Categories: builtin-applis | uaappli

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