class sap.ui.table.Row

Control sample: sap.ui.table.Row
Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/table/Row
Application Component: CA-UI5-TBL

The row.


Constructor

Constructor for a new Row.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.

new sap.ui.table.Row(sId?, mSettings?)
Param Type Default Value Description
sId? string

id for the new control, generated automatically if no id is given

mSettings? object

initial settings for the new control


Aggregations

Default Aggregation: cells

Name Cardinality Type Description
_rowAction 0..1 sap.ui.table.RowAction
_settings 0..1 sap.ui.table.RowSettings
cells (default) 0..n sap.ui.core.Control

The actual cells are a table-internal construct. The controls in this aggregation are the content of the cells. This aggregation is managed by the table and must not be manipulated. Only read access is allowed.


Methods Overview

Method Description
addCell

Adds some cell to the aggregation cells.

destroyCells

Destroys all the cells in the aggregation cells.

sap.ui.table.Row.extend

Creates a new subclass of class sap.ui.table.Row with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.core.Element.extend.

getCells

Gets content of aggregation cells.

The actual cells are a table-internal construct. The controls in this aggregation are the content of the cells. This aggregation is managed by the table and must not be manipulated. Only read access is allowed.

getIndex

Returns the index of the row in the table or -1 if not added to a table. This function considers the scroll position of the table and also takes fixed rows and fixed bottom rows into account.

sap.ui.table.Row.getMetadata

Returns a metadata object for class sap.ui.table.Row.

getRowAction

Returns the related RowAction of the row.

This function must only be used for application testing purposes. The RowAction is generated based on a template. Manipulations of the object or its items are not supported.

indexOfCell

Checks for the provided sap.ui.core.Control in the aggregation cells. and returns its index if found or -1 otherwise.

insertCell

Inserts a cell into the aggregation cells.

removeAllCells

Removes all the controls from the aggregation cells.

Additionally, it unregisters them from the hosting UIArea.

removeCell

Removes a cell from the aggregation cells.

addCell

Adds some cell to the aggregation cells.

Param Type DefaultValue Description
oCell sap.ui.core.Control

The cell to add; if empty, nothing is inserted

destroyCells

Destroys all the cells in the aggregation cells.

sap.ui.table.Row.extend

Creates a new subclass of class sap.ui.table.Row with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.core.Element.extend.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

getCells

Gets content of aggregation cells.

The actual cells are a table-internal construct. The controls in this aggregation are the content of the cells. This aggregation is managed by the table and must not be manipulated. Only read access is allowed.

getIndex

Returns the index of the row in the table or -1 if not added to a table. This function considers the scroll position of the table and also takes fixed rows and fixed bottom rows into account.

sap.ui.table.Row.getMetadata

Returns a metadata object for class sap.ui.table.Row.

getRowAction

Returns the related RowAction of the row.

This function must only be used for application testing purposes. The RowAction is generated based on a template. Manipulations of the object or its items are not supported.

indexOfCell

Checks for the provided sap.ui.core.Control in the aggregation cells. and returns its index if found or -1 otherwise.

Param Type DefaultValue Description
oCell sap.ui.core.Control

The cell whose index is looked for

insertCell

Inserts a cell into the aggregation cells.

Param Type DefaultValue Description
oCell sap.ui.core.Control

The cell to insert; if empty, nothing is inserted

iIndex int

The 0-based index the cell should be inserted at; for a negative value of iIndex, the cell is inserted at position 0; for a value greater than the current size of the aggregation, the cell is inserted at the last position

removeAllCells

Removes all the controls from the aggregation cells.

Additionally, it unregisters them from the hosting UIArea.

removeCell

Removes a cell from the aggregation cells.

Param Type DefaultValue Description
vCell int string sap.ui.core.Control

The cell to remove or its index or id