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