Package com.vaadin.v7.data
Interface Item
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
BeanItem,FilesystemContainer.FileItem,Form,GeneratedPropertyContainer.GeneratedPropertyItem,PropertysetItem,RowItem
@Deprecated public interface Item extends Serializable
Deprecated.As of 8.0, no direct replacement available, seeBinder,DataProviderProvides a mechanism for handling a set of Properties, each associated to a locally unique non-null identifier. The interface is split into subinterfaces to enable a class to implement only the functionalities it needs.
- Since:
- 3.0
- Author:
- Vaadin Ltd
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceItem.EditorDeprecated.static interfaceItem.PropertySetChangeEventDeprecated.static interfaceItem.PropertySetChangeListenerDeprecated.static interfaceItem.PropertySetChangeNotifierDeprecated.static interfaceItem.ViewerDeprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleanaddItemProperty(Object id, Property property)Deprecated.Tries to add a new Property into the Item.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.booleanremoveItemProperty(Object id)Deprecated.Removes the Property identified by ID from the Item.
-
-
-
Method Detail
-
getItemProperty
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.- Parameters:
id- identifier of the Property to get- Returns:
- the Property with the given ID or
null
-
getItemPropertyIds
Collection<?> getItemPropertyIds()
Deprecated.Gets the collection of IDs of all Properties stored in the Item.- Returns:
- unmodifiable collection containing IDs of the Properties stored the Item
-
addItemProperty
boolean addItemProperty(Object id, Property property) throws UnsupportedOperationException
Deprecated.Tries to add a new Property into the Item.This functionality is optional.
- Parameters:
id- ID of the new Propertyproperty- the Property to be added and associated with the id- Returns:
trueif the operation succeeded,falseif not- Throws:
UnsupportedOperationException- if the operation is not supported.
-
removeItemProperty
boolean removeItemProperty(Object id) throws UnsupportedOperationException
Deprecated.Removes the Property identified by ID from the Item.This functionality is optional.
- Parameters:
id- ID of the Property to be removed- Returns:
trueif the operation succeeded- Throws:
UnsupportedOperationException- if the operation is not supported.falseif not
-
-