fr.ifremer.wao.ui.pages
Class SampleRowForm

java.lang.Object
  extended by fr.ifremer.wao.ui.pages.SampleRowForm

@RequiresAuthentication(allowedRoles={ADMIN,COORDINATOR},
                        readOnlyAllowed=false)
@Import(stylesheet="context:css/sampling.css")
public class SampleRowForm
extends Object

SampleRowForm Created: 26 nov. 2009

Author:
fdesbois

Constructor Summary
SampleRowForm()
           
 
Method Summary
 List<Boat> getBoats()
           
 List<Company> getCompanies()
           
 GenericSelectModel<Company> getCompanySelectModel()
           
 DateFormat getDateFormat()
           
 String getDcf5codes()
           
 String getExpectedDateFormat()
          get the format of date needed to fill the value of SampleRow#expectedDate
 List<FishingZone> getFishingZones()
          Get the list of FishingZones from the SampleRow.
 GenericSelectModel<FishingZone> getFishingZoneSelectModel()
          Get the select model for FishingZone.
 String getMonthStyle()
           
 List<TerrestrialDivision> getObservationUnits()
           
 List<WaoUser> getObservers()
           
 org.nuiton.util.PeriodDates getPeriod()
           
 org.apache.tapestry5.beaneditor.BeanModel<Profession> getProfessionModel()
          Get the Profession model for BeanDisplay component.
 GenericSelectModel<SampleRow> getProfessionSelectModel()
          Get SelectModel for profession input Select.
 org.apache.tapestry5.Block getProgramBlock()
           
 org.apache.tapestry5.SelectModel getProgramSelectModel()
           
 List<TerrestrialLocation> getRegionIfremers()
           
 List<SampleMonth> getSampleMonths()
           
 SampleRow getSampleRow()
           
 SampleRowLog getSampleRowLog()
           
 org.apache.tapestry5.beaneditor.BeanModel<SampleRow> getSampleRowModel()
           
 GenericSelectModel<TerrestrialLocation> getTerrestrialLocationSelectModel()
           
 boolean isCreateMode()
           
protected  void saveProgram()
           
 void setDcf5codes(String dcf5codes)
           
 boolean showObsVente()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleRowForm

public SampleRowForm()
Method Detail

showObsVente

public boolean showObsVente()

getProgramBlock

public org.apache.tapestry5.Block getProgramBlock()

getProfessionSelectModel

public GenericSelectModel<SampleRow> getProfessionSelectModel()
                                                       throws WaoException
Get SelectModel for profession input Select. The select contains all existing professions.

Returns:
a GenericSelectModel
Throws:
WaoException

getProfessionModel

public org.apache.tapestry5.beaneditor.BeanModel<Profession> getProfessionModel()
Get the Profession model for BeanDisplay component.

Returns:
a BeanModel

getDcf5codes

public String getDcf5codes()

setDcf5codes

public void setDcf5codes(String dcf5codes)

getFishingZoneSelectModel

public GenericSelectModel<FishingZone> getFishingZoneSelectModel()
                                                          throws WaoException
Get the select model for FishingZone. The select contains all existing fishingZones.

Returns:
a GenericSelectModel
Throws:
WaoException

getFishingZones

public List<FishingZone> getFishingZones()
                                  throws WaoException
Get the list of FishingZones from the SampleRow.

Returns:
a List of FishingZone linked with the SampleRow
Throws:
WaoException

getTerrestrialLocationSelectModel

public GenericSelectModel<TerrestrialLocation> getTerrestrialLocationSelectModel()

getProgramSelectModel

public org.apache.tapestry5.SelectModel getProgramSelectModel()
                                                       throws WaoException
Throws:
WaoException

getPeriod

public org.nuiton.util.PeriodDates getPeriod()
                                      throws WaoException
Throws:
WaoException

getSampleMonths

public List<SampleMonth> getSampleMonths()
                                  throws WaoException
Throws:
WaoException

getDateFormat

public DateFormat getDateFormat()

getMonthStyle

public String getMonthStyle()

saveProgram

protected void saveProgram()
                    throws WaoException
Throws:
WaoException

getExpectedDateFormat

public String getExpectedDateFormat()
get the format of date needed to fill the value of SampleRow#expectedDate


getObservers

public List<WaoUser> getObservers()

getObservationUnits

public List<TerrestrialDivision> getObservationUnits()

getBoats

public List<Boat> getBoats()

getRegionIfremers

public List<TerrestrialLocation> getRegionIfremers()

getSampleRow

public SampleRow getSampleRow()
                       throws WaoException
Throws:
WaoException

getSampleRowLog

public SampleRowLog getSampleRowLog()
                             throws WaoException
Throws:
WaoException

getSampleRowModel

public org.apache.tapestry5.beaneditor.BeanModel<SampleRow> getSampleRowModel()

getCompanySelectModel

public GenericSelectModel<Company> getCompanySelectModel()
                                                  throws WaoException
Throws:
WaoException

getCompanies

public List<Company> getCompanies()
                           throws WaoException
Throws:
WaoException

isCreateMode

public boolean isCreateMode()
                     throws WaoException
Throws:
WaoException


Copyright © 2009-2012 Ifremer. All Rights Reserved.