JcrThumbnailContainer
, this container
should be avoided as it loads the items eagerly.public class ThumbnailContainer extends com.vaadin.v7.data.util.AbstractInMemoryContainer<Object,Object,ThumbnailContainer.ThumbnailItem> implements Refreshable, ThumbnailContainer
Modifier and Type | Class and Description |
---|---|
static interface |
ThumbnailContainer.IdProvider
Deprecated.
Provides a list of thumbnail item ids.
|
class |
ThumbnailContainer.ThumbnailContainerProperty
Deprecated.
ThumbnailContainer property.
|
class |
ThumbnailContainer.ThumbnailItem
Deprecated.
Thumbnail Item.
|
com.vaadin.v7.data.util.AbstractInMemoryContainer.BaseItemAddEvent, com.vaadin.v7.data.util.AbstractInMemoryContainer.BaseItemRemoveEvent
com.vaadin.v7.data.util.AbstractContainer.BaseItemSetChangeEvent, com.vaadin.v7.data.util.AbstractContainer.BasePropertySetChangeEvent
com.vaadin.v7.data.Container.Indexed.ItemAddEvent, com.vaadin.v7.data.Container.Indexed.ItemRemoveEvent
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
Modifier and Type | Field and Description |
---|---|
static String |
THUMBNAIL_PROPERTY_ID
Deprecated.
|
Constructor and Description |
---|
ThumbnailContainer(ImageProvider imageProvider,
ThumbnailContainer.IdProvider idProvider)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addContainerProperty(Object propertyId,
Class<?> type,
Object defaultValue)
Deprecated.
|
Object |
addItem()
Deprecated.
|
com.vaadin.v7.data.Item |
addItem(Object itemId)
Deprecated.
|
protected List<?> |
getAllIdentifiers()
Deprecated.
|
com.vaadin.v7.data.Property |
getCaptionProperty(Object itemId)
Deprecated.
|
ThumbnailContainer.ThumbnailContainerProperty |
getContainerProperty(Object itemId,
Object propertyId)
Deprecated.
|
Collection<String> |
getContainerPropertyIds()
Deprecated.
|
ImageProvider |
getImageProvider()
Deprecated.
|
int |
getThumbnailHeight()
Deprecated.
|
com.vaadin.v7.data.Property |
getThumbnailProperty(Object itemId)
Deprecated.
|
Object |
getThumbnailPropertyId()
Deprecated.
|
int |
getThumbnailWidth()
Deprecated.
|
Class<?> |
getType(Object propertyId)
Deprecated.
|
protected ThumbnailContainer.ThumbnailItem |
getUnfilteredItem(Object itemId)
Deprecated.
|
void |
refresh()
Deprecated.
|
boolean |
removeAllItems()
Deprecated.
|
boolean |
removeContainerProperty(Object propertyId)
Deprecated.
|
boolean |
removeItem(Object itemId)
Deprecated.
|
void |
setThumbnailHeight(int thumbnailHeight)
Deprecated.
|
void |
setThumbnailWidth(int thumbnailWidth)
Deprecated.
|
addFilter, addItemAfter, addItemAfter, addItemAt, addItemAt, addItemSetChangeListener, addListener, containsId, doFilterContainer, doSort, filterAll, fireItemAdded, fireItemRemoved, fireItemsAdded, fireItemsRemoved, firstItemId, getAllItemIds, getContainerFilters, getFilteredItemIds, getFilters, getFirstVisibleItem, getIdByIndex, getItem, getItemIds, getItemIds, getItemSorter, getSortablePropertyIds, getVisibleItemIds, hasContainerFilters, indexOfId, internalAddItemAfter, internalAddItemAt, internalAddItemAtEnd, internalRemoveAllItems, internalRemoveItem, isFiltered, isFirstId, isLastId, isPropertyFiltered, lastItemId, nextItemId, passesFilters, prevItemId, registerNewItem, removeAllFilters, removeFilter, removeFilters, removeItemSetChangeListener, removeListener, setAllItemIds, setFilteredItemIds, setFilters, setItemSorter, size, sortContainer
addListener, addPropertySetChangeListener, fireContainerPropertySetChange, fireContainerPropertySetChange, fireItemSetChange, fireItemSetChange, getItemSetChangeListeners, getListeners, getPropertySetChangeListeners, removeListener, removePropertySetChangeListener, setItemSetChangeListeners, setPropertySetChangeListeners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addItemAt, addItemAt, getIdByIndex, getItemIds, indexOfId
public static final String THUMBNAIL_PROPERTY_ID
public ThumbnailContainer(ImageProvider imageProvider, ThumbnailContainer.IdProvider idProvider)
public Collection<String> getContainerPropertyIds()
getContainerPropertyIds
in interface com.vaadin.v7.data.Container
public ThumbnailContainer.ThumbnailContainerProperty getContainerProperty(Object itemId, Object propertyId)
getContainerProperty
in interface com.vaadin.v7.data.Container
public Class<?> getType(Object propertyId)
getType
in interface com.vaadin.v7.data.Container
protected List<?> getAllIdentifiers()
initialPath
. This method is called in ThumbnailViewImpl.refresh()
. You can override it, if
you need a different strategy than the default one to fetch the
identifiers of the nodes for which thumbnails need to be
displayed.LazyLayout.refresh()
public void refresh()
refresh
in interface Refreshable
public boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue)
addContainerProperty
in interface com.vaadin.v7.data.Container
addContainerProperty
in class com.vaadin.v7.data.util.AbstractInMemoryContainer<Object,Object,ThumbnailContainer.ThumbnailItem>
public com.vaadin.v7.data.Item addItem(Object itemId) throws UnsupportedOperationException
addItem
in interface com.vaadin.v7.data.Container
addItem
in class com.vaadin.v7.data.util.AbstractInMemoryContainer<Object,Object,ThumbnailContainer.ThumbnailItem>
UnsupportedOperationException
public Object addItem() throws UnsupportedOperationException
addItem
in interface com.vaadin.v7.data.Container
addItem
in class com.vaadin.v7.data.util.AbstractInMemoryContainer<Object,Object,ThumbnailContainer.ThumbnailItem>
UnsupportedOperationException
public boolean removeItem(Object itemId) throws UnsupportedOperationException
removeItem
in interface com.vaadin.v7.data.Container
removeItem
in class com.vaadin.v7.data.util.AbstractInMemoryContainer<Object,Object,ThumbnailContainer.ThumbnailItem>
UnsupportedOperationException
public boolean removeAllItems() throws UnsupportedOperationException
removeAllItems
in interface com.vaadin.v7.data.Container
removeAllItems
in class com.vaadin.v7.data.util.AbstractInMemoryContainer<Object,Object,ThumbnailContainer.ThumbnailItem>
UnsupportedOperationException
public boolean removeContainerProperty(Object propertyId) throws UnsupportedOperationException
removeContainerProperty
in interface com.vaadin.v7.data.Container
removeContainerProperty
in class com.vaadin.v7.data.util.AbstractInMemoryContainer<Object,Object,ThumbnailContainer.ThumbnailItem>
UnsupportedOperationException
protected ThumbnailContainer.ThumbnailItem getUnfilteredItem(Object itemId)
getUnfilteredItem
in class com.vaadin.v7.data.util.AbstractInMemoryContainer<Object,Object,ThumbnailContainer.ThumbnailItem>
public ImageProvider getImageProvider()
public void setThumbnailHeight(int thumbnailHeight)
public void setThumbnailWidth(int thumbnailWidth)
public int getThumbnailHeight()
public int getThumbnailWidth()
public Object getThumbnailPropertyId()
getThumbnailPropertyId
in interface ThumbnailContainer
public com.vaadin.v7.data.Property getThumbnailProperty(Object itemId)
getThumbnailProperty
in interface ThumbnailContainer
public com.vaadin.v7.data.Property getCaptionProperty(Object itemId)
getCaptionProperty
in interface ThumbnailContainer
Copyright © 2020 Magnolia International Ltd.. All rights reserved.