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 ResourcesContainerClearedListenerThis listener provides callbacks to observe
ResourcesContainer instances.- See Also:
ResourcesContainer,Images,Fonts,Maps,Sounds,Spritesheets
Method Summary
Modifier and Type Method Description default voidadded(java.lang.String resourceName, T resource)This method gets called after theResourcesContainer.addmethod was executed.default voidcleared()This method gets called after theResourcesContainer.clearmethod was executed.default voidremoved(java.lang.String resourceName, T resource)This method gets called after theResourcesContainer.removemethod was executed.
Method Details
added
This method gets called after theResourcesContainer.addmethod 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.removemethod 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:ResourcesContainerClearedListenerThis method gets called after theResourcesContainer.clearmethod was executed.- Specified by:
clearedin interfaceResourcesContainerClearedListener- See Also:
ResourcesContainer.clear()
