Package snap.util
Interface Loadable
- All Known Implementing Classes:
Clipboard
,Image
,Loadable.MultiLoadable
public interface Loadable
An interface to identify classes that have external resources that may not be immediately available.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
A class to load a list of loadables.static class
A class to store a list of loadables. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLoadListener
(Runnable aRun) Adds a callback to be triggered when resources loaded (cleared automatically when loaded).static Loadable
getAsLoadable
(List<? extends Loadable> theLoadables) Returns a combined loadable for given array of loadables.static Loadable
getAsLoadable
(Loadable... theLoadables) Returns a combined loadable for given array of loadables.boolean
isLoaded()
Returns whether resource is loaded.
-
Method Details
-
isLoaded
boolean isLoaded()Returns whether resource is loaded. -
addLoadListener
Adds a callback to be triggered when resources loaded (cleared automatically when loaded). -
getAsLoadable
Returns a combined loadable for given array of loadables. -
getAsLoadable
Returns a combined loadable for given array of loadables.
-