Class DefaultItemWidgetModel<T>

    • Constructor Detail

      • DefaultItemWidgetModel

        public DefaultItemWidgetModel()
    • Method Detail

      • getItem

        public T getItem()
        Description copied from interface: ItemWidgetModel
        Returns the item held by this model.
        Specified by:
        getItem in interface ItemWidgetModel<T>
        Returns:
        this model's item or null if no item is available
      • setItem

        public boolean setItem​(T item)
        Description copied from interface: ItemWidgetModel
        Sets the item held by this model to item.
        Specified by:
        setItem in interface ItemWidgetModel<T>
        Parameters:
        item - the item
        Returns:
        true if a change was made, false otherwise