DisplayDatasetComments.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 DisplayDatasetComments {
00008 
00009     @BeginRender
00010     void renderMessage(MarkupWriter writer) {
00011          
00012         if(_yaxis != null){
00013           _dataset = _yaxis.getDataset();
00014         }
00015 
00016         if(_reaction != null){
00017           _yaxis = _reaction.getYAxis();
00018           _dataset = _yaxis.getDataset();
00019         }
00020 
00021         if ( _dataset != null) {
00022             for (String comment : _dataset.getComments()) {
00023                 writer.write(comment);
00024             }
00025         }
00026     }
00027 
00028     @Parameter(name="ds")
00029     private Dataset _dataset;
00030 
00031     @Parameter(name="yax")
00032     private YAxis _yaxis;
00033 
00034     @Parameter(name="re")
00035     private AxisReaction _reaction;
00036 
00037 }

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