Package org.xwiki.rendering.block
Class ImageBlock
java.lang.Object
org.xwiki.rendering.block.AbstractBlock
org.xwiki.rendering.block.ImageBlock
Represents an image.
- Since:
- 1.7M2
- Version:
- $Id: 74e089e1c07e24e57610e454efa9eabb89d4f04d $
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.xwiki.rendering.block.Block
Block.Axes -
Field Summary
Fields inherited from interface org.xwiki.rendering.block.Block
LIST_BLOCK_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionImageBlock(ResourceReference reference, boolean freestanding) ImageBlock(ResourceReference reference, boolean freestanding, String id, Map<String, String> parameters) ImageBlock(ResourceReference reference, boolean freestanding, Map<String, String> parameters) -
Method Summary
Modifier and TypeMethodDescriptionclone(BlockFilter blockFilter) Return a copy of the block with filtered children.booleangetId()inthashCode()booleanvoidvoidLet the block sendListenerevents corresponding to its content.Methods inherited from class org.xwiki.rendering.block.AbstractBlock
addChild, addChildren, after, before, clone, get, getAttribute, getAttributes, getBlocks, getChildren, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getPreviousSibling, getRoot, getSyntaxMetadata, indexOf, insertChildAfter, insertChildBefore, removeBlock, replaceChild, replaceChild, setAttribute, setAttributes, setChildren, setNextSiblingBlock, setParameter, setParameters, setParent, setPreviousSiblingBlock
-
Constructor Details
-
ImageBlock
- Parameters:
reference- the image referencefreestanding- indicate if the image syntax is simple a full descriptive syntax (detail depending of the syntax)- Since:
- 2.5RC1
-
ImageBlock
- Parameters:
reference- the image referencefreestanding- indicate if the image syntax is simple a full descriptive syntax (detail depending of the syntax)parameters- the custom parameters- Since:
- 2.5RC1
-
ImageBlock
public ImageBlock(ResourceReference reference, boolean freestanding, String id, Map<String, String> parameters) - Parameters:
reference- the image referencefreestanding- indicate if the image syntax is simple a full descriptive syntax (detail depending of the syntax)id- the (automatically generated) id of the imageparameters- the custom parameters- Since:
- 14.2RC1
-
-
Method Details
-
getReference
- Returns:
- the reference to the image
- Since:
- 2.5RC1
- See Also:
-
isFreeStandingURI
public boolean isFreeStandingURI()- Returns:
- true if the image is defined as a free standing URI directly in the text, false otherwise
-
setId
- Parameters:
id- the id of the image to set- Since:
- 14.2RC1
-
getId
- Returns:
- the id of the image
- Since:
- 14.2RC1
-
traverse
Description copied from interface:BlockLet the block sendListenerevents corresponding to its content. For example a Paragraph block will send theListener.beginParagraph(java.util.Map<java.lang.String, java.lang.String>)andListener.endParagraph(java.util.Map<java.lang.String, java.lang.String>)events when this method is called.- Specified by:
traversein interfaceBlock- Overrides:
traversein classAbstractBlock- Parameters:
listener- the listener to which to send the events to.
-
clone
Return a copy of the block with filtered children.- Specified by:
clonein interfaceBlock- Overrides:
clonein classAbstractBlock- Parameters:
blockFilter- the Block filter.- Returns:
- the filtered Block.
- Since:
- 1.8RC2
-
equals
- Overrides:
equalsin classAbstractBlock
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractBlock
-