AbstractColumn

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:
Aggregations:




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 NameTypeDescription
titlestringThis string will be used to label the column. The column title is rendered as header above the column.
visiblebooleanSets 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.
widthgraphomate.ui.types.UnsignedIntegerSets the width of the column in px. 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 following aggregations are available:

Aggregation NameAggregated Object TypeCardinalityDescription

extendedNumberFormat

graphomate.ui.ExtendedNumberFormat0...1The 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.