TestHD.java

Go to the documentation of this file.
00001 package cedar.hepdata.webapp.components;
00002 
00003 import org.apache.tapestry.MarkupWriter;
00004 import org.apache.tapestry.annotations.*;
00005 import cedar.hepdata.model.*;
00006 
00007 public class TestHD {
00008 
00009     @BeginRender
00010     void renderMessage(MarkupWriter writer) {
00011         writer.element("h2");
00012         writer.write("Bonjour from TestHD component");
00013         writer.end();
00014         writer.element("p");
00015         writer.write("The FOO parameter is " + _foo + ".");
00016         writer.end();
00017         writer.element("p");
00018         writer.write("The BAR parameter is " + _bar + ".");
00019         writer.end();
00020 
00021         if (_dataset != null) {
00022             writer.element("table");
00023             for (YAxis y : _dataset.getYAxes()) {
00024                 writer.element("th");
00025                 writer.write(y.getHeader());
00026                 writer.end();
00027             }
00028             writer.end();
00029         }
00030 
00031     }
00032 
00033     @Parameter(name="ds")
00034     private Dataset _dataset;
00035 
00036     @Parameter
00037     private String _foo = "wibble";
00038 
00039     @Parameter
00040     private int _bar = -1;
00041 
00042 }

Generated on Tue Apr 21 15:55:00 2009 for HepData Web servlets by  doxygen 1.5.5