public class ImageBlock extends AbstractBlock
Block.Axes
LIST_BLOCK_TYPE
Constructor and Description |
---|
ImageBlock(ResourceReference reference,
boolean freestanding) |
ImageBlock(ResourceReference reference,
boolean freestanding,
Map<String,String> parameters) |
Modifier and Type | Method and Description |
---|---|
ImageBlock |
clone(BlockFilter blockFilter)
Return a copy of the block with filtered children.
|
boolean |
equals(Object obj) |
ResourceReference |
getReference() |
int |
hashCode() |
boolean |
isFreeStandingURI() |
void |
traverse(Listener listener)
Let the block send
Listener events corresponding to its content. |
addChild, addChildren, after, before, clone, getBlocks, getChildren, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getPreviousSibling, getRoot, indexOf, insertChildAfter, insertChildBefore, removeBlock, replaceChild, replaceChild, setChildren, setNextSiblingBlock, setParameter, setParameters, setParent, setPreviousSiblingBlock
public ImageBlock(ResourceReference reference, boolean freestanding)
reference
- the image referencefreestanding
- indicate if the image syntax is simple a full descriptive syntax (detail depending of the
syntax)public ImageBlock(ResourceReference reference, boolean freestanding, Map<String,String> parameters)
reference
- the image referencefreestanding
- indicate if the image syntax is simple a full descriptive syntax (detail depending of the
syntax)parameters
- the custom parameterspublic ResourceReference getReference()
ResourceReference
public boolean isFreeStandingURI()
public void traverse(Listener listener)
Block
Listener
events corresponding to its content. For example a Paragraph block will send
the Listener.beginParagraph(java.util.Map<java.lang.String, java.lang.String>)
and
Listener.endParagraph(java.util.Map<java.lang.String, java.lang.String>)
events when this method is called.traverse
in interface Block
traverse
in class AbstractBlock
listener
- the listener to which to send the events to.public ImageBlock clone(BlockFilter blockFilter)
clone
in interface Block
clone
in class AbstractBlock
blockFilter
- the Block filter.public boolean equals(Object obj)
equals
in class AbstractBlock
public int hashCode()
hashCode
in class AbstractBlock
Copyright © 2004–2021 XWiki. All rights reserved.