public class JcrThumbnailContainer extends FlatJcrContainer implements Refreshable, PagingThumbnailContainer
ThumbnailContainer
delegating to a FlatJcrContainer
.Modifier and Type | Class and Description |
---|---|
class |
JcrThumbnailContainer.ThumbnailCaptionProperty
ThumbnailContainer property that builds a caption based on the filename and extension.
|
class |
JcrThumbnailContainer.ThumbnailContainerProperty
ThumbnailContainer property.
|
AbstractContainer.ItemSetChangeEvent, AbstractContainer.PropertySetChangeEvent
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 |
ASCENDING_KEYWORD, DEFAULT_CACHE_RATIO, DEFAULT_NODE_TYPE, DEFAULT_PAGE_LENGTH, DESCENDING_KEYWORD, JCR_NAME_FUNCTION, ORDER_BY, PROPERTY_NAME_AND_UUID_SEPARATOR, SELECT_TEMPLATE, SELECTOR_NAME, sorters, WHERE_TEMPLATE_FOR_PATH
Constructor and Description |
---|
JcrThumbnailContainer(ImageProvider imageProvider,
JcrContentConnectorDefinition definition) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsId(Object itemId) |
com.vaadin.v7.data.Property |
getCaptionProperty(Object itemId) |
com.vaadin.v7.data.Property |
getContainerProperty(Object itemId,
Object propertyId) |
Collection<?> |
getContainerPropertyIds() |
protected String |
getQueryWhereClauseNodeTypes() |
com.vaadin.v7.data.Property |
getThumbnailProperty(Object itemId) |
Object |
getThumbnailPropertyId() |
Class<?> |
getType(Object propertyId) |
int |
indexOfId(Object itemId)
*****************************************
|
void |
setPageSize(int pageSize) |
addItem, addItem, addItemAfter, addItemAfter, addItemAt, addItemAt, addItemSetChangeListener, addListener, addSortableProperty, clearItemIndexes, constructJCRQuery, ensureItemIndices, executeQuery, findSearchableNodeTypes, fireItemSetChange, fireItemSetChange, firstItemId, getCacheRatio, getConfiguration, getCurrentOffset, getDefaultOrderBy, getIdByIndex, getItem, getItemIds, getItemIds, getItemIndexes, getJcrItem, getJcrNameOrderByFunction, getMainNodeType, getPage, getPageLength, getQuerySelectStatement, getQueryWhereClause, getQueryWhereClauseWorkspacePath, getSearchableNodeTypes, getSortableContainerPropertyIds, getWorkspace, handleRepositoryException, isFirstId, isLastId, lastItemId, nextItemId, prevItemId, refresh, removeAllItems, removeItem, removeItemSetChangeListener, removeListener, resetOffset, setCacheRatio, setPageLength, setSize, size, sort, updateSize
addContainerProperty, removeContainerProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
refresh
addItemAt, addItemAt, getIdByIndex, getItemIds
public static final String THUMBNAIL_PROPERTY_ID
public JcrThumbnailContainer(ImageProvider imageProvider, JcrContentConnectorDefinition definition)
protected String getQueryWhereClauseNodeTypes()
getQueryWhereClauseNodeTypes
in class AbstractJcrContainer
hideInList
property is true or the node is of type mgnl:folder
(custom implementations of this method may still decide to display folders). Assuming a node types declaration like the following
... + workbench + nodeTypes + foo * name = nt:foo + bar * name = nt:bar * hideInList = true + baz (a mixin type) * name = nt:baz ...this method will return the following string
[jcr:primaryType] = 'nt:foo' or [jcr:mixinTypes] = 'baz'
. This will eventually be used to restrict the node types to be displayed in list views and searched for
in search views, i.e. select * from [nt:base] where ([jcr:primaryType] = 'nt:foo' or [jcr:mixinTypes] = 'baz')
.AbstractJcrContainer.findSearchableNodeTypes()
public int indexOfId(Object itemId)
AbstractJcrContainer
indexOfId
in interface com.vaadin.v7.data.Container.Indexed
indexOfId
in class AbstractJcrContainer
public boolean containsId(Object itemId)
containsId
in interface com.vaadin.v7.data.Container
containsId
in class AbstractJcrContainer
public Collection<?> getContainerPropertyIds()
getContainerPropertyIds
in interface com.vaadin.v7.data.Container
getContainerPropertyIds
in class AbstractContainer
public com.vaadin.v7.data.Property getContainerProperty(Object itemId, Object propertyId)
getContainerProperty
in interface com.vaadin.v7.data.Container
getContainerProperty
in class AbstractJcrContainer
public Class<?> getType(Object propertyId)
getType
in interface com.vaadin.v7.data.Container
getType
in class AbstractContainer
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
public void setPageSize(int pageSize)
setPageSize
in interface PagingThumbnailContainer
Copyright © 2020 Magnolia International Ltd.. All rights reserved.