| Package | Description |
|---|---|
| com.vaadin.data |
Contains interfaces for the data layer, mainly for binding typed
data and data collections to components, and for validating data.
|
| com.vaadin.data.fieldgroup | |
| com.vaadin.data.util |
Provides implementations of Property, Item and Container
interfaces, and utilities for the data layer.
|
| com.vaadin.data.util.filter | |
| com.vaadin.data.util.sqlcontainer | |
| com.vaadin.event | |
| com.vaadin.server.communication.data | |
| com.vaadin.ui |
| Modifier and Type | Method and Description |
|---|---|
Item |
Container.addItem(Object itemId)
Creates a new Item with the given ID in the Container.
|
Item |
Container.Ordered.addItemAfter(Object previousItemId,
Object newItemId)
Adds a new item after the given item.
|
Item |
Container.Indexed.addItemAt(int index,
Object newItemId)
Adds a new item at given index (in the filtered view).
|
Item |
Item.PropertySetChangeEvent.getItem()
Retrieves the Item whose contents has been modified.
|
Item |
Container.getItem(Object itemId)
Gets the
Item with the given Item ID from the Container. |
Item |
Item.Viewer.getItemDataSource()
Gets the Item serving as the data source of the viewer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Container.Filter.passesFilter(Object itemId,
Item item)
Check if an item passes the filter (in-memory filtering).
|
void |
Item.Viewer.setItemDataSource(Item newDataSource)
Sets the Item that serves as the data source of the viewer.
|
| Modifier and Type | Method and Description |
|---|---|
Item |
FieldGroup.getItemDataSource()
Gets the item used by this FieldBinder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FieldGroup.setItemDataSource(Item itemDataSource)
Updates the item that is used by this FieldBinder.
|
void |
BeanFieldGroup.setItemDataSource(Item item) |
| Constructor and Description |
|---|
FieldGroup(Item itemDataSource)
Constructs a field binder that uses the given data source.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractInMemoryContainer<ITEMIDTYPE,PROPERTYIDCLASS,ITEMCLASS extends Item>
Abstract
Container class that handles common functionality for
in-memory containers. |
| Modifier and Type | Class and Description |
|---|---|
class |
BeanItem<BT>
A wrapper class for adding the Item interface to any Java Bean.
|
class |
FilesystemContainer.FileItem
A Item wrapper for files in a filesystem.
|
class |
GeneratedPropertyContainer.GeneratedPropertyItem
Item implementation for generated properties, used to wrap the Item that
belongs to the wrapped container.
|
class |
PropertysetItem
Class for handling a set of identified Properties.
|
| Modifier and Type | Method and Description |
|---|---|
Item |
IndexedContainer.addItem(Object itemId) |
Item |
HierarchicalContainer.addItem(Object itemId) |
Item |
GeneratedPropertyContainer.addItem(Object itemId) |
Item |
FilesystemContainer.addItem(Object itemId) |
Item |
ContainerOrderedWrapper.addItem(Object itemId)
Registers a new Item by its ID to the underlying container and to the
ordering.
|
Item |
ContainerHierarchicalWrapper.addItem(Object itemId)
Adds a new Item by its ID to the underlying container and to the
hierarchy.
|
Item |
AbstractInMemoryContainer.addItem(Object itemId) |
Item |
IndexedContainer.addItemAfter(Object previousItemId,
Object newItemId) |
Item |
GeneratedPropertyContainer.addItemAfter(Object previousItemId,
Object newItemId) |
Item |
ContainerOrderedWrapper.addItemAfter(Object previousItemId,
Object newItemId) |
Item |
AbstractInMemoryContainer.addItemAfter(Object previousItemId,
Object newItemId) |
Item |
IndexedContainer.addItemAt(int index,
Object newItemId) |
Item |
GeneratedPropertyContainer.addItemAt(int index,
Object newItemId) |
Item |
AbstractInMemoryContainer.addItemAt(int index,
Object newItemId) |
Item |
GeneratedPropertyContainer.getItem(Object itemId) |
Item |
FilesystemContainer.getItem(Object itemId) |
Item |
ContainerOrderedWrapper.getItem(Object itemId) |
Item |
ContainerHierarchicalWrapper.getItem(Object itemId) |
protected Item |
IndexedContainer.getUnfilteredItem(Object itemId) |
Item |
GeneratedPropertyContainer.GeneratedPropertyItem.getWrappedItem()
Returns the wrapped Item that belongs to the wrapped container
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
DefaultItemSorter.compareProperty(Object propertyId,
boolean sortDirection,
Item item1,
Item item2)
Compares the property indicated by
propertyId in the items
indicated by item1 and item2 for order. |
protected void |
IndexedContainer.fireItemAdded(int position,
Object itemId,
Item item) |
abstract T |
PropertyValueGenerator.getValue(Item item,
Object itemId,
Object propertyId)
Returns value for given Item.
|
protected void |
IndexedContainer.registerNewItem(int index,
Object newItemId,
Item item) |
| Constructor and Description |
|---|
GeneratedProperty(Item item,
Object propertyId,
Object itemId,
PropertyValueGenerator<T> generator) |
GeneratedPropertyItem(Object itemId,
Item item) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
SimpleStringFilter.passesFilter(Object itemId,
Item item) |
boolean |
Or.passesFilter(Object itemId,
Item item) |
boolean |
Not.passesFilter(Object itemId,
Item item) |
boolean |
Like.passesFilter(Object itemId,
Item item) |
boolean |
IsNull.passesFilter(Object itemId,
Item item) |
boolean |
Compare.passesFilter(Object itemId,
Item item) |
boolean |
Between.passesFilter(Object itemId,
Item item) |
boolean |
And.passesFilter(Object itemId,
Item item) |
| Modifier and Type | Class and Description |
|---|---|
class |
RowItem
RowItem represents one row of a result set obtained from a QueryDelegate.
|
| Modifier and Type | Method and Description |
|---|---|
Item |
SQLContainer.addItem(Object itemId) |
Item |
SQLContainer.addItemAfter(Object previousItemId,
Object newItemId) |
Item |
SQLContainer.addItemAt(int index,
Object newItemId) |
Item |
SQLContainer.getItem(Object itemId) |
Item |
SQLContainer.getItemUnfiltered(Object itemId)
Bypasses in-memory filtering to return items that are cached in memory.
|
Item |
SQLContainer.getReferencedItem(Object itemId,
SQLContainer refdCont)
Fetches the referenced item from the target SQLContainer.
|
| Modifier and Type | Method and Description |
|---|---|
Item |
ItemClickEvent.getItem()
Gets the item on which the click event occurred.
|
| Constructor and Description |
|---|
ItemClickEvent(Component source,
Item item,
Object itemId,
Object propertyId,
MouseEventDetails details) |
| Modifier and Type | Method and Description |
|---|---|
void |
DataGenerator.generateData(Object itemId,
Item item,
elemental.json.JsonObject rowData)
Adds data to row object for given item and item id being sent to client.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Form
Deprecated.
As of 7.0, use
FieldGroup instead of Form for
more flexibility. |
| Modifier and Type | Method and Description |
|---|---|
Item |
TreeTable.addItem(Object itemId)
Create a new item into container.
|
Item |
AbstractSelect.addItem(Object itemId)
Create a new item into container.
|
Item |
TreeTable.addItemAfter(Object previousItemId,
Object newItemId)
Adds new item after the given item.
|
Item |
Table.addItemAfter(Object previousItemId,
Object newItemId)
Adds new item after the given item.
|
Item |
Grid.RowReference.getItem()
Gets the item for the row.
|
Item |
Grid.CellReference.getItem()
Gets the item for the row of the cell.
|
Item |
AbstractSelect.getItem(Object itemId)
Gets the item from the container with given id.
|
Item |
Form.getItemDataSource()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Field<?> |
FormFieldFactory.createField(Item item,
Object propertyId,
Component uiContext)
Deprecated.
Creates a field based on the item, property id and the component (most
commonly
Form) where the Field will be presented. |
Field<?> |
DefaultFieldFactory.createField(Item item,
Object propertyId,
Component uiContext) |
void |
Grid.DetailComponentManager.generateData(Object itemId,
Item item,
elemental.json.JsonObject rowData) |
void |
Grid.AbstractSelectionModel.generateData(Object itemId,
Item item,
elemental.json.JsonObject rowData) |
void |
Form.setItemDataSource(Item newDataSource)
Deprecated.
Sets the item datasource for the form.
|
void |
Form.setItemDataSource(Item newDataSource,
Collection<?> propertyIds)
Deprecated.
Set the item datasource for the form, but limit the form contents to
specified properties of the item.
|
Copyright © 2022 Vaadin Ltd. All rights reserved.