Interface ResourcesContainerListener<T>
- Type Parameters:
T
- The type of the resource that is managed by the container.
- All Superinterfaces:
java.util.EventListener
,ResourcesContainerClearedListener
public interface ResourcesContainerListener<T>
extends ResourcesContainerClearedListener
This listener provides callbacks to observe
ResourcesContainer
instances.- See Also:
ResourcesContainer
,Images
,Fonts
,Maps
,Sounds
,Spritesheets
Method Summary
Modifier and Type Method Description default void
added(java.lang.String resourceName, T resource)
This method gets called after theResourcesContainer.add
method was executed.default void
cleared()
This method gets called after theResourcesContainer.clear
method was executed.default void
removed(java.lang.String resourceName, T resource)
This method gets called after theResourcesContainer.remove
method was executed.
Method Details
added
This method gets called after theResourcesContainer.add
method was executed.- Parameters:
resourceName
- The name by which the added resource is identified.resource
- The added resource.- See Also:
ResourcesContainer.add(String, Object)
removed
This method gets called after theResourcesContainer.remove
method was executed.- Parameters:
resourceName
- The name by which the removed resource was identified.resource
- The removed resource.- See Also:
ResourcesContainer.remove(String)
cleared
default void cleared()Description copied from interface:ResourcesContainerClearedListener
This method gets called after theResourcesContainer.clear
method was executed.- Specified by:
cleared
in interfaceResourcesContainerClearedListener
- See Also:
ResourcesContainer.clear()