Package com.vaadin.v7.data.util
Class PropertysetItem
- java.lang.Object
-
- com.vaadin.v7.data.util.PropertysetItem
-
- All Implemented Interfaces:
Item,Item.PropertySetChangeNotifier,Serializable,Cloneable
- Direct Known Subclasses:
BeanItem
@Deprecated public class PropertysetItem extends Object implements Item, Item.PropertySetChangeNotifier, Cloneable
Deprecated.As of 8.0, no direct replacement available. You can useMapdirectly as an item forBinderorDataProviderand access item properties with lambdas likebinder.forField(component).bind(...)ornew Grid<Map<...>>(dataProvider).addColumn(map->map.get(...)).Class for handling a set of identified Properties. The elements contained in aMapItemcan be referenced using locally unique identifiers. The class supports listeners who are interested in changes to the Property set managed by the class.- Since:
- 3.0
- Author:
- Vaadin Ltd.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.v7.data.Item
Item.Editor, Item.PropertySetChangeListener, Item.PropertySetChangeNotifier, Item.Viewer
-
-
Constructor Summary
Constructors Constructor Description PropertysetItem()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanaddItemProperty(Object id, Property property)Deprecated.Tries to add a new Property into the Item.voidaddListener(Item.PropertySetChangeListener listener)Deprecated.As of 7.0, replaced byaddPropertySetChangeListener(Item.PropertySetChangeListener)voidaddPropertySetChangeListener(Item.PropertySetChangeListener listener)Deprecated.Registers a new property set change listener for this Item.Objectclone()Deprecated.Creates and returns a copy of this object.booleanequals(Object obj)Deprecated.PropertygetItemProperty(Object id)Deprecated.Gets the Property corresponding to the given Property ID stored in the Item.Collection<?>getItemPropertyIds()Deprecated.Gets the collection of IDs of all Properties stored in the Item.Collection<?>getListeners(Class<?> eventType)Deprecated.inthashCode()Deprecated.booleanremoveItemProperty(Object id)Deprecated.Removes the Property identified by ID from the Item.voidremoveListener(Item.PropertySetChangeListener listener)Deprecated.As of 7.0, replaced byremovePropertySetChangeListener(Item.PropertySetChangeListener)voidremovePropertySetChangeListener(Item.PropertySetChangeListener listener)Deprecated.Removes a previously registered property set change listener.StringtoString()Deprecated.Gets theStringrepresentation of the contents of the Item.
-
-
-
Method Detail
-
getItemProperty
public Property getItemProperty(Object id)
Deprecated.Gets the Property corresponding to the given Property ID stored in the Item. If the Item does not contain the Property,nullis returned.- Specified by:
getItemPropertyin interfaceItem- Parameters:
id- the identifier of the Property to get.- Returns:
- the Property with the given ID or
null
-
getItemPropertyIds
public Collection<?> getItemPropertyIds()
Deprecated.Gets the collection of IDs of all Properties stored in the Item.- Specified by:
getItemPropertyIdsin interfaceItem- Returns:
- unmodifiable collection containing IDs of the Properties stored the Item
-
removeItemProperty
public boolean removeItemProperty(Object id)
Deprecated.Removes the Property identified by ID from the Item. This functionality is optional. If the method is not implemented, the method always returnsfalse.- Specified by:
removeItemPropertyin interfaceItem- Parameters:
id- the ID of the Property to be removed.- Returns:
trueif the operation succeededfalseif not
-
addItemProperty
public boolean addItemProperty(Object id, Property property)
Deprecated.Tries to add a new Property into the Item.- Specified by:
addItemPropertyin interfaceItem- Parameters:
id- the ID of the new Property.property- the Property to be added and associated with the id.- Returns:
trueif the operation succeeded,falseif not
-
toString
public String toString()
Deprecated.Gets theStringrepresentation of the contents of the Item. The format of the string is a space separated catenation of theStringrepresentations of the Properties contained by the Item.
-
addPropertySetChangeListener
public void addPropertySetChangeListener(Item.PropertySetChangeListener listener)
Deprecated.Registers a new property set change listener for this Item.- Specified by:
addPropertySetChangeListenerin interfaceItem.PropertySetChangeNotifier- Parameters:
listener- the new Listener to be registered.
-
addListener
@Deprecated public void addListener(Item.PropertySetChangeListener listener)
Deprecated.As of 7.0, replaced byaddPropertySetChangeListener(Item.PropertySetChangeListener)- Specified by:
addListenerin interfaceItem.PropertySetChangeNotifier
-
removePropertySetChangeListener
public void removePropertySetChangeListener(Item.PropertySetChangeListener listener)
Deprecated.Removes a previously registered property set change listener.- Specified by:
removePropertySetChangeListenerin interfaceItem.PropertySetChangeNotifier- Parameters:
listener- the Listener to be removed.
-
removeListener
@Deprecated public void removeListener(Item.PropertySetChangeListener listener)
Deprecated.As of 7.0, replaced byremovePropertySetChangeListener(Item.PropertySetChangeListener)- Specified by:
removeListenerin interfaceItem.PropertySetChangeNotifier
-
getListeners
public Collection<?> getListeners(Class<?> eventType)
Deprecated.
-
clone
public Object clone() throws CloneNotSupportedException
Deprecated.Creates and returns a copy of this object.The method
cloneperforms a shallow copy of thePropertysetItem.Note : All arrays are considered to implement the interface Cloneable. Otherwise, this method creates a new instance of the class of this object and initializes all its fields with exactly the contents of the corresponding fields of this object, as if by assignment, the contents of the fields are not themselves cloned. Thus, this method performs a "shallow copy" of this object, not a "deep copy" operation.
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException- if the object's class does not support the Cloneable interface.- See Also:
Object.clone()
-
-