Versions Compared
Version | Old Version 5 | New Version 6 |
---|---|---|
Changes made by | ||
Saved on |
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Class graphomate.ui.tables.AbstractColumn
extends sap.ui.core.Element
Quick Start
This abstract base class is not meant to be instantiated. It provides common attributes for the column classes graphomate.ui.tables.DataColumn and graphomate.ui.tables.DeviationColumn.
Constructor Details
new graphomate.ui.tables.AbstractColumn(id?:string, settings?:object)
Throws an error when instantiated. Inheritates the following settings to its subclasses:
Properties:
- title : string (default: "column")
- visible : boolean (default: true)
- width : graphomate.ui.types.UnsignedInteger (default: 0)
Aggregations:
- extendedNumberFormat : graphomate.ui.ExtendedNumberFormat (default: null)
Property Details
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. |
width | graphomate.ui.types.UnsignedInteger | 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 of the graphomate chart 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 chart 1 but can't be part of an aggregation of chart 2 while it is still part of chart 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 following aggregations are available:
Aggregation Name | Aggregated Object Type | Cardinality | Description |
---|---|---|---|
extendedNumberFormat | graphomate.ui.ExtendedNumberFormat | 0...1 | 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. |