Interface AsynchronousLoading
-
- All Known Implementing Classes:
DecoratedRadianceIcon
,IconDeckRadianceIcon
,ImageBackedFilterableRadianceIcon
,RadianceAsyncLoadingIconUIResource
public interface AsynchronousLoading
This interface is used for asynchronously-loaded contents. For example, the SVG-based implementation ofRadianceIcon
in SVG Transcoder uses theExecutorService
to load the SVG image in the background. When the image is loaded, the component that contains this image (command button from Component, for example) is notified so that it can repaint itself.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAsynchronousLoadListener(AsynchronousLoadListener l)
Adds listener on the asynchronous loading events.boolean
isLoading()
Returns indication whether the content is still loading.void
removeAsynchronousLoadListener(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:
true
if the content is still loading,false
otherwise.
-
-