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
Abstract base class for
ItemView implementing classes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLocationListener(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.
-
Constructor Details
-
AbstractItemView
protected AbstractItemView()Creates a new instance.
-
-
Method Details
-
addLocationsListener
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
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
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
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
-