public abstract class AbstractItemView extends java.lang.Object implements ItemView
ItemView
implementing classes.Modifier | Constructor and Description |
---|---|
protected |
AbstractItemView()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addLocationListener(int index,
@NotNull LocationListener locationListener)
Adds a
LocationListener to be notified when the item displayed in
a floor slot has changed. |
void |
addLocationsListener(@NotNull LocationsListener locationsListener)
Adds a
LocationsListener to be notified when any displayed item
has changed. |
protected void |
addModified(int index)
Marks a slot as modified.
|
protected void |
addModifiedRange(int firstIndex,
int lastIndex)
Marks a range of slots as modified.
|
void |
removeLocationListener(int index,
@NotNull LocationListener locationListener)
Removes a
LocationListener to be notified when the item displayed
in a floor slot has changed. |
void |
removeLocationsListener(@NotNull LocationsListener locationsListener)
Removes a
LocationsListener to be notified when any displayed
item has changed. |
public void addLocationsListener(@NotNull @NotNull LocationsListener locationsListener)
ItemView
LocationsListener
to be notified when any displayed item
has changed.addLocationsListener
in interface ItemView
locationsListener
- the locations listener to addpublic void removeLocationsListener(@NotNull @NotNull LocationsListener locationsListener)
ItemView
LocationsListener
to be notified when any displayed
item has changed.removeLocationsListener
in interface ItemView
locationsListener
- the locations listener to removepublic void addLocationListener(int index, @NotNull @NotNull LocationListener locationListener)
ItemView
LocationListener
to be notified when the item displayed in
a floor slot has changed.addLocationListener
in interface ItemView
index
- the floor slotlocationListener
- the location listener to addpublic void removeLocationListener(int index, @NotNull @NotNull LocationListener locationListener)
ItemView
LocationListener
to be notified when the item displayed
in a floor slot has changed.removeLocationListener
in interface ItemView
index
- the floor slotlocationListener
- the location listener to removeprotected void addModifiedRange(int firstIndex, int lastIndex)
firstIndex
- the first modified slot indexlastIndex
- the last modified slot indexprotected void addModified(int index)
index
- the modified slot index