org.xwiki.rendering.block
Class ImageBlock

java.lang.Object
  extended by org.xwiki.rendering.block.AbstractBlock
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface org.xwiki.rendering.block.Block
Block.Axes
 
Constructor Summary
ImageBlock(ResourceReference reference, boolean isFreeStandingURI)
           
ImageBlock(ResourceReference reference, boolean isFreeStandingURI, Map<String,String> parameters)
           
 
Method Summary
 ImageBlock clone(BlockFilter blockFilter)
          Return a copy of the block with filtered children.
 ResourceReference getReference()
           
 boolean isFreeStandingURI()
           
 void traverse(Listener listener)
          Let the block send Listener events corresponding to its content.
 
Methods inherited from class org.xwiki.rendering.block.AbstractBlock
addChild, addChildren, after, before, clone, equals, getBlocks, getChildren, getChildrenByType, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getParentBlockByType, getPreviousBlockByType, getPreviousSibling, getRoot, hashCode, insertChildAfter, insertChildBefore, removeBlock, replaceChild, replaceChild, setChildren, setNextSiblingBlock, setParameter, setParameters, setParent, setPreviousSiblingBlock
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageBlock

public ImageBlock(ResourceReference reference,
                  boolean isFreeStandingURI)
Parameters:
reference - the image reference
isFreeStandingURI - 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 reference
isFreeStandingURI - indicate if the image syntax is simple a full descriptive syntax (detail depending of the syntax)
parameters - the custom parameters
Since:
2.5RC1
Method Detail

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-2011 XWiki. All Rights Reserved.