Interface ItemWidgetModel<T>

Type Parameters:
T - item type
All Superinterfaces:
WidgetModel
All Known Subinterfaces:
ItemEditorWidgetModel<T>
All Known Implementing Classes:
DefaultItemEditorWidgetModel, DefaultItemWidgetModel

public interface ItemWidgetModel<T> extends WidgetModel
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 Details

    • setItem

      boolean setItem(T item)
      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