Interface AsynchronousLoading
-
- All Known Implementing Classes:
DecoratedResizableIcon,IconDeckResizableIcon,IcoWrapperResizableIcon,ImageWrapperResizableIcon
public interface AsynchronousLoadingThis interface is used for asynchronously-loaded contents. When the image is loaded, the component that contains this image (JCommandButtonfor example) is notified to 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.
-
-