Package org.xwiki.rendering.listener
Interface ImageListener
- All Known Subinterfaces:
ChainingListener,ContentHandlerStreamRenderer,Listener,PrintRenderer,Renderer,StackableChainingListener
- All Known Implementing Classes:
AbstractChainingListener,AbstractChainingPrintRenderer,BlockStateChainingListener,CompositeListener,ConsecutiveNewLineStateChainingListener,EmptyBlockChainingListener,GroupStateChainingListener,InlineFilterListener,LookaheadChainingListener,MetaDataStateChainingListener,QueueListener,SectionGeneratorListener,VoidListener,WrappingListener
public interface ImageListener
Contains callback events for Images,called when a document has been parsed and when it needs to be modified or
rendered.
- Since:
- 1.8RC3
- Version:
- $Id: 1e5bab9f62dbd2c47893909f9a0b814d6cf1dab2 $
- See Also:
-
Method Summary
-
Method Details
-
onImage
void onImage(ResourceReference reference, boolean freestanding, @Default("") Map<String, String> parameters) An image.- Parameters:
reference- the image referencefreestanding- if true then the image is defined directly as a URI in the textparameters- a generic list of parameters. Example: style="background-color: blue"
-
onImage
default void onImage(ResourceReference reference, boolean freestanding, String id, @Default("") Map<String, String> parameters) An image.- Parameters:
reference- the image referencefreestanding- if true then the image is defined directly as a URI in the textid- the (generated) id of the imageparameters- a generic list of parameters. Example: style="background-color: blue"- Since:
- 14.2RC1
-