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
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 |
Insert
public Insert()
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:
- If the cycle is rewinding, then this method does nothing.
- If both the value is null, then this method does nothing
- If the format is non-null, then
Format.format(Object)
is invoked and
the resulting String is what's inserted.
- The method will use either
IResponseWriter.print(String)
or
IResponseWriter.printRaw(String)
, depending on the value
of the raw parameter.
setValueBinding
public void setValueBinding(IBinding value)