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)
Itemnull is
returned.getItemProperty in interface Itemid - identifier of the Property to getnullpublic Collection<?> getItemPropertyIds()
ItemgetItemPropertyIds in interface Itempublic boolean addItemProperty(Object id, Property property) throws UnsupportedOperationException
ItemThis functionality is optional.
addItemProperty in interface Itemid - 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
ItemThis functionality is optional.
removeItemProperty in interface Itemid - 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 © 2022 Vaadin Ltd. All rights reserved.