This package contains the component reader. Using an XML based definition the properties on a component are described.

Introduction

The editor and runtime have no knowledge about the components composing a display or symbol. It is not aware that there are rectangles, circles, sliders, alarm overviews, etc. During startup the editor or runtime take a look in the %TLS_ROOT_PATH%\tls\wap\cfg\operatorInterfaces\%d\components directory to find out the components that are available for displays and symbols. Each component is described by a separate xml file that supplies global information about the component and its properties that are available to the editor or runtime. The next sections describe the xml syntax used to describe a component. Many examples of component description files are are found in the directory mentioned above.

XML file structure

componentType

<componentType
  name="name of the component"
  icon="file name of for the icon.png"
  description="component description"
  containedBy="name of container class"
  class="name of the class"
  makeInteractor="name of java class that can make the component interactively"
  enterprise="yes|no"
  resourceBundle="name of translation properties file"
  <property.../>
/>
General remarks: Attribute names (as part of XML element tags) are case sensitive!

The componentType attribute starts the definition of a component. A component must be a class derived from IlvGraphic. If this is not the case then a container can be supplied, which is derived from IlvGraphic, that can embed the component (see containedBy).

property

<property
  name="name of the property"
  id="unique id number for the property"
  type="representation of the property"
  description="component description"
  defaultAllowed="yes|no"
  save="yes|no"
  writeAllowed="yes|no"
  readAllowed="yes|no"
  connectAllowed="yes|no"
  deprecated="yes|no"
  enterprise="yes|no"
  bound="yes|no"
  null="none|default|readOnly"
  setter="name of the setter method"
  getter="name of the getter method"
  array="a..b"
  localized="yes|no"
  initialValue="yes|no"
  advanced="yes|no"
  triggers="comma separated list of properties in this component"
/>
Each component can have a number of properties. Each property attribute specifies one of the properties of the component.