home *** CD-ROM | disk | FTP | other *** search
Java Source | 1999-02-03 | 723 b | 28 lines |
- package com.everyware.tango.jas;
-
- import com.everyware.tango.jas.*;
-
- /**
- * @author <a href="http://www.pervasive.com/">Pervasive Software Inc.</a>, 1997, 1999.
- */
-
- public class Echo extends Action
- {
- // provide an implementation of customProcessing to do the work
- public void customProcessing(String argv[])
- {
- int i;
- // first declare how many columns per row
- setNumColumns(1);
- // use the second argument to control our iteration
- Integer iteration = new Integer(argv[1]);
- // now go into a loop returning the first argument in multiple rows
- for (i=0; i< iteration.intValue(); i++) {
- // start a new row
- newRow();
- // add a column to the row
- newColumn(argv[0]);
- }
- }
- }
-