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 java.lang.Object implements ItemView
Abstract base class forItemViewimplementing classes.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractItemView()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLocationListener(int index, @NotNull LocationListener locationListener)Adds aLocationListenerto be notified when the item displayed in a floor slot has changed.voidaddLocationsListener(@NotNull LocationsListener locationsListener)Adds aLocationsListenerto be notified when any displayed item has changed.protected voidaddModified(int index)Marks a slot as modified.protected voidaddModifiedRange(int firstIndex, int lastIndex)Marks a range of slots as modified.voidremoveLocationListener(int index, @NotNull LocationListener locationListener)Removes aLocationListenerto be notified when the item displayed in a floor slot has changed.voidremoveLocationsListener(@NotNull LocationsListener locationsListener)Removes aLocationsListenerto be notified when any displayed item has changed.
-
-
-
Method Detail
-
addLocationsListener
public void addLocationsListener(@NotNull @NotNull LocationsListener locationsListener)Description copied from interface:ItemViewAdds aLocationsListenerto be notified when any displayed item has changed.- Specified by:
addLocationsListenerin interfaceItemView- Parameters:
locationsListener- the locations listener to add
-
removeLocationsListener
public void removeLocationsListener(@NotNull @NotNull LocationsListener locationsListener)Description copied from interface:ItemViewRemoves aLocationsListenerto be notified when any displayed item has changed.- Specified by:
removeLocationsListenerin interfaceItemView- Parameters:
locationsListener- the locations listener to remove
-
addLocationListener
public void addLocationListener(int index, @NotNull @NotNull LocationListener locationListener)Description copied from interface:ItemViewAdds aLocationListenerto be notified when the item displayed in a floor slot has changed.- Specified by:
addLocationListenerin interfaceItemView- Parameters:
index- the floor slotlocationListener- the location listener to add
-
removeLocationListener
public void removeLocationListener(int index, @NotNull @NotNull LocationListener locationListener)Description copied from interface:ItemViewRemoves aLocationListenerto be notified when the item displayed in a floor slot has changed.- Specified by:
removeLocationListenerin interfaceItemView- Parameters:
index- the floor slotlocationListener- 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 indexlastIndex- the last modified slot index
-
addModified
protected void addModified(int index)
Marks a slot as modified.- Parameters:
index- the modified slot index
-
-