DisplayExperiments.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 DisplayExperiments {
00008 
00009     @BeginRender
00010     void renderMessage(MarkupWriter writer) {
00011 
00012         if(_dataset != null){
00013           _paper = _dataset.getPaper();
00014         }
00015 
00016         if(_yaxis != null){
00017           _dataset = _yaxis.getDataset();
00018           _paper = _dataset.getPaper();
00019         }
00020 
00021 
00022         if ( _paper != null) {
00023             for (Experiment _exp : _paper.getExperiments()) {
00024                 writer.write(_exp.getName());
00025             }
00026         }
00027     }
00028 
00029     @Parameter(name="p")
00030     private Paper _paper;
00031 
00032     @Parameter(name="ds")
00033     private Dataset _dataset;
00034 
00035     @Parameter(name="yax")
00036     private YAxis _yaxis;
00037 
00038 }

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