com.primix.tapestry.components
Class Block

java.lang.Object
  |
  +--com.primix.tapestry.AbstractComponent
        |
        +--com.primix.tapestry.components.Block
All Implemented Interfaces:
IComponent, IRender

public class Block
extends AbstractComponent

Prevents its contents from being rendered until triggered by an InsertBlock component.

Has no parameters and does not allow informal parameters. Allows a body (in fact, its pretty useless without one).

Block and InsertBlock are used to build a certain class of complicated component that can't be assembled using the normal wrapping containment. Such a super component would have two or more sections that need to be supplied by the containing page (or component).

Using Blocks, the blocks can be provided as parameters to the super component.

Since:
0.2.9
Version:
$Id: Block.java,v 1.4 2001/08/28 20:33:41 hship Exp $
Author:
Howard Ship

Fields inherited from class com.primix.tapestry.AbstractComponent
id, page, specification, wrapped, wrappedCount
 
Constructor Summary
Block()
           
 
Method Summary
 void render(IResponseWriter writer, IRequestCycle cycle)
          Does nothing; the idea of a Block is to defer the rendering of the body of the block until a InsertBlock forces it out.
 
Methods inherited from class com.primix.tapestry.AbstractComponent
addAsset, addComponent, addWrapped, cleanupAfterRender, cleanupComponent, finishLoad, finishLoad, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getChangeObserver, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getPage, getSpecification, prepareForRender, renderWrapped, reset, setBinding, setContainer, setId, setPage, setSpecification, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Block

public Block()
Method Detail

render

public void render(IResponseWriter writer,
                   IRequestCycle cycle)
            throws RequestCycleException
Does nothing; the idea of a Block is to defer the rendering of the body of the block until a InsertBlock forces it out.