Package snap.util

Interface Loadable

All Known Implementing Classes:
Clipboard, Image, J2DImage, Loadable.MultiLoadable, SwingClipboard

public interface Loadable
An interface to identify classes that have external resources that may not be immediately available.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    A class to load a list of loadables.
    static class 
    A class to store a list of loadables.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
    Returns whether resource is loaded.
  • Method Details

    • isLoaded

      boolean isLoaded()
      Returns whether resource is loaded.
    • addLoadListener

      void addLoadListener(Runnable aRun)
      Adds a callback to be triggered when resources loaded (cleared automatically when loaded).
    • getAsLoadable

      static Loadable getAsLoadable(Loadable... theLoadables)
      Returns a combined loadable for given array of loadables.
    • getAsLoadable

      static Loadable getAsLoadable(List<? extends Loadable> theLoadables)
      Returns a combined loadable for given array of loadables.