Class SortableDataContainer<I>

java.lang.Object
io.jmix.ui.component.table.TableDataContainer<I>
io.jmix.ui.component.table.SortableDataContainer<I>
All Implemented Interfaces:
com.vaadin.v7.data.Container, com.vaadin.v7.data.Container.ItemSetChangeNotifier, com.vaadin.v7.data.Container.Ordered, com.vaadin.v7.data.Container.Sortable, TableSortableContainer, Serializable
Direct Known Subclasses:
AbstractTable.AggregatableSortableDataContainer, GroupTableDataContainer, TreeTableDataContainer

public class SortableDataContainer<I> extends TableDataContainer<I> implements com.vaadin.v7.data.Container.Sortable, TableSortableContainer
See Also:
  • Constructor Details

  • Method Details

    • sort

      public void sort(Object[] propertyId, boolean[] ascending)
      Specified by:
      sort in interface com.vaadin.v7.data.Container.Sortable
    • getSortableTableSource

      protected TableItems.Sortable getSortableTableSource()
    • getSortableContainerPropertyIds

      public Collection<?> getSortableContainerPropertyIds()
      Specified by:
      getSortableContainerPropertyIds in interface com.vaadin.v7.data.Container.Sortable
    • nextItemId

      @Nullable public Object nextItemId(@Nullable Object itemId)
      Specified by:
      nextItemId in interface com.vaadin.v7.data.Container.Ordered
    • prevItemId

      @Nullable public Object prevItemId(@Nullable Object itemId)
      Specified by:
      prevItemId in interface com.vaadin.v7.data.Container.Ordered
    • firstItemId

      @Nullable public Object firstItemId()
      Specified by:
      firstItemId in interface com.vaadin.v7.data.Container.Ordered
    • lastItemId

      @Nullable public Object lastItemId()
      Specified by:
      lastItemId in interface com.vaadin.v7.data.Container.Ordered
    • isFirstId

      public boolean isFirstId(@Nullable Object itemId)
      Specified by:
      isFirstId in interface com.vaadin.v7.data.Container.Ordered
    • isLastId

      public boolean isLastId(@Nullable Object itemId)
      Specified by:
      isLastId in interface com.vaadin.v7.data.Container.Ordered
    • addItemAfter

      public Object addItemAfter(Object previousItemId) throws UnsupportedOperationException
      Specified by:
      addItemAfter in interface com.vaadin.v7.data.Container.Ordered
      Throws:
      UnsupportedOperationException
    • addItemAfter

      public com.vaadin.v7.data.Item addItemAfter(Object previousItemId, Object newItemId) throws UnsupportedOperationException
      Specified by:
      addItemAfter in interface com.vaadin.v7.data.Container.Ordered
      Throws:
      UnsupportedOperationException
    • resetSortOrder

      public void resetSortOrder()
      Specified by:
      resetSortOrder in interface TableSortableContainer