Package com.vaadin.data.util
Class GeneratedPropertyContainer.GeneratedPropertyItem
- java.lang.Object
-
- com.vaadin.data.util.GeneratedPropertyContainer.GeneratedPropertyItem
-
- All Implemented Interfaces:
Item,Serializable
- Enclosing class:
- GeneratedPropertyContainer
public class GeneratedPropertyContainer.GeneratedPropertyItem extends Object implements Item
Item implementation for generated properties, used to wrap the Item that belongs to the wrapped container. To reach that Item usegetWrappedItem()- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.data.Item
Item.Editor, Item.PropertySetChangeEvent, Item.PropertySetChangeListener, Item.PropertySetChangeNotifier, Item.Viewer
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGeneratedPropertyItem(Object itemId, Item item)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddItemProperty(Object id, Property property)Tries to add a new Property into the Item.booleanequals(Object obj)Tests if the given object is the same as the this object.PropertygetItemProperty(Object id)Gets the Property corresponding to the given Property ID stored in the Item.Collection<?>getItemPropertyIds()Gets the collection of IDs of all Properties stored in the Item.ItemgetWrappedItem()Returns the wrapped Item that belongs to the wrapped containerinthashCode()booleanremoveItemProperty(Object id)Removes the Property identified by ID from the Item.
-
-
-
Method Detail
-
getItemProperty
public Property getItemProperty(Object id)
Description copied from interface:ItemGets 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- identifier of the Property to get- Returns:
- the Property with the given ID or
null
-
getItemPropertyIds
public Collection<?> getItemPropertyIds()
Description copied from interface:ItemGets 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
-
addItemProperty
public boolean addItemProperty(Object id, Property property) throws UnsupportedOperationException
Description copied from interface:ItemTries to add a new Property into the Item.This functionality is optional.
- Specified by:
addItemPropertyin interfaceItem- 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
public boolean removeItemProperty(Object id) throws UnsupportedOperationException
Description copied from interface:ItemRemoves the Property identified by ID from the Item.This functionality is optional.
- Specified by:
removeItemPropertyin interfaceItem- Parameters:
id- ID of the Property to be removed- Returns:
trueif the operation succeeded- Throws:
UnsupportedOperationException- if the operation is not supported.falseif not
-
equals
public boolean equals(Object obj)
Tests if the given object is the same as the this object. Two Items from the same container with the same ID are equal.
-
getWrappedItem
public Item getWrappedItem()
Returns the wrapped Item that belongs to the wrapped container- Returns:
- wrapped item.
- Since:
- 7.6.8
-
-