public class CacheBrowserContainer
extends info.magnolia.ui.workbench.container.AbstractContainer
implements com.vaadin.v7.data.Container.Indexed, com.vaadin.v7.data.Container.ItemSetChangeNotifier, com.vaadin.v7.data.Container.Sortable, info.magnolia.ui.workbench.container.Refreshable
info.magnolia.ui.workbench.container.AbstractContainer.ItemSetChangeEvent, info.magnolia.ui.workbench.container.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 int |
DEFAULT_CACHE_RATIO |
static int |
DEFAULT_PAGE_LENGTH |
Constructor and Description |
---|
CacheBrowserContainer(CacheBrowserContentConnectorDefinition contentConnectorDefinition,
CacheServiceFactory cacheServiceFactory,
info.magnolia.event.EventBus eventBus) |
Modifier and Type | Method and Description |
---|---|
Object |
addItem() |
com.vaadin.v7.data.Item |
addItem(Object itemId) |
Object |
addItemAfter(Object previousItemId) |
com.vaadin.v7.data.Item |
addItemAfter(Object previousItemId,
Object newItemId) |
Object |
addItemAt(int index) |
com.vaadin.v7.data.Item |
addItemAt(int index,
Object newItemId) |
void |
addItemSetChangeListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener) |
void |
addListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener) |
boolean |
containsId(Object itemId) |
void |
fireItemSetChange() |
Object |
firstItemId() |
com.vaadin.v7.data.Property<?> |
getContainerProperty(Object itemId,
Object propertyId) |
Object |
getIdByIndex(int index) |
com.vaadin.v7.data.Item |
getItem(Object itemId) |
Collection<CacheKey> |
getItemIds() |
List<?> |
getItemIds(int startIndex,
int numberOfItems) |
Collection<String> |
getSortableContainerPropertyIds() |
int |
indexOfId(Object itemId) |
void |
initialize(String username,
String password) |
boolean |
isFirstId(Object itemId) |
boolean |
isLastId(Object itemId) |
Object |
lastItemId() |
Object |
nextItemId(Object itemId) |
Object |
prevItemId(Object itemId) |
void |
refresh() |
boolean |
removeAllItems() |
boolean |
removeItem(Object itemId) |
void |
removeItemSetChangeListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener) |
void |
removeListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener) |
int |
size() |
void |
sort(Object[] propertyId,
boolean[] ascending) |
addContainerProperty, getContainerPropertyIds, getType, removeContainerProperty
public static final int DEFAULT_PAGE_LENGTH
public static final int DEFAULT_CACHE_RATIO
public CacheBrowserContainer(CacheBrowserContentConnectorDefinition contentConnectorDefinition, CacheServiceFactory cacheServiceFactory, info.magnolia.event.EventBus eventBus)
public com.vaadin.v7.data.Item getItem(Object itemId)
getItem
in interface com.vaadin.v7.data.Container
public Collection<CacheKey> getItemIds()
getItemIds
in interface com.vaadin.v7.data.Container
public com.vaadin.v7.data.Property<?> getContainerProperty(Object itemId, Object propertyId)
getContainerProperty
in interface com.vaadin.v7.data.Container
public int size()
size
in interface com.vaadin.v7.data.Container
public boolean containsId(Object itemId)
containsId
in interface com.vaadin.v7.data.Container
public com.vaadin.v7.data.Item addItem(Object itemId) throws UnsupportedOperationException
addItem
in interface com.vaadin.v7.data.Container
UnsupportedOperationException
public Object addItem() throws UnsupportedOperationException
addItem
in interface com.vaadin.v7.data.Container
UnsupportedOperationException
public boolean removeItem(Object itemId) throws UnsupportedOperationException
removeItem
in interface com.vaadin.v7.data.Container
UnsupportedOperationException
public boolean removeAllItems() throws UnsupportedOperationException
removeAllItems
in interface com.vaadin.v7.data.Container
UnsupportedOperationException
public Object nextItemId(Object itemId)
nextItemId
in interface com.vaadin.v7.data.Container.Ordered
public Object prevItemId(Object itemId)
prevItemId
in interface com.vaadin.v7.data.Container.Ordered
public Object firstItemId()
firstItemId
in interface com.vaadin.v7.data.Container.Ordered
public Object lastItemId()
lastItemId
in interface com.vaadin.v7.data.Container.Ordered
public boolean isFirstId(Object itemId)
isFirstId
in interface com.vaadin.v7.data.Container.Ordered
public boolean isLastId(Object itemId)
isLastId
in interface com.vaadin.v7.data.Container.Ordered
public int indexOfId(Object itemId)
indexOfId
in interface com.vaadin.v7.data.Container.Indexed
public Object getIdByIndex(int index)
getIdByIndex
in interface com.vaadin.v7.data.Container.Indexed
public List<?> getItemIds(int startIndex, int numberOfItems)
getItemIds
in interface com.vaadin.v7.data.Container.Indexed
public Object addItemAt(int index) throws UnsupportedOperationException
addItemAt
in interface com.vaadin.v7.data.Container.Indexed
UnsupportedOperationException
public com.vaadin.v7.data.Item addItemAt(int index, Object newItemId) throws UnsupportedOperationException
addItemAt
in interface com.vaadin.v7.data.Container.Indexed
UnsupportedOperationException
public Object addItemAfter(Object previousItemId) throws UnsupportedOperationException
addItemAfter
in interface com.vaadin.v7.data.Container.Ordered
UnsupportedOperationException
public com.vaadin.v7.data.Item addItemAfter(Object previousItemId, Object newItemId) throws UnsupportedOperationException
addItemAfter
in interface com.vaadin.v7.data.Container.Ordered
UnsupportedOperationException
public void addItemSetChangeListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener)
addItemSetChangeListener
in interface com.vaadin.v7.data.Container.ItemSetChangeNotifier
public void addListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener)
addListener
in interface com.vaadin.v7.data.Container.ItemSetChangeNotifier
public void removeItemSetChangeListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener)
removeItemSetChangeListener
in interface com.vaadin.v7.data.Container.ItemSetChangeNotifier
public void removeListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener)
removeListener
in interface com.vaadin.v7.data.Container.ItemSetChangeNotifier
public void fireItemSetChange()
public void sort(Object[] propertyId, boolean[] ascending)
sort
in interface com.vaadin.v7.data.Container.Sortable
public Collection<String> getSortableContainerPropertyIds()
getSortableContainerPropertyIds
in interface com.vaadin.v7.data.Container.Sortable
public void refresh()
refresh
in interface info.magnolia.ui.workbench.container.Refreshable
Copyright © 2020 Magnolia International Ltd.. All rights reserved.