T5Demo.java

Go to the documentation of this file.
00001 package cedar.hepdata.webapp.pages;
00002 
00003 import cedar.hepdata.model.*;
00004 import java.util.*;
00005 
00006 import org.apache.tapestry.annotations.*;
00007 import org.apache.tapestry.services.*;
00008 
00009 
00011 public class T5Demo
00012 {
00013     public Data getDemoData() {
00014         return Data.makeExample();
00015     }
00016 
00017     public Dataset getDemoDataset() {
00018         SortedSet<Dataset> datasets = getDemoData().getFirstPaper().getDatasets();
00019         return datasets.first();
00020     }
00021 
00022     @Inject
00023     private RequestGlobals _reqGlobals;
00024 
00025     public String getQueryParam() {
00026         try {
00027             return _reqGlobals.getRequest().getParameter("foo");
00028         } catch (Exception e) {
00029             return "oh well";
00030         }
00031     }
00032 
00033     public List<YAxis> getDemoAxes() {
00034         return new Vector(getDemoDataset().getYAxes());
00035     }
00036 
00037 
00038 }

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