Package io.jmix.ui.component.table
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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.v7.data.Container
com.vaadin.v7.data.Container.Editor, com.vaadin.v7.data.Container.Filter, com.vaadin.v7.data.Container.Filterable, com.vaadin.v7.data.Container.Hierarchical, com.vaadin.v7.data.Container.Indexed, com.vaadin.v7.data.Container.ItemSetChangeEvent, com.vaadin.v7.data.Container.ItemSetChangeListener, com.vaadin.v7.data.Container.ItemSetChangeNotifier, com.vaadin.v7.data.Container.Ordered, com.vaadin.v7.data.Container.PropertySetChangeEvent, com.vaadin.v7.data.Container.PropertySetChangeListener, com.vaadin.v7.data.Container.PropertySetChangeNotifier, com.vaadin.v7.data.Container.SimpleFilterable, com.vaadin.v7.data.Container.Sortable, com.vaadin.v7.data.Container.Viewer
-
Field Summary
Fields inherited from class io.jmix.ui.component.table.TableDataContainer
dataEventsDelegate, ignoreListeners, itemsCache, itemSetChangeListeners, itemSetChangeSubscription, properties, propertyValueChangeListeners, selectedItemChangeSubscription, stateChangeSubscription, tableItems, valueChangeSubscription, VOID_VALUE_CHANGE_EVENT, wrappersPool
-
Constructor Summary
ConstructorDescriptionSortableDataContainer
(TableItems.Sortable<I> tableDataSource, TableItemsEventsDelegate<I> dataEventsDelegate) -
Method Summary
Modifier and TypeMethodDescriptionaddItemAfter
(Object previousItemId) com.vaadin.v7.data.Item
addItemAfter
(Object previousItemId, Object newItemId) Collection<?>
protected TableItems.Sortable
boolean
boolean
nextItemId
(Object itemId) prevItemId
(Object itemId) void
void
Methods inherited from class io.jmix.ui.component.table.TableDataContainer
addContainerProperty, addItem, addItem, addItemSetChangeListener, addListener, addValueChangeListener, beforeFireItemSetChanged, beforeFireStateChanged, borrowItemWrapper, containsId, datasourceItemSetChanged, datasourceSelectedItemChanged, datasourceStateChanged, datasourceValueChanged, fireItemSetChanged, getContainerProperty, getContainerPropertyIds, getInternalItem, getItem, getItemIds, getItemWrapper, getItemWrapperNonCached, getTableItems, getType, removeAllItems, removeContainerProperty, removeItem, removeItemSetChangeListener, removeListener, resetCachedItems, returnItemWrapper, setProperties, size, unbind
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.v7.data.Container
addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeContainerProperty, removeItem, size
-
Constructor Details
-
SortableDataContainer
public SortableDataContainer(TableItems.Sortable<I> tableDataSource, TableItemsEventsDelegate<I> dataEventsDelegate)
-
-
Method Details
-
sort
- Specified by:
sort
in interfacecom.vaadin.v7.data.Container.Sortable
-
getSortableTableSource
-
getSortableContainerPropertyIds
- Specified by:
getSortableContainerPropertyIds
in interfacecom.vaadin.v7.data.Container.Sortable
-
nextItemId
- Specified by:
nextItemId
in interfacecom.vaadin.v7.data.Container.Ordered
-
prevItemId
- Specified by:
prevItemId
in interfacecom.vaadin.v7.data.Container.Ordered
-
firstItemId
- Specified by:
firstItemId
in interfacecom.vaadin.v7.data.Container.Ordered
-
lastItemId
- Specified by:
lastItemId
in interfacecom.vaadin.v7.data.Container.Ordered
-
isFirstId
- Specified by:
isFirstId
in interfacecom.vaadin.v7.data.Container.Ordered
-
isLastId
- Specified by:
isLastId
in interfacecom.vaadin.v7.data.Container.Ordered
-
addItemAfter
- Specified by:
addItemAfter
in interfacecom.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 interfacecom.vaadin.v7.data.Container.Ordered
- Throws:
UnsupportedOperationException
-
resetSortOrder
public void resetSortOrder()- Specified by:
resetSortOrder
in interfaceTableSortableContainer
-