The row.
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 |
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. |
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
|
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 This function must only be used for application testing purposes. The |
indexOfCell |
Checks for the provided |
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. |
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 |
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 |
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.
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.
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.
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 |
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 |
Removes all the controls from the aggregation cells.
Additionally, it unregisters them from the hosting UIArea.
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 |