All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.openly.dt.Repeat

com.openly.dt.EncodingDynamicTag   |   +----com.openly.dt.ParsingDynamicTag           |           +----com.openly.dt.Repeat

public class Repeat
extends com.openly.dt.ParsingDynamicTag
Repeat is a dynamic tag implementation that uses 4 arguments. the fourth argument is the string, template or tag that is to be repeated. on each iteration, the value of the data item specified by the first item is incremented. tags should use this parameter to call out specific items from a list. the second argument specifies a start argument for the series, the third specifies the ending argument.

Conditional Text has a synonym in JSText, "repeat".

USAGE:

    [[@repeat(i,"0",n,@template(noframetarget.tpl)]]     means: compute noframetarget.tpl n+1 times    [[@repeat(i,"5","6",", [[i]]")]]     means: print ", 5, 6"
Check out Java and Linking related books at Openly.com!


Constructor Index

 o Repeat()

Method Index

 o writeValue(String, Params, OutputStream)

Constructors

 o Repeat
 public Repeat()

Methods

 o writeValue
 public void writeValue(java.lang.String param,                        com.openly.util.Params params,                        java.io.OutputStream out) throws java.io.IOException
Overrides:
writeValue in class com.openly.dt.EncodingDynamicTag

All Packages  Class Hierarchy  This Package  Previous  Next  Index