public class LinkBlock extends AbstractBlock
Block.Axes| Constructor and Description |
|---|
LinkBlock(List<Block> childrenBlocks,
ResourceReference reference,
boolean freestanding) |
LinkBlock(List<Block> childrenBlocks,
ResourceReference reference,
boolean freestanding,
Map<String,String> parameters) |
| Modifier and Type | Method and Description |
|---|---|
void |
after(Listener listener)
Send
Listener events corresponding to the end of the block. |
void |
before(Listener listener)
Send
Listener events corresponding to the start of the block. |
LinkBlock |
clone(BlockFilter blockFilter)
Return a copy of the block with filtered children.
|
boolean |
equals(Object obj) |
ResourceReference |
getReference() |
int |
hashCode() |
boolean |
isFreeStandingURI() |
addChild, addChildren, clone, getBlocks, getChildren, getFirstBlock, getNextSibling, getParameter, getParameters, getParent, getPreviousSibling, getRoot, insertChildAfter, insertChildBefore, removeBlock, replaceChild, replaceChild, setChildren, setNextSiblingBlock, setParameter, setParameters, setParent, setPreviousSiblingBlock, traversepublic LinkBlock(List<Block> childrenBlocks, ResourceReference reference, boolean freestanding)
childrenBlocks - the nested children blocksreference - the reference to the target resource to link tofreestanding - if true then the link is a free standing URI directly in the textpublic LinkBlock(List<Block> childrenBlocks, ResourceReference reference, boolean freestanding, Map<String,String> parameters)
childrenBlocks - the nested children blocksreference - the reference to the target resource to link tofreestanding - if true then the link is a free standing URI directly in the textparameters - the parameters to setpublic ResourceReference getReference()
ResourceReferencepublic boolean isFreeStandingURI()
public void before(Listener listener)
AbstractBlockListener events corresponding to the start of the block. For example
for a Bold block, this allows an XHTML Listener (aka a Renderer) to output <b>.before in class AbstractBlocklistener - the listener that will receive the events sent by this block before its children blocks have
emitted their own events.public void after(Listener listener)
AbstractBlockListener events corresponding to the end of the block. For example for a Bold block, this allows an
XHTML Listener (aka a Renderer) to output </b>.after in class AbstractBlocklistener - the listener that will receive the events sent by this block before its children blocks have
emitted their own events.public LinkBlock clone(BlockFilter blockFilter)
clone in interface Blockclone in class AbstractBlockblockFilter - the Block filter.public boolean equals(Object obj)
equals in class AbstractBlockpublic int hashCode()
hashCode in class AbstractBlockCopyright © 2004–2016 XWiki. All rights reserved.