public class CacheBrowserContainer
extends info.magnolia.ui.workbench.container.AbstractContainer
implements com.vaadin.data.Container.Indexed, com.vaadin.data.Container.ItemSetChangeNotifier, com.vaadin.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.data.Container.Indexed.ItemAddEvent, com.vaadin.data.Container.Indexed.ItemRemoveEvent
com.vaadin.data.Container.Editor, com.vaadin.data.Container.Filter, com.vaadin.data.Container.Filterable, com.vaadin.data.Container.Hierarchical, com.vaadin.data.Container.Indexed, com.vaadin.data.Container.ItemSetChangeEvent, com.vaadin.data.Container.ItemSetChangeListener, com.vaadin.data.Container.ItemSetChangeNotifier, com.vaadin.data.Container.Ordered, com.vaadin.data.Container.PropertySetChangeEvent, com.vaadin.data.Container.PropertySetChangeListener, com.vaadin.data.Container.PropertySetChangeNotifier, com.vaadin.data.Container.SimpleFilterable, com.vaadin.data.Container.Sortable, com.vaadin.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.data.Item |
addItem(Object itemId) |
Object |
addItemAfter(Object previousItemId) |
com.vaadin.data.Item |
addItemAfter(Object previousItemId,
Object newItemId) |
Object |
addItemAt(int index) |
com.vaadin.data.Item |
addItemAt(int index,
Object newItemId) |
void |
addItemSetChangeListener(com.vaadin.data.Container.ItemSetChangeListener listener) |
void |
addListener(com.vaadin.data.Container.ItemSetChangeListener listener) |
boolean |
containsId(Object itemId) |
void |
fireItemSetChange() |
Object |
firstItemId() |
com.vaadin.data.Property<?> |
getContainerProperty(Object itemId,
Object propertyId) |
Object |
getIdByIndex(int index) |
com.vaadin.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.data.Container.ItemSetChangeListener listener) |
void |
removeListener(com.vaadin.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.data.Item getItem(Object itemId)
getItem
in interface com.vaadin.data.Container
public Collection<CacheKey> getItemIds()
getItemIds
in interface com.vaadin.data.Container
public com.vaadin.data.Property<?> getContainerProperty(Object itemId, Object propertyId)
getContainerProperty
in interface com.vaadin.data.Container
public int size()
size
in interface com.vaadin.data.Container
public boolean containsId(Object itemId)
containsId
in interface com.vaadin.data.Container
public com.vaadin.data.Item addItem(Object itemId) throws UnsupportedOperationException
addItem
in interface com.vaadin.data.Container
UnsupportedOperationException
public Object addItem() throws UnsupportedOperationException
addItem
in interface com.vaadin.data.Container
UnsupportedOperationException
public boolean removeItem(Object itemId) throws UnsupportedOperationException
removeItem
in interface com.vaadin.data.Container
UnsupportedOperationException
public boolean removeAllItems() throws UnsupportedOperationException
removeAllItems
in interface com.vaadin.data.Container
UnsupportedOperationException
public Object nextItemId(Object itemId)
nextItemId
in interface com.vaadin.data.Container.Ordered
public Object prevItemId(Object itemId)
prevItemId
in interface com.vaadin.data.Container.Ordered
public Object firstItemId()
firstItemId
in interface com.vaadin.data.Container.Ordered
public Object lastItemId()
lastItemId
in interface com.vaadin.data.Container.Ordered
public boolean isFirstId(Object itemId)
isFirstId
in interface com.vaadin.data.Container.Ordered
public boolean isLastId(Object itemId)
isLastId
in interface com.vaadin.data.Container.Ordered
public int indexOfId(Object itemId)
indexOfId
in interface com.vaadin.data.Container.Indexed
public Object getIdByIndex(int index)
getIdByIndex
in interface com.vaadin.data.Container.Indexed
public List<?> getItemIds(int startIndex, int numberOfItems)
getItemIds
in interface com.vaadin.data.Container.Indexed
public Object addItemAt(int index) throws UnsupportedOperationException
addItemAt
in interface com.vaadin.data.Container.Indexed
UnsupportedOperationException
public com.vaadin.data.Item addItemAt(int index, Object newItemId) throws UnsupportedOperationException
addItemAt
in interface com.vaadin.data.Container.Indexed
UnsupportedOperationException
public Object addItemAfter(Object previousItemId) throws UnsupportedOperationException
addItemAfter
in interface com.vaadin.data.Container.Ordered
UnsupportedOperationException
public com.vaadin.data.Item addItemAfter(Object previousItemId, Object newItemId) throws UnsupportedOperationException
addItemAfter
in interface com.vaadin.data.Container.Ordered
UnsupportedOperationException
public void addItemSetChangeListener(com.vaadin.data.Container.ItemSetChangeListener listener)
addItemSetChangeListener
in interface com.vaadin.data.Container.ItemSetChangeNotifier
public void addListener(com.vaadin.data.Container.ItemSetChangeListener listener)
addListener
in interface com.vaadin.data.Container.ItemSetChangeNotifier
public void removeItemSetChangeListener(com.vaadin.data.Container.ItemSetChangeListener listener)
removeItemSetChangeListener
in interface com.vaadin.data.Container.ItemSetChangeNotifier
public void removeListener(com.vaadin.data.Container.ItemSetChangeListener listener)
removeListener
in interface com.vaadin.data.Container.ItemSetChangeNotifier
public void fireItemSetChange()
public void sort(Object[] propertyId, boolean[] ascending)
sort
in interface com.vaadin.data.Container.Sortable
public Collection<String> getSortableContainerPropertyIds()
getSortableContainerPropertyIds
in interface com.vaadin.data.Container.Sortable
public void refresh()
refresh
in interface info.magnolia.ui.workbench.container.Refreshable
Copyright © 2015 Magnolia International Ltd.. All rights reserved.