|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.wao.ui.base.AbstractFilteredPage
FiltersModel instead
@Deprecated public abstract class AbstractFilteredPage
AbstractFilteredPage
Created: 14 janv. 2010
This class uses the BoatFilter bean (also SamplingFilter and UserFilter which
are supertypes).
Known implementations are Synthesis
and Contacts
You must override the three abstract methods and call initSelectFilters(boolean, boolean, boolean) () }
in the setupRender of the page.
- BoatName uses an Autocomplete mixins :
- SampleRow select value is sampleRowId :
- Company select value is companyId :
- Observer select value is observerId :
Use submit button with specific ids to refresh data depends on select change:
- id="refreshByCompany" : refresh facadeSelect, sectorSelect, sampleRowSelect
and observerSelect
- id="refreshByFacade" : refresh sectorSelect and sampleRowSelect
- id="refreshBySector" : refresh sampleRowSelect
| Constructor Summary | |
|---|---|
AbstractFilteredPage()
Deprecated. |
|
| Method Summary | |
|---|---|
String |
getCompanyId()
Deprecated. |
GenericSelectModel<Company> |
getCompanySelectModel()
Deprecated. Get select model for companies. |
GenericSelectModel<FishingGearDCF> |
getDcfGearSelectModel()
Deprecated. |
GenericSelectModel<TargetSpeciesDCF> |
getDcfSpeciesSelectModel()
Deprecated. |
org.apache.tapestry5.SelectModel |
getFacadeSelectModel()
Deprecated. Get select model for fishingZone facade. |
protected abstract SamplingFilter |
getFilter()
Deprecated. |
String |
getFishingGearDCFId()
Deprecated. |
String |
getObserverId()
Deprecated. |
GenericSelectModel<WaoUser> |
getObserverSelectModel()
Deprecated. Get the select model for observers. |
protected List<org.apache.tapestry5.OptionModel> |
getOptionModels(List<String> names)
Deprecated. |
org.apache.tapestry5.SelectModel |
getProgramSelectModel()
Deprecated. Get select model for sampleRow program. |
String |
getSampleRowId()
Deprecated. |
GenericSelectModel<SampleRow> |
getSampleRowSelectModel()
Deprecated. Get select model for sampleRows. |
org.apache.tapestry5.SelectModel |
getSectorSelectModel()
Deprecated. Get select model for fishingZone sector. |
String |
getTargetSpeciesDCFId()
Deprecated. |
String |
getTerrestrialDistrictId()
Deprecated. |
GenericSelectModel<TerrestrialLocation> |
getTerrestrialDistrictSelectModel()
Deprecated. |
void |
initCompagnyFilter()
Deprecated. |
void |
initCompanyFilter()
Deprecated. Need to be call in setupRender of the page which inherits this abstract class. |
void |
initSelectFilters(boolean companySelect,
boolean observerSelect,
boolean programSelect)
Deprecated. Initialize all select for filters. |
protected abstract boolean |
isAvailableDataForFiltersOnly()
Deprecated. Used to show only active company and observers. |
protected boolean |
isEdited()
Deprecated. Used to indicate that a refresh as been triggered. |
boolean |
isObserverSelect()
Deprecated. |
boolean |
isProgramSelect()
Deprecated. |
String[] |
onProvideCompletionsFromBoatName(String input)
Deprecated. |
void |
onSelectedFromAddSampleRowCode()
Deprecated. |
void |
onSelectedFromRefreshByCompany()
Deprecated. EVENT :: selected on refreshByCompany submit button. |
void |
onSelectedFromRefreshByFacade()
Deprecated. EVENT :: selected on refreshByFacade submit button. |
void |
onSelectedFromRefreshByProgram()
Deprecated. EVENT :: selected on refreshByProgram submit button. |
void |
onSelectedFromRefreshBySector()
Deprecated. EVENT :: selected on refreshBySector submit button. |
void |
onSelectedFromRemoveSampleRowCode()
Deprecated. |
void |
onSelectedFromSearch()
Deprecated. Called when search submit button is pressed. |
void |
resetCompanySelectModel()
Deprecated. |
void |
resetFacadeSelectModel()
Deprecated. |
protected abstract void |
resetFilter()
Deprecated. |
void |
resetFishingGearDCFModel()
Deprecated. |
void |
resetModels()
Deprecated. |
void |
resetObserverSelectModel()
Deprecated. |
void |
resetProgramSelectModel()
Deprecated. |
void |
resetSampleRowSelectModel()
Deprecated. |
void |
resetSectorSelectModel()
Deprecated. |
void |
resetTargetSpeciesDCFModel()
Deprecated. |
void |
resetTerrestrialDistrictModel()
Deprecated. |
void |
setCompanyId(String companyId)
Deprecated. |
void |
setFishingGearDCFId(String fishingGearDCFId)
Deprecated. |
void |
setObserverId(String observerId)
Deprecated. |
void |
setSampleRowId(String sampleRowId)
Deprecated. |
void |
setTargetSpeciesDCFId(String targetSpeciesDCFId)
Deprecated. |
void |
setTerrestrialDistrictId(String terrestrialDistrictId)
Deprecated. |
void |
updateLocation(String terrestrialDistrictId)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractFilteredPage()
| Method Detail |
|---|
public boolean isObserverSelect()
public boolean isProgramSelect()
public String getSampleRowId()
public void setSampleRowId(String sampleRowId)
public String getCompanyId()
public void setCompanyId(String companyId)
public String getObserverId()
public void setObserverId(String observerId)
public String getFishingGearDCFId()
public void setFishingGearDCFId(String fishingGearDCFId)
public String getTargetSpeciesDCFId()
public void setTargetSpeciesDCFId(String targetSpeciesDCFId)
public String getTerrestrialDistrictId()
public void setTerrestrialDistrictId(String terrestrialDistrictId)
public void onSelectedFromAddSampleRowCode()
public void onSelectedFromRemoveSampleRowCode()
public void initCompanyFilter()
public void initSelectFilters(boolean companySelect,
boolean observerSelect,
boolean programSelect)
throws WaoException
companySelect - if true, company select will be initializedobserverSelect - if true, observer select will be initializedprogramSelect -
WaoExceptionpublic void initCompagnyFilter()
public void resetCompanySelectModel()
throws WaoException
WaoException
public void resetSampleRowSelectModel()
throws WaoException
WaoExceptionpublic void resetObserverSelectModel()
public void resetTerrestrialDistrictModel()
public void resetTargetSpeciesDCFModel()
public void resetFishingGearDCFModel()
public void resetFacadeSelectModel()
throws WaoException
WaoException
public void resetSectorSelectModel()
throws WaoException
WaoExceptionpublic void resetProgramSelectModel()
public void resetModels()
public GenericSelectModel<SampleRow> getSampleRowSelectModel()
throws WaoException
WaoException
public org.apache.tapestry5.SelectModel getFacadeSelectModel()
throws WaoException
WaoException
public org.apache.tapestry5.SelectModel getSectorSelectModel()
throws WaoException
WaoException
public GenericSelectModel<Company> getCompanySelectModel()
throws WaoException
isAvailableDataForFiltersOnly() () } to return only activated
companies. This select model is only used by admin users.
WaoException
public GenericSelectModel<WaoUser> getObserverSelectModel()
throws WaoException
isAvailableDataForFiltersOnly() to return only activated
companies.
WaoException
public org.apache.tapestry5.SelectModel getProgramSelectModel()
throws WaoException
WaoException
public GenericSelectModel<FishingGearDCF> getDcfGearSelectModel()
throws WaoException
WaoException
public GenericSelectModel<TargetSpeciesDCF> getDcfSpeciesSelectModel()
throws WaoException
WaoException
public GenericSelectModel<TerrestrialLocation> getTerrestrialDistrictSelectModel()
throws WaoException
WaoExceptionprotected List<org.apache.tapestry5.OptionModel> getOptionModels(List<String> names)
protected abstract SamplingFilter getFilter()
throws WaoException
WaoExceptionprotected abstract boolean isAvailableDataForFiltersOnly()
protected abstract void resetFilter()
public String[] onProvideCompletionsFromBoatName(String input)
throws WaoException
WaoException
public void onSelectedFromSearch()
throws WaoException
WaoExceptionpublic void updateLocation(String terrestrialDistrictId)
public void onSelectedFromRefreshByCompany()
throws WaoException
isEdited() method to test it.
WaoExceptiononSelectedFromRefreshByProgram()
public void onSelectedFromRefreshByProgram()
throws WaoException
isEdited() method to test it.
WaoExceptiononSelectedFromRefreshByFacade()
public void onSelectedFromRefreshByFacade()
throws WaoException
isEdited() method to test it.
WaoExceptiononSelectedFromRefreshBySector()
public void onSelectedFromRefreshBySector()
throws WaoException
isEdited() method to test it.
WaoExceptiononSelectedFromSearch()protected boolean isEdited()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||