public abstract class OnmsDaoContainer<T,K extends Serializable> extends Object implements SelectionNotifier, SelectionListener, com.vaadin.data.Container, com.vaadin.data.Container.Sortable, com.vaadin.data.Container.Ordered, com.vaadin.data.Container.ItemSetChangeNotifier
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 |
---|---|
protected Criteria |
m_criteria
TODO: Fix concurrent access to this field
|
Constructor and Description |
---|
OnmsDaoContainer(OnmsDao<T,K> dao) |
Modifier and Type | Method and Description |
---|---|
boolean |
addContainerProperty(Object propertyId,
Class<?> type,
Object defaultValue) |
Object |
addItem()
Can be overridden if you want to support adding items.
|
com.vaadin.data.Item |
addItem(Object itemId)
Can be overridden if you want to support adding items.
|
Object |
addItemAfter(Object previousItemId) |
com.vaadin.data.Item |
addItemAfter(Object previousItemId,
Object newItemId) |
void |
addListener(com.vaadin.data.Container.ItemSetChangeListener listener) |
void |
addSelectionListener(SelectionListener listener) |
boolean |
containsId(Object itemId) |
protected void |
fireItemSetChangedEvent() |
Object |
firstItemId()
Very inefficient default behavior, override in subclasses.
|
com.vaadin.data.Property |
getContainerProperty(Object itemId,
Object propertyId) |
abstract Collection<?> |
getContainerPropertyIds() |
protected abstract K |
getId(T bean) |
com.vaadin.data.Item |
getItem(Object itemId) |
abstract Class<T> |
getItemClass() |
Collection<?> |
getItemIds() |
Collection<?> |
getSortableContainerPropertyIds()
This function returns
getContainerPropertyIds() . |
abstract Class<?> |
getType(Object propertyId) |
boolean |
isFirstId(Object itemId)
Very inefficient default behavior, override in subclasses.
|
boolean |
isLastId(Object itemId)
Very inefficient default behavior, override in subclasses.
|
Object |
lastItemId()
Very inefficient default behavior, override in subclasses.
|
Object |
nextItemId(Object itemId)
Very inefficient default behavior, override in subclasses.
|
Object |
prevItemId(Object itemId)
Very inefficient default behavior, override in subclasses.
|
boolean |
removeAllItems() |
boolean |
removeContainerProperty(Object propertyId) |
boolean |
removeItem(Object itemId) |
void |
removeListener(com.vaadin.data.Container.ItemSetChangeListener listener) |
void |
removeSelectionListener(SelectionListener listener) |
abstract void |
selectionChanged(SelectionContext selectionContext) |
void |
setSelectionListeners(Set<SelectionListener> listeners) |
int |
size() |
void |
sort(Object[] propertyId,
boolean[] ascending) |
protected Criteria m_criteria
public final boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue) throws UnsupportedOperationException
addContainerProperty
in interface com.vaadin.data.Container
UnsupportedOperationException
public Object addItem() throws UnsupportedOperationException
addItem
in interface com.vaadin.data.Container
UnsupportedOperationException
public com.vaadin.data.Item addItem(Object itemId) throws UnsupportedOperationException
addItem
in interface com.vaadin.data.Container
UnsupportedOperationException
public boolean containsId(Object itemId)
containsId
in interface com.vaadin.data.Container
public com.vaadin.data.Property getContainerProperty(Object itemId, Object propertyId)
getContainerProperty
in interface com.vaadin.data.Container
public abstract Collection<?> getContainerPropertyIds()
getContainerPropertyIds
in interface com.vaadin.data.Container
public com.vaadin.data.Item getItem(Object itemId)
getItem
in interface com.vaadin.data.Container
public Collection<?> getItemIds()
getItemIds
in interface com.vaadin.data.Container
public abstract Class<?> getType(Object propertyId)
getType
in interface com.vaadin.data.Container
public boolean removeAllItems() throws UnsupportedOperationException
removeAllItems
in interface com.vaadin.data.Container
UnsupportedOperationException
public final boolean removeContainerProperty(Object propertyId) throws UnsupportedOperationException
removeContainerProperty
in interface com.vaadin.data.Container
UnsupportedOperationException
public boolean removeItem(Object itemId) throws UnsupportedOperationException
removeItem
in interface com.vaadin.data.Container
UnsupportedOperationException
public int size()
size
in interface com.vaadin.data.Container
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 Object firstItemId()
firstItemId
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 Object lastItemId()
lastItemId
in interface com.vaadin.data.Container.Ordered
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 Collection<?> getSortableContainerPropertyIds()
getContainerPropertyIds()
.getSortableContainerPropertyIds
in interface com.vaadin.data.Container.Sortable
public void sort(Object[] propertyId, boolean[] ascending)
sort
in interface com.vaadin.data.Container.Sortable
public abstract void selectionChanged(SelectionContext selectionContext)
selectionChanged
in interface SelectionListener
public void addListener(com.vaadin.data.Container.ItemSetChangeListener listener)
addListener
in interface com.vaadin.data.Container.ItemSetChangeNotifier
public void removeListener(com.vaadin.data.Container.ItemSetChangeListener listener)
removeListener
in interface com.vaadin.data.Container.ItemSetChangeNotifier
protected void fireItemSetChangedEvent()
public void addSelectionListener(SelectionListener listener)
addSelectionListener
in interface SelectionNotifier
public void setSelectionListeners(Set<SelectionListener> listeners)
setSelectionListeners
in interface SelectionNotifier
public void removeSelectionListener(SelectionListener listener)
removeSelectionListener
in interface SelectionNotifier
Copyright © 2015. All Rights Reserved.