public class GeneratedPropertyContainer.GeneratedPropertyItem extends Object implements Item
getWrappedItem()
Item.Editor, Item.PropertySetChangeEvent, Item.PropertySetChangeListener, Item.PropertySetChangeNotifier, Item.Viewer
Modifier | Constructor and Description |
---|---|
protected |
GeneratedPropertyItem(Object itemId,
Item item) |
Modifier and Type | Method and Description |
---|---|
boolean |
addItemProperty(Object id,
Property property)
Tries to add a new Property into the Item.
|
boolean |
equals(Object obj)
Tests if the given object is the same as the this object.
|
Property |
getItemProperty(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.
|
Item |
getWrappedItem()
Returns the wrapped Item that belongs to the wrapped container
|
int |
hashCode() |
boolean |
removeItemProperty(Object id)
Removes the Property identified by ID from the Item.
|
public Property getItemProperty(Object id)
Item
null
is
returned.getItemProperty
in interface Item
id
- identifier of the Property to getnull
public Collection<?> getItemPropertyIds()
Item
getItemPropertyIds
in interface Item
public boolean addItemProperty(Object id, Property property) throws UnsupportedOperationException
Item
This functionality is optional.
addItemProperty
in interface Item
id
- ID of the new Propertyproperty
- the Property to be added and associated with the idtrue
if the operation succeeded, false
if notUnsupportedOperationException
- if the operation is not supported.public boolean removeItemProperty(Object id) throws UnsupportedOperationException
Item
This functionality is optional.
removeItemProperty
in interface Item
id
- ID of the Property to be removedtrue
if the operation succeededUnsupportedOperationException
- if the operation is not supported. false
if notpublic boolean equals(Object obj)
public Item getWrappedItem()
Copyright © 2021 Vaadin Ltd. All rights reserved.