fr.ifremer.wao.ui.pages
Class SampleRowForm

java.lang.Object
  extended by fr.ifremer.wao.ui.pages.SampleRowForm
All Implemented Interfaces:
WaoPage

@IncludeStylesheet(value="context:css/sampling.css")
public class SampleRowForm
extends Object
implements WaoPage

SampleRowForm Created: 26 nov. 2009

Author:
fdesbois

Constructor Summary
SampleRowForm()
           
 
Method Summary
 boolean canDisplay()
          Only admin with no readOnly rights can display SampleRowForm.
 GenericSelectModel<Company> getCompanySelectModel()
           
 DateFormat getDateFormat()
           
 List<FishingZone> getFishingZones()
          Get the list of FishingZones from the SampleRow.
 GenericSelectModel<FishingZone> getFishingZoneSelectModel()
          Get the select model for FishingZone.
 String getMonthStyle()
           
 org.nuiton.util.PeriodDates getPeriod()
           
 org.apache.tapestry5.beaneditor.BeanModel<Profession> getProfessionModel()
          Get the Profession model for BeanDisplay component.
 GenericSelectModel<Profession> getProfessionSelectModel()
          Get SelectModel for profession input Select.
 org.apache.tapestry5.SelectModel getProgramSelectModel()
           
 List<SampleMonth> getSampleMonths()
           
 SampleRow getSampleRow()
           
 SampleRowLog getSampleRowLog()
           
 org.apache.tapestry5.beaneditor.BeanModel<SampleRow> getSampleRowModel()
           
 void initialize()
          Used to initialize data in renderer of Layout component
 boolean isCreateMode()
           
protected  void saveProgram()
           
 
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

canDisplay

public boolean canDisplay()
Only admin with no readOnly rights can display SampleRowForm.

Specified by:
canDisplay in interface WaoPage
Returns:
true if the user can display the page

initialize

public void initialize()
Description copied from interface: WaoPage
Used to initialize data in renderer of Layout component

Specified by:
initialize in interface WaoPage

getProfessionSelectModel

public GenericSelectModel<Profession> 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

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

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

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

isCreateMode

public boolean isCreateMode()
                     throws WaoException
Throws:
WaoException


Copyright © 2009-2010 Ifremer. All Rights Reserved.