Each property "sampleProperty" can be set using the related setter "setSampleProperty". Each setter expects a valid value for the related property as input parameter and throws an exception for invalid values. It returns the "this context" for method chaining. Each property "sampleProperty" can also be gotten using the related getter method "getSampleProperty". It expects no input parameters and returns the current value of the related property. Each property that represents or partially contains indices excepts a 0 based index.
The following properties are available:
Property Name
Type
Description
title
string
This string will be used to label the column. The column title is rendered as header above the column.
visible
boolean
Sets the visibility of the column. Can be used for tables that should show one DataColumn and a DeviationColumn. Since the deviation calculation needs two DataColumns one of them can be set invisible.
Sets the width of the column. A value of 0 results in automatic sizing.
Aggregation Details
We decided to use aggregation over association for all managed items because they can be bound to a model and associations can't. The disadvantage of using an aggregation is that a managed item can only be part of one aggregation. So the instance of an extendedNumberFormat can be part of an aggregation of table 1 but can't be part of an aggregation of table 2 while it is still part of table 1.
The Item of an aggregation named "sampleThing" that has a cardinality of 0...1 (and a multiplicity of 1:1) can be accessed by using one of the following methods:
getSampleThing() - Returns the current aggregated object or null.
setSampleThing(object) - Sets the provided object as the new aggregated object. Returns this for method chaining.
destroySampleThing() - Destroys the current aggregated object and clears the aggregation. Returns this for method chaining.
The item of this aggregation allows you to configure a special formatting of the column that overrides the number format defined by the table. If no format is set, the table's number format will be used.
Add Comment