com.primix.tapestry.components
Class Insert

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

public class Insert
extends AbstractComponent

Used to insert some text (from a parameter) into the HTML.
Parameter Type Read / Write Required Default Description
value Object R no   The value to be inserted. If the binding is null, then nothing is inserted. Any object may be inserted, the toString() method is used to convert it to a printable value.
format Format no   An optional format object used to convert the value parameter for insertion into the HTML response.
raw boolean no false If true, then the method IResponseWriter.printRaw(String) is used , rather than IResponseWriter.print(String).

Informal parameters are not allowed. The component must not have a body.

Version:
$Id: Insert.java,v 1.10 2001/05/02 14:15:15 hship Exp $
Author:
Howard Ship

Fields inherited from class com.primix.tapestry.AbstractComponent
id, page, specification, wrapped, wrappedCount
 
Constructor Summary
Insert()
           
 
Method Summary
 IBinding getFormatBinding()
           
 IBinding getRawBinding()
           
 IBinding getValueBinding()
           
 void render(IResponseWriter writer, IRequestCycle cycle)
          Prints its value parameter, possibly formatted by its format parameter.
 void setFormatBinding(IBinding value)
           
 void setRawBinding(IBinding value)
           
 void setValueBinding(IBinding value)
           
 
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

Insert

public Insert()
Method Detail

getFormatBinding

public IBinding getFormatBinding()

setFormatBinding

public void setFormatBinding(IBinding value)

getValueBinding

public IBinding getValueBinding()

getRawBinding

public IBinding getRawBinding()

setRawBinding

public void setRawBinding(IBinding value)

render

public void render(IResponseWriter writer,
                   IRequestCycle cycle)
            throws RequestCycleException
Prints its value parameter, possibly formatted by its format parameter. Notes:

setValueBinding

public void setValueBinding(IBinding value)