Class AbstractItemView

java.lang.Object
com.realtime.crossfire.jxclient.items.AbstractItemView
All Implemented Interfaces:
ItemView
Direct Known Subclasses:
FloorView, InventoryView, KnowledgeTypeView, KnowledgeView, QuestsView, SpellSkillView, SpellsView

public abstract class AbstractItemView extends Object implements ItemView
Abstract base class for ItemView implementing classes.
  • Constructor Details

    • AbstractItemView

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

    • 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