public final class RowItem extends Object implements Item
Item.Editor, Item.PropertySetChangeEvent, Item.PropertySetChangeListener, Item.PropertySetChangeNotifier, Item.Viewer| Constructor and Description |
|---|
RowItem(SQLContainer container,
RowId id,
Collection<ColumnProperty> properties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addItemProperty(Object id,
Property property)
Adding properties is not supported.
|
void |
commit() |
SQLContainer |
getContainer() |
RowId |
getId() |
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.
|
boolean |
isModified() |
boolean |
removeItemProperty(Object id)
Removing properties is not supported.
|
String |
toString() |
public RowItem(SQLContainer container, RowId id, Collection<ColumnProperty> properties)
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
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
removeItemProperty in interface Itemid - ID of the Property to be removedtrue if the operation succeededUnsupportedOperationException - if the operation is not supported. false if notpublic RowId getId()
public SQLContainer getContainer()
public boolean isModified()
public void commit()
Copyright © 2023 Vaadin Ltd. All rights reserved.