public interface ItemView
CfItems
.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. |
@Nullable CfItem |
getItem(int index)
Returns the
CfItem in a given slot. |
int |
getSize()
Returns the number of items.
|
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. |
int getSize()
@Nullable @Nullable CfItem getItem(int index)
CfItem
in a given slot.index
- the slot indexnull
if the slot is emptyvoid addLocationsListener(@NotNull @NotNull LocationsListener locationsListener)
LocationsListener
to be notified when any displayed item
has changed.locationsListener
- the locations listener to addvoid removeLocationsListener(@NotNull @NotNull LocationsListener locationsListener)
LocationsListener
to be notified when any displayed
item has changed.locationsListener
- the locations listener to removevoid addLocationListener(int index, @NotNull @NotNull LocationListener locationListener)
LocationListener
to be notified when the item displayed in
a floor slot has changed.index
- the floor slotlocationListener
- the location listener to addvoid removeLocationListener(int index, @NotNull @NotNull LocationListener locationListener)
LocationListener
to be notified when the item displayed
in a floor slot has changed.index
- the floor slotlocationListener
- the location listener to remove