sap.ui.table.AnalyticalTable.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.table.AnalyticalTable 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.table.Table.extend.
Parameters:
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
Returns:
{function} | Created class / constructor function |
Returns a metadata object for class sap.ui.table.AnalyticalTable.
Returns:
Marks a range of tree nodes as selected, starting with iFromIndex going to iToIndex. The TreeNodes are referenced via their absolute row index. Please be aware, that the absolute row index only applies to the the tree which is visualized by the TreeTable. Invisible nodes (collapsed child nodes) will not be regarded.
Please also take notice of the fact, that "addSelectionInterval" does not change any other selection. To override the current selection, please use "setSelctionInterval" or for a single entry use "setSelectedIndex".
Parameters:
{int} | iFromIndex | The starting index of the range which will be selected. |
{int} | iToIndex | The starting index of the range which will be selected. |
Returns:
Clears the complete selection (all tree table rows/nodes will lose their selection)
Returns:
Collapses all nodes (and lower if collapseRecursive is activated)
Returns:
getAutoExpandMode(): string
Gets current value of property
autoExpandMode
.
The kind of auto expansion algorithm, e.g. optimised filter conditions, per level requests, ... sap.ui.table.TreeAutoExpandMode
Default value is Bundled
.
Returns:
{string} | Value of property autoExpandMode |
getCollapseRecursive(): boolean
Gets current value of property
collapseRecursive
.
Setting collapseRecursive to true means, that when collapsing a node all subsequent child nodes will also be collapsed.
Default value is true
.
Returns:
{boolean} | Value of property collapseRecursive |
getColumnVisibilityMenuSorter(): any
Gets current value of property
columnVisibilityMenuSorter
.
Functions which is used to sort the column visibility menu entries e.g.: function(ColumnA, ColumnB) { return 0 = equals, <0 lower, >0 greater }; Other values than functions will be ignored.
Returns:
{any} | Value of property columnVisibilityMenuSorter |
getContextByIndex(iIndex): object
Returns the context of a row by its index.
Parameters:
{int} | iIndex | Index of the row to return the context from. |
Returns:
getNumberOfExpandedLevels(): int
Gets current value of property
numberOfExpandedLevels
.
Number of levels, which should be opened initially (on first load of data).
Default value is 0
.
Returns:
{int} | Value of property numberOfExpandedLevels |
getSelectedIndex(): int[]
Retrieves the lead selection index. The lead selection index is, among other things, used to determine the start/end of a selection range, when using Shift-Click to select multiple entries at once.
Returns:
{int[]} | an array containing all selected indices (ascending ordered integers) |
getSelectedIndices(): int[]
Returns an array containing the row indices of all selected tree nodes (ordered ascending).
Please be aware of the following: Due to performance/network traffic reasons, the getSelectedIndices function returns only all indices of actually selected rows/tree nodes. Unknown rows/nodes (as in "not yet loaded" to the client), will not be returned.
Returns:
{int[]} | an array containing all selected indices |
getSumOnTop(): boolean
Gets current value of property
sumOnTop
.
Specifies if the total values should be displayed in the group headers or on bottom of the row. Does not affact the total sum.
Default value is false
.
Returns:
{boolean} | Value of property sumOnTop |
getTotalSize(): int
Returns the total size of the data entries.
Returns:
isIndexSelected(iRowIndex): boolean
Checks if the row at the given index is selected.
Parameters:
{int} | iRowIndex | The row index for which the selection state should be retrieved |
Returns:
{boolean} | true if the index is selected, false otherwise |
All rows/tree nodes inside the range (including boundaries) will be deselected. Tree nodes are referenced with theit absolute row index inside the tree- Please be aware, that the absolute row index only applies to the the tree which is visualized by the TreeTable. Invisible nodes (collapsed child nodes) will not be regarded.
Parameters:
{int} | iFromIndex | The starting index of the range which will be deselected. |
{int} | iToIndex | The starting index of the range which will be deselected. |
Returns:
resumeUpdateAnalyticalInfo(bSuppressRefresh, bForceChange)
This function is used by some composite controls to force updating the AnalyticalInfo
Parameters:
{boolean} | bSuppressRefresh | binding shall not refresh data |
{boolean} | bForceChange | forces the binding to fire a change event |
Selects all available nodes/rows.
Explanation of the SelectAll function and what to expect from its behavior: All rows/tree nodes locally stored on the client are selected. In addition all subsequent rows/tree nodes, which will be paged into view are also immediatly selected. However, due to obvious performance/network traffic reasons, the SelectAll function will NOT retrieve any data from the backend.
Returns:
Sets a new value for property
autoExpandMode
.
The kind of auto expansion algorithm, e.g. optimised filter conditions, per level requests, ... sap.ui.table.TreeAutoExpandMode
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Bundled
.
Parameters:
{string} | sAutoExpandMode | New value for property autoExpandMode |
Returns:
Sets a new value for property
columnVisibilityMenuSorter
.
Functions which is used to sort the column visibility menu entries e.g.: function(ColumnA, ColumnB) { return 0 = equals, <0 lower, >0 greater }; Other values than functions will be ignored.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{any} | oColumnVisibilityMenuSorter | New value for property columnVisibilityMenuSorter |
Returns:
Sets a new value for property
numberOfExpandedLevels
.
Number of levels, which should be opened initially (on first load of data).
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 0
.
Parameters:
{int} | iNumberOfExpandedLevels | New value for property numberOfExpandedLevels |
Returns:
Overriden from Table.js base class. In a TreeTable you can only select indices, which correspond to the currently visualized tree. Invisible tree nodes (e.g. collapsed child nodes) can not be selected via Index, because they do not correspond to a TreeTable row.
Parameters:
{int} | iRowIndex | The row index which will be selected (if existing) |
Returns:
Sets the selection behavior. Since the AnalyticalTable relies on the RowSelector for rendering the group headers the SelectionBehavior "RowOnly" is not supported and must not be used.
Parameters:
{string} | sBehavior | the selection behavior, see sap.ui.table.SelectionBehavior |
Returns:
Sets the selection of the TreeTable to the given range (including boundaries). Beware: The previous selection will be lost/overriden. If this is not wanted, please use "addSelectionInterval" and "removeSelectionIntervall".
Parameters:
{int} | iFromIndex | the start index of the selection range |
{int} | iToIndex | the end index of the selection range |
Returns:
Sets the selection mode, the current selection is lost. Since the AnalyticalTable relies on the RowSelector for rendering the group headers the SelectionMode "None" is not supported and must not be used.
Parameters:
{string} | sSelectionMode | the selection mode, see sap.ui.table.SelectionMode |
Returns:
Sets a new value for property
sumOnTop
.
Specifies if the total values should be displayed in the group headers or on bottom of the row. Does not affact the total sum.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bSumOnTop | New value for property sumOnTop |
Returns:
suspendUpdateAnalyticalInfo()
This function is used by some composite controls to avoid updating the AnalyticalInfo when several column are added to the table. In order to finally update the AnalyticalInfo and request data, resumeUpdateAnalyticalInfo must be called.
getDirty(): boolean
Gets current value of property
dirty
.
If dirty the content of the Table will be overlayed.
- Deprecated:
- Since version 1.21.2. Please use setShowOverlay instead.
Returns:
{boolean} | Value of property dirty |
Sets a new value for property
dirty
.
If dirty the content of the Table will be overlayed.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{boolean} | bDirty | New value for property dirty |
- Deprecated:
- Since version 1.21.2. Please use setShowOverlay instead.
Returns: