org.xwiki.rendering.block
Class ImageBlock
java.lang.Object
org.xwiki.rendering.block.AbstractBlock
org.xwiki.rendering.block.ImageBlock
- All Implemented Interfaces:
- Cloneable, Block
public class ImageBlock
- extends AbstractBlock
Represents an image.
- Since:
- 1.7M2
- Version:
- $Id: c4dcacc3c715ba922de2e34139336ad3a4a19e2a $
| Nested classes/interfaces inherited from interface org.xwiki.rendering.block.Block |
Block.Axes |
| Methods inherited from class org.xwiki.rendering.block.AbstractBlock |
addChild, addChildren, after, before, clone, equals, getBlocks, getChildren, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getPreviousSibling, getRoot, hashCode, insertChildAfter, insertChildBefore, removeBlock, replaceChild, replaceChild, setChildren, setNextSiblingBlock, setParameter, setParameters, setParent, setPreviousSiblingBlock |
ImageBlock
public ImageBlock(ResourceReference reference,
boolean isFreeStandingURI)
- Parameters:
reference - the image referenceisFreeStandingURI - indicate if the image syntax is simple a full descriptive syntax (detail depending of
the syntax)- Since:
- 2.5RC1
ImageBlock
public ImageBlock(ResourceReference reference,
boolean isFreeStandingURI,
Map<String,String> parameters)
- Parameters:
reference - the image referenceisFreeStandingURI - indicate if the image syntax is simple a full descriptive syntax (detail depending of
the syntax)parameters - the custom parameters- Since:
- 2.5RC1
getReference
public ResourceReference getReference()
- Returns:
- the reference to the image
- Since:
- 2.5RC1
- See Also:
ResourceReference
isFreeStandingURI
public boolean isFreeStandingURI()
- Returns:
- true if the image is defined as a free standing URI directly in the text, false otherwise
traverse
public void traverse(Listener listener)
- Description copied from interface:
Block
- Let the block send
Listener events corresponding to its content. For example a Paragraph block will send
the Listener.beginParagraph(java.util.Map) and
Listener.endParagraph(java.util.Map) events when this method is called.
- Specified by:
traverse in interface Block- Overrides:
traverse in class AbstractBlock
- Parameters:
listener - the listener to which to send the events to.
clone
public ImageBlock clone(BlockFilter blockFilter)
- Return a copy of the block with filtered children.
- Specified by:
clone in interface Block- Overrides:
clone in class AbstractBlock
- Parameters:
blockFilter - the Block filter.
- Returns:
- the filtered Block.
- Since:
- 1.8RC2
Copyright © 2004-2014 XWiki. All Rights Reserved.