fr.ifremer.wao.ui.pages
Class SamplingPlan

java.lang.Object
  extended by fr.ifremer.wao.ui.base.AbstractFilteredPage
      extended by fr.ifremer.wao.ui.pages.SamplingPlan

@RequiresAuthentication
@IncludeStylesheet(value="context:css/sampling.css")
public class SamplingPlan
extends AbstractFilteredPage

SampingPlan Created: 9 nov. 2009

Author:
fdesbois

Constructor Summary
SamplingPlan()
           
 
Method Summary
 boolean canAccessBoats()
           
 boolean canEditSampleRow()
          Can edit the sampleRow.
 boolean canImportSamplingPlan()
           
 String getActionsClass()
           
 String getCompanyName()
           
 List<SampleRow> getData()
          Return List of SampleRow from suiviobsmer-business
 DateFormat getDateFormat()
           
 SamplingFilter getFilter()
           
 String getFishingZones()
           
 String getMainClass()
           
 String getMonthCurrentClass()
           
 List<Date> getMonths()
           
 int getNbColumnsForMonths()
           
 int getNbColumnsForOther()
           
 int getNbColumnsForProfession()
           
 int getNbColumnsTotal()
           
 Integer getNbTidesExpected()
           
 Integer getNbTidesReal()
           
 NumberFormat getNumberFormat()
           
 String getParityClass()
           
 org.nuiton.util.PeriodDates getPeriod()
           
 String getRealTidesClass()
           
 String getRowComment()
           
 String getTotalPercentage()
           
 boolean hasNbTidesReal()
           
protected  boolean isAvailableDataForFiltersOnly()
          Used to show only active company and observers.
 boolean isCurrentMonth()
           
 boolean isFacadeChanged()
           
 boolean isFiltersVisible()
           
 boolean isSectorChanged()
           
 String[] onProvideCompletionsFromCodeDCF5(String input)
           
 
Methods inherited from class fr.ifremer.wao.ui.base.AbstractFilteredPage
getCompanySelectModel, getFacadeSelectModel, getObserverSelectModel, getProgramSelectModel, getSampleRowSelectModel, getSectorSelectModel, initCompanyFilter, initSelectFilters, isEdited, onProvideCompletionsFromBoatName, onSelectedFromRefreshByCompany, onSelectedFromRefreshByFacade, onSelectedFromRefreshByProgram, onSelectedFromRefreshBySector, onSelectedFromSearch, resetCompanySelect, resetFacadeSelect, resetSampleRowSelect, resetSectorSelect
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SamplingPlan

public SamplingPlan()
Method Detail

canImportSamplingPlan

public boolean canImportSamplingPlan()

getPeriod

public org.nuiton.util.PeriodDates getPeriod()

getFilter

public SamplingFilter getFilter()
                         throws WaoException
Specified by:
getFilter in class AbstractFilteredPage
Throws:
WaoException

isAvailableDataForFiltersOnly

protected boolean isAvailableDataForFiltersOnly()
Description copied from class: AbstractFilteredPage
Used to show only active company and observers.

Specified by:
isAvailableDataForFiltersOnly in class AbstractFilteredPage
Returns:
true if only active users will be showed, false otherwise

isFiltersVisible

public boolean isFiltersVisible()

onProvideCompletionsFromCodeDCF5

public String[] onProvideCompletionsFromCodeDCF5(String input)
                                          throws WaoException
Throws:
WaoException

getData

public List<SampleRow> getData()
                        throws WaoException
Return List of SampleRow from suiviobsmer-business

Returns:
List of SampleRow
Throws:
WaoException

getMonths

public List<Date> getMonths()

isFacadeChanged

public boolean isFacadeChanged()

isSectorChanged

public boolean isSectorChanged()

getCompanyName

public String getCompanyName()

isCurrentMonth

public boolean isCurrentMonth()

getNbTidesExpected

public Integer getNbTidesExpected()

getFishingZones

public String getFishingZones()

getNbTidesReal

public Integer getNbTidesReal()

hasNbTidesReal

public boolean hasNbTidesReal()

getTotalPercentage

public String getTotalPercentage()

getNumberFormat

public NumberFormat getNumberFormat()

getRowComment

public String getRowComment()

getNbColumnsForProfession

public int getNbColumnsForProfession()

getNbColumnsForMonths

public int getNbColumnsForMonths()

getNbColumnsForOther

public int getNbColumnsForOther()

getNbColumnsTotal

public int getNbColumnsTotal()

getMainClass

public String getMainClass()

getParityClass

public String getParityClass()

getActionsClass

public String getActionsClass()

getRealTidesClass

public String getRealTidesClass()

getMonthCurrentClass

public String getMonthCurrentClass()

getDateFormat

public DateFormat getDateFormat()

canEditSampleRow

public boolean canEditSampleRow()
Can edit the sampleRow. Only for admin with no readOnly rights.

Returns:
true if the sampleRow can be edited.

canAccessBoats

public boolean canAccessBoats()


Copyright © 2009-2010 Ifremer. All Rights Reserved.