Package com.google.gwt.cell.client
Interface ImageLoadingCell.Renderers
- All Known Implementing Classes:
ImageLoadingCell.DefaultRenderers
- Enclosing class:
- ImageLoadingCell
public static interface ImageLoadingCell.Renderers
The renderers used by this cell.
-
Method Summary
Modifier and TypeMethodDescriptionGet the renderer used to render an error message when the image does not load.Get the renderer used to render the image.Get the renderer used to render a loading message.
-
Method Details
-
getErrorRenderer
SafeHtmlRenderer<String> getErrorRenderer()Get the renderer used to render an error message when the image does not load. By default, the broken image is rendered.- Returns:
- the
SafeHtmlRendererused when the image doesn't load
-
getImageRenderer
SafeHtmlRenderer<String> getImageRenderer()Get the renderer used to render the image. This renderer must render animgelement, which triggers theloadorerrorevent that this cell handles.- Returns:
- the
SafeHtmlRendererused to render the image
-
getLoadingRenderer
SafeHtmlRenderer<String> getLoadingRenderer()Get the renderer used to render a loading message. By default, an animated loading icon is rendered.- Returns:
- the
SafeHtmlRendererused to render the loading html
-