Interface ItemWidgetModel<T>
- Type Parameters:
T- item type
- All Superinterfaces:
WidgetModel
- All Known Subinterfaces:
ItemEditorWidgetModel<T>
- All Known Implementing Classes:
DefaultItemEditorWidgetModel,DefaultItemWidgetModel
An ItemWidgetModel is a widget model for holding an Item reference of a specific type.
Typically, all registered
WidgetModelListeners are notified as soon as the item is changed by a call to the
setItem(Object) method.- See Also:
-
Method Summary
Methods inherited from interface de.hybris.platform.cockpit.widgets.models.WidgetModel
addWidgetModelListener, notifyListeners, removeWidgetModelLlistener
-
Method Details
-
setItem
Sets the item held by this model to item.- Parameters:
item- the item- Returns:
- true if a change was made, false otherwise
-
getItem
T getItem()Returns the item held by this model.- Returns:
- this model's item or null if no item is available
-