Class AbstractItemView

    • Constructor Detail

      • AbstractItemView

        protected AbstractItemView()
        Creates a new instance.
    • Method Detail

      • addLocationsListener

        public void addLocationsListener​(@NotNull
                                         @NotNull LocationsListener locationsListener)
        Description copied from interface: ItemView
        Adds a LocationsListener to be notified when any displayed item has changed.
        Specified by:
        addLocationsListener in interface ItemView
        Parameters:
        locationsListener - the locations listener to add
      • removeLocationsListener

        public void removeLocationsListener​(@NotNull
                                            @NotNull LocationsListener locationsListener)
        Description copied from interface: ItemView
        Removes a LocationsListener to be notified when any displayed item has changed.
        Specified by:
        removeLocationsListener in interface ItemView
        Parameters:
        locationsListener - the locations listener to remove
      • addLocationListener

        public void addLocationListener​(int index,
                                        @NotNull
                                        @NotNull LocationListener locationListener)
        Description copied from interface: ItemView
        Adds a LocationListener to be notified when the item displayed in a floor slot has changed.
        Specified by:
        addLocationListener in interface ItemView
        Parameters:
        index - the floor slot
        locationListener - the location listener to add
      • removeLocationListener

        public void removeLocationListener​(int index,
                                           @NotNull
                                           @NotNull LocationListener locationListener)
        Description copied from interface: ItemView
        Removes a LocationListener to be notified when the item displayed in a floor slot has changed.
        Specified by:
        removeLocationListener in interface ItemView
        Parameters:
        index - the floor slot
        locationListener - the location listener to remove
      • addModifiedRange

        protected void addModifiedRange​(int firstIndex,
                                        int lastIndex)
        Marks a range of slots as modified.
        Parameters:
        firstIndex - the first modified slot index
        lastIndex - the last modified slot index
      • addModified

        protected void addModified​(int index)
        Marks a slot as modified.
        Parameters:
        index - the modified slot index