Interface UiAbstractDataTable<R>

    • Method Detail

      • getColumnCount

        int getColumnCount()
        Returns:
        the number of columns of this data widget.
        See Also:
        List.size()
      • createColumn

        <V> UiColumn<R,​V> createColumn​(io.github.mmm.value.TypedPropertyPath<V> property)
        Type Parameters:
        V - type of the cell values of the UiColumn.
        Parameters:
        property - the property of the row data.
        Returns:
        the new UiColumn.
        Throws:
        RuntimeException - if the given property does not belong to the data model of this data widget.
      • getColumn

        UiColumn<R,​?> getColumn​(int index)
        Parameters:
        index - is the index of the requested UiColumn. The index corresponds to the index when the UiColumn has been added. Reordering or hiding columns in the UI has no effect on the index. The value has to be in the range from 0 to getColumnCount() - 1.
        Returns:
        the requested column.
        See Also:
        List.get(int)
      • addColumn

        default void addColumn​(UiColumn<R,​?> column)
        Parameters:
        column - the UiColumn to add. Has to be created by this data widget.
      • addColumn

        void addColumn​(UiColumn<R,​?> column,
                       int index)
        Parameters:
        column - the UiColumn to add. Has to be created by this data widget.
        index - the index where to add the new column.
      • addColumn

        default <V> UiColumn<R,​V> addColumn​(io.github.mmm.value.TypedPropertyPath<V> property)
        Type Parameters:
        V - type of the cell values of the UiColumn.
        Parameters:
        property - the property of the row data.
        index - the index where to add the new column.
        Returns:
        the new UiColumn.
        Throws:
        RuntimeException - if the given property does not belong to the data model of this data widget.
      • addColumn

        default <V> UiColumn<R,​V> addColumn​(io.github.mmm.value.TypedPropertyPath<V> property,
                                                  int index)
        Type Parameters:
        V - type of the cell values of the UiColumn.
        Parameters:
        property - the property of the row data.
        index - the index where to add the new column.
        Returns:
        the new UiColumn.
        Throws:
        RuntimeException - if the given property does not belong to the data model of this data widget.
      • addColumns

        default void addColumns​(UiColumn<R,​?>... columns)
        Parameters:
        columns - the UiColumns to add. Have to be created by this data widget.
      • sort

        void sort​(io.github.mmm.base.sort.SortOrder order,
                  UiColumn<R,​?>... columns)
        This method sorts the data with the given SortOrder according to the specified UiColumns. The sort priority is from the first UiColumn (primary sort) to the last (least significant sort). In case all values of the first column are unique additional columns will have no effect on sorting.
        Parameters:
        order - is the SortOrder.
        columns - are the columns of this data-list to sort by.