Class DefaultItemWidgetModel<T>
- java.lang.Object
-
- de.hybris.platform.cockpit.widgets.models.impl.AbstractWidgetModel
-
- de.hybris.platform.cockpit.widgets.models.impl.DefaultItemWidgetModel<T>
-
- All Implemented Interfaces:
ItemWidgetModel<T>,WidgetModel
- Direct Known Subclasses:
DefaultItemEditorWidgetModel
public class DefaultItemWidgetModel<T> extends AbstractWidgetModel implements ItemWidgetModel<T>
-
-
Constructor Summary
Constructors Constructor Description DefaultItemWidgetModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetItem()Returns the item held by this model.booleansetItem(T item)Sets the item held by this model to item.-
Methods inherited from class de.hybris.platform.cockpit.widgets.models.impl.AbstractWidgetModel
addWidgetModelListener, getWidgetModelListeners, notifyListeners, notifyListeners, removeWidgetModelLlistener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.cockpit.widgets.models.WidgetModel
addWidgetModelListener, notifyListeners, removeWidgetModelLlistener
-
-
-
-
Method Detail
-
getItem
public T getItem()
Description copied from interface:ItemWidgetModelReturns the item held by this model.- Specified by:
getItemin interfaceItemWidgetModel<T>- Returns:
- this model's item or null if no item is available
-
setItem
public boolean setItem(T item)
Description copied from interface:ItemWidgetModelSets the item held by this model to item.- Specified by:
setItemin interfaceItemWidgetModel<T>- Parameters:
item- the item- Returns:
- true if a change was made, false otherwise
-
-