Package com.vaadin.v7.data.util
Class AbstractContainer
- java.lang.Object
-
- com.vaadin.v7.data.util.AbstractContainer
-
- All Implemented Interfaces:
Container
,java.io.Serializable
- Direct Known Subclasses:
AbstractInMemoryContainer
,GeneratedPropertyContainer
@Deprecated public abstract class AbstractContainer extends java.lang.Object implements Container
Deprecated.As of 8.0, replaced byDataProvider
Abstract container class that manages event listeners and sending events to them (Container.PropertySetChangeNotifier
,Container.ItemSetChangeNotifier
). Note that this class provides the internal implementations for both types of events and notifiers as protected methods, but does not implement theContainer.PropertySetChangeNotifier
andContainer.ItemSetChangeNotifier
interfaces directly. This way, subclasses can choose not to implement them. Subclasses implementing those interfaces should also override the correspondingaddListener(com.vaadin.v7.data.Container.ItemSetChangeListener)
andremoveListener(com.vaadin.v7.data.Container.ItemSetChangeListener)
methods to make them public.- Since:
- 6.6
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractContainer.BaseItemSetChangeEvent
Deprecated.protected static class
AbstractContainer.BasePropertySetChangeEvent
Deprecated.-
Nested classes/interfaces inherited from interface com.vaadin.v7.data.Container
Container.Editor, Container.Filter, Container.Filterable, Container.Hierarchical, Container.Indexed, Container.ItemSetChangeEvent, Container.ItemSetChangeListener, Container.ItemSetChangeNotifier, Container.Ordered, Container.PropertySetChangeEvent, Container.PropertySetChangeListener, Container.PropertySetChangeNotifier, Container.SimpleFilterable, Container.Sortable, Container.Viewer
-
-
Constructor Summary
Constructors Constructor Description AbstractContainer()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
addItemSetChangeListener(Container.ItemSetChangeListener listener)
Deprecated.Implementation of the corresponding method inContainer.ItemSetChangeNotifier
, override with the corresponding public method and implement the interface to use this.protected void
addListener(Container.ItemSetChangeListener listener)
Deprecated.As of 7.0, replaced byaddItemSetChangeListener(Container.ItemSetChangeListener)
protected void
addListener(Container.PropertySetChangeListener listener)
Deprecated.As of 7.0, replaced byaddPropertySetChangeListener(Container.PropertySetChangeListener)
protected void
addPropertySetChangeListener(Container.PropertySetChangeListener listener)
Deprecated.Implementation of the corresponding method inContainer.PropertySetChangeNotifier
, override with the corresponding public method and implement the interface to use this.protected void
fireContainerPropertySetChange()
Deprecated.Sends a simple Property set change event to all interested listeners.protected void
fireContainerPropertySetChange(Container.PropertySetChangeEvent event)
Deprecated.Sends a Property set change event to all interested listeners.protected void
fireItemSetChange()
Deprecated.Sends a simple Item set change event to all interested listeners, indicating that anything in the contents may have changed (items added, removed etc.).protected void
fireItemSetChange(Container.ItemSetChangeEvent event)
Deprecated.Sends an Item set change event to all registered interested listeners.protected java.util.Collection<Container.ItemSetChangeListener>
getItemSetChangeListeners()
Deprecated.Returns the item set change listener collection.java.util.Collection<?>
getListeners(java.lang.Class<?> eventType)
Deprecated.protected java.util.Collection<Container.PropertySetChangeListener>
getPropertySetChangeListeners()
Deprecated.Returns the property set change listener collection.protected void
removeItemSetChangeListener(Container.ItemSetChangeListener listener)
Deprecated.Implementation of the corresponding method inContainer.ItemSetChangeNotifier
, override with the corresponding public method and implement the interface to use this.protected void
removeListener(Container.ItemSetChangeListener listener)
Deprecated.As of 7.0, replaced byaddItemSetChangeListener(Container.ItemSetChangeListener)
protected void
removeListener(Container.PropertySetChangeListener listener)
Deprecated.As of 7.0, replaced byremovePropertySetChangeListener(Container.PropertySetChangeListener)
protected void
removePropertySetChangeListener(Container.PropertySetChangeListener listener)
Deprecated.Implementation of the corresponding method inContainer.PropertySetChangeNotifier
, override with the corresponding public method and implement the interface to use this.protected void
setItemSetChangeListeners(java.util.Collection<Container.ItemSetChangeListener> itemSetChangeListeners)
Deprecated.Sets the item set change listener collection.protected void
setPropertySetChangeListeners(java.util.Collection<Container.PropertySetChangeListener> propertySetChangeListeners)
Deprecated.Sets the property set change listener collection.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.v7.data.Container
addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeContainerProperty, removeItem, size
-
-
-
-
Method Detail
-
addPropertySetChangeListener
protected void addPropertySetChangeListener(Container.PropertySetChangeListener listener)
Deprecated.Implementation of the corresponding method inContainer.PropertySetChangeNotifier
, override with the corresponding public method and implement the interface to use this.
-
addListener
@Deprecated protected void addListener(Container.PropertySetChangeListener listener)
Deprecated.As of 7.0, replaced byaddPropertySetChangeListener(Container.PropertySetChangeListener)
-
removePropertySetChangeListener
protected void removePropertySetChangeListener(Container.PropertySetChangeListener listener)
Deprecated.Implementation of the corresponding method inContainer.PropertySetChangeNotifier
, override with the corresponding public method and implement the interface to use this.
-
removeListener
@Deprecated protected void removeListener(Container.PropertySetChangeListener listener)
Deprecated.As of 7.0, replaced byremovePropertySetChangeListener(Container.PropertySetChangeListener)
-
addItemSetChangeListener
protected void addItemSetChangeListener(Container.ItemSetChangeListener listener)
Deprecated.Implementation of the corresponding method inContainer.ItemSetChangeNotifier
, override with the corresponding public method and implement the interface to use this.
-
addListener
@Deprecated protected void addListener(Container.ItemSetChangeListener listener)
Deprecated.As of 7.0, replaced byaddItemSetChangeListener(Container.ItemSetChangeListener)
-
removeItemSetChangeListener
protected void removeItemSetChangeListener(Container.ItemSetChangeListener listener)
Deprecated.Implementation of the corresponding method inContainer.ItemSetChangeNotifier
, override with the corresponding public method and implement the interface to use this.
-
removeListener
@Deprecated protected void removeListener(Container.ItemSetChangeListener listener)
Deprecated.As of 7.0, replaced byaddItemSetChangeListener(Container.ItemSetChangeListener)
-
fireContainerPropertySetChange
protected void fireContainerPropertySetChange()
Deprecated.Sends a simple Property set change event to all interested listeners.
-
fireContainerPropertySetChange
protected void fireContainerPropertySetChange(Container.PropertySetChangeEvent event)
Deprecated.Sends a Property set change event to all interested listeners. UsefireContainerPropertySetChange()
instead of this method unless additional information about the exact changes is available and should be included in the event.- Parameters:
event
- the property change event to send, optionally with additional information
-
fireItemSetChange
protected void fireItemSetChange()
Deprecated.Sends a simple Item set change event to all interested listeners, indicating that anything in the contents may have changed (items added, removed etc.).
-
fireItemSetChange
protected void fireItemSetChange(Container.ItemSetChangeEvent event)
Deprecated.Sends an Item set change event to all registered interested listeners.- Parameters:
event
- the item set change event to send, optionally with additional information
-
setPropertySetChangeListeners
protected void setPropertySetChangeListeners(java.util.Collection<Container.PropertySetChangeListener> propertySetChangeListeners)
Deprecated.Sets the property set change listener collection. For internal use only.- Parameters:
propertySetChangeListeners
-
-
getPropertySetChangeListeners
protected java.util.Collection<Container.PropertySetChangeListener> getPropertySetChangeListeners()
Deprecated.Returns the property set change listener collection. For internal use only.
-
setItemSetChangeListeners
protected void setItemSetChangeListeners(java.util.Collection<Container.ItemSetChangeListener> itemSetChangeListeners)
Deprecated.Sets the item set change listener collection. For internal use only.- Parameters:
itemSetChangeListeners
-
-
getItemSetChangeListeners
protected java.util.Collection<Container.ItemSetChangeListener> getItemSetChangeListeners()
Deprecated.Returns the item set change listener collection. For internal use only.
-
getListeners
public java.util.Collection<?> getListeners(java.lang.Class<?> eventType)
Deprecated.
-
-