Class OnmsVaadinContainer<T,​K extends Serializable>

    • Method Detail

      • containsId

        public boolean containsId​(Object itemId)
        Specified by:
        containsId in interface com.vaadin.v7.data.Container
      • getContainerProperty

        public com.vaadin.v7.data.Property<?> getContainerProperty​(Object itemId,
                                                                   Object propertyId)
        Specified by:
        getContainerProperty in interface com.vaadin.v7.data.Container
      • getContainerPropertyIds

        public Collection<?> getContainerPropertyIds()
        Specified by:
        getContainerPropertyIds in interface com.vaadin.v7.data.Container
      • getItem

        public com.vaadin.v7.data.Item getItem​(Object itemId)
        Specified by:
        getItem in interface com.vaadin.v7.data.Container
      • getItemClass

        public Class<T> getItemClass()
      • getId

        protected abstract K getId​(T bean)
      • getType

        public Class<?> getType​(Object propertyId)
        Specified by:
        getType in interface com.vaadin.v7.data.Container
      • size

        public int size()
        Specified by:
        size in interface com.vaadin.v7.data.Container
      • firstItemId

        public Object firstItemId()
        Specified by:
        firstItemId in interface com.vaadin.v7.data.Container.Ordered
      • lastItemId

        public Object lastItemId()
        Specified by:
        lastItemId in interface com.vaadin.v7.data.Container.Ordered
      • isFirstId

        public boolean isFirstId​(Object itemId)
        Specified by:
        isFirstId in interface com.vaadin.v7.data.Container.Ordered
      • isLastId

        public boolean isLastId​(Object itemId)
        Specified by:
        isLastId in interface com.vaadin.v7.data.Container.Ordered
      • nextItemId

        public Object nextItemId​(Object itemId)
        Specified by:
        nextItemId in interface com.vaadin.v7.data.Container.Ordered
      • prevItemId

        public Object prevItemId​(Object itemId)
        Specified by:
        prevItemId in interface com.vaadin.v7.data.Container.Ordered
      • getSortableContainerPropertyIds

        public Collection<?> getSortableContainerPropertyIds()
        This function returns getContainerPropertyIds().
        Specified by:
        getSortableContainerPropertyIds in interface com.vaadin.v7.data.Container.Sortable
      • sort

        public void sort​(Object[] propertyId,
                         boolean[] ascending)
        Specified by:
        sort in interface com.vaadin.v7.data.Container.Sortable
      • addListener

        public void addListener​(com.vaadin.v7.data.Container.ItemSetChangeListener listener)
        Specified by:
        addListener in interface com.vaadin.v7.data.Container.ItemSetChangeNotifier
      • removeListener

        public void removeListener​(com.vaadin.v7.data.Container.ItemSetChangeListener listener)
        Specified by:
        removeListener in interface com.vaadin.v7.data.Container.ItemSetChangeNotifier
      • addItemSetChangeListener

        public void addItemSetChangeListener​(com.vaadin.v7.data.Container.ItemSetChangeListener listener)
        Specified by:
        addItemSetChangeListener in interface com.vaadin.v7.data.Container.ItemSetChangeNotifier
      • removeItemSetChangeListener

        public void removeItemSetChangeListener​(com.vaadin.v7.data.Container.ItemSetChangeListener listener)
        Specified by:
        removeItemSetChangeListener in interface com.vaadin.v7.data.Container.ItemSetChangeNotifier
      • fireItemSetChangedEvent

        protected void fireItemSetChangedEvent()
      • setRestrictions

        public void setRestrictions​(List<Restriction> newRestrictions)
      • addBeanToHibernatePropertyMapping

        public void addBeanToHibernatePropertyMapping​(String key,
                                                      String value)
      • getItemIds

        public Collection<?> getItemIds()
        Specified by:
        getItemIds in interface com.vaadin.v7.data.Container
      • getItemIds

        public List<K> getItemIds​(int startIndex,
                                  int numberOfItems)
        Specified by:
        getItemIds in interface com.vaadin.v7.data.Container.Indexed
      • indexOfId

        public int indexOfId​(Object itemId)
        Specified by:
        indexOfId in interface com.vaadin.v7.data.Container.Indexed
      • getIdByIndex

        public K getIdByIndex​(int index)
        Specified by:
        getIdByIndex in interface com.vaadin.v7.data.Container.Indexed
      • updateContainerPropertyIds

        protected void updateContainerPropertyIds​(Map<Object,​Class<?>> properties)
      • getCriteria

        protected Criteria getCriteria​(OnmsVaadinContainer.Page page,
                                       boolean doOrder)
        Creates a Criteria object to get data from database. If considerPaging is set Limit and offset values are added as restriction.
        Parameters:
        page -
        doOrder -
        Returns:
      • getContentType

        protected abstract ContentType getContentType()