org.peaseplate.chunk
Interface ExpandableBlock

All Superinterfaces:
BlockHead, Chunk
All Known Implementing Classes:
AbstractIfBlock, ElseIfBlock, IfBlock, WhileBlock, WithBlock, WithEachBlock

public interface ExpandableBlock
extends BlockHead

Marks a block head chunk as beeing expandable by a chunk that implements the BlockExpansion interface.

Author:
Manfred HANTSCHEL

Method Summary
 void addExpansion(BlockExpansion chunk)
          Add the specified chunk as expansion to this block.
 
Methods inherited from interface org.peaseplate.chunk.BlockHead
getBlock, renderBlock, setBlock
 
Methods inherited from interface org.peaseplate.chunk.Chunk
getColumn, getLine, getLocator, isEssential, isVisible, render, toString
 

Method Detail

addExpansion

void addExpansion(BlockExpansion chunk)
                  throws TemplateException
Add the specified chunk as expansion to this block.

Parameters:
chunk - the chunk
Throws:
TemplateException - if the block does not like the specified chunk


Copyright © 2008. All Rights Reserved.