Property
The Control Type property details are as follows:
| Property | Type | Description |
|---|---|---|
| Bindable | Boolean | If
true, then the following features are enabled:
|
| Data Type | Classifier | Defines the type of the value for this property. This is a reference either to a built-in BOM Primitive Type, or to a Class or Enumeration defined in a BOM file in the Library project. The Data Type will determine what can be bound to the value property in the form model.
When a property type is defined as a specific Class, then it will limit bindings of that property to objects of that type or a specialization of that type defined in the model. If the Data Type is set to BomPrimitiveTypes::Object, then the property can be bound to an object of any complex type. However, in this case it will be the responsibility of the person designing the form to ensure that the binding is to a value that can actually be used by the custom control. The use case for supporting complex objects for properties includes the use of complex third party controls such as tables and trees. For example, you could define a "Selection" property on a tree control that will be set to the object currently selected by the user. It would still be up to the person designing the form to make sure the selected object is used correctly in the rest of the form, for example, by setting it as the value on a pane that can edit that particular type of object. |
| Default Value Literal | String | Provides a default value to use for this property if nothing is provided in the form model.
The value must be a valid literal representation for the property's data type. |
| Externalize | Boolean | Indicates the Property provides a value which could vary based on locale. A setting of
true here will cause the value to be externalized within the form-level resource bundle that is generated automatically.
In addition, the property editor generated for instances of this control will expose the following two settings:
|
| Label | String | Label used in the Form Designer when exposing this property in the property sheet editor. |
| Multi-valued | Boolean | Indicates whether the value for this property is multi-valued. If
true, then the value for this property can only be bound to multi-valued values.
The default value is
|
| Name | String | This name is used to expose the named property on the form Control object, and is used when providing updates to the ControlWrapper using the
refresh() method.
This property has the following restrictions:
|
| Description | String | Provides the descriptive message to display in the status line when the property is selected in the Properties tab in Form Designer. |
| Required | Boolean | Whether a value must be provided for the property. Combined with multi-valued, determines the multiplicity of the generated structural feature whose value will be set when editing the property in the Form Designer Properties tab:
The multiplicity constraint is enforced by the property cell editors and form validation rules. The default value is
|
