Interface AsynchronousLoading
-
- All Known Implementing Classes:
ImageBackedFilterableRadianceIcon,RadianceAsyncLoadingIconUIResource
public interface AsynchronousLoadingThis interface is used for asynchronously-loaded contents. For example, the SVG-based implementation ofRadianceIconin SVG Transcoder uses theExecutorServiceto load the SVG image in the background. When the image is loaded, the component that contains this image (command button from Flamingo, for example) is notified so that it can repaint itself.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddAsynchronousLoadListener(AsynchronousLoadListener l)Adds listener on the asynchronous loading events.booleanisLoading()Returns indication whether the content is still loading.voidremoveAsynchronousLoadListener(AsynchronousLoadListener l)Removes listener on the asynchronous loading events.
-
-
-
Method Detail
-
addAsynchronousLoadListener
void addAsynchronousLoadListener(AsynchronousLoadListener l)
Adds listener on the asynchronous loading events.- Parameters:
l- Listener to add.
-
removeAsynchronousLoadListener
void removeAsynchronousLoadListener(AsynchronousLoadListener l)
Removes listener on the asynchronous loading events.- Parameters:
l- Listener to remove.
-
isLoading
boolean isLoading()
Returns indication whether the content is still loading.- Returns:
trueif the content is still loading,falseotherwise.
-
-