|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.wao.ui.base.AbstractFilteredPage
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()
|
|
| Method Summary | |
|---|---|
GenericSelectModel<Company> |
getCompanySelectModel()
Get select model for companies. |
org.apache.tapestry5.SelectModel |
getFacadeSelectModel()
Get select model for fishingZone facade. |
protected abstract SamplingFilter |
getFilter()
|
GenericSelectModel<WaoUser> |
getObserverSelectModel()
Get the select model for observers. |
org.apache.tapestry5.SelectModel |
getProgramSelectModel()
Get select model for sampleRow program. |
GenericSelectModel<SampleRow> |
getSampleRowSelectModel()
Get select model for sampleRows. |
org.apache.tapestry5.SelectModel |
getSectorSelectModel()
Get select model for fishingZone sector. |
void |
initCompanyFilter()
Need to be call in setupRender of the page which inherits this abstract class. |
protected void |
initSelectFilters(boolean companySelect,
boolean observerSelect,
boolean programSelect)
Initialize all select for filters. |
protected abstract boolean |
isAvailableDataForFiltersOnly()
Used to show only active company and observers. |
protected boolean |
isEdited()
Used to indicate that a refresh as been triggered. |
java.lang.String[] |
onProvideCompletionsFromBoatName(java.lang.String input)
|
void |
onSelectedFromRefreshByCompany()
EVENT :: selected on refreshByCompany submit button. |
void |
onSelectedFromRefreshByFacade()
EVENT :: selected on refreshByFacade submit button. |
void |
onSelectedFromRefreshByProgram()
EVENT :: selected on refreshByProgram submit button. |
void |
onSelectedFromRefreshBySector()
EVENT :: selected on refreshBySector submit button. |
void |
onSelectedFromSearch()
Called when search submit button is pressed. |
protected void |
resetCompanySelect()
|
protected void |
resetFacadeSelect()
|
protected void |
resetSampleRowSelect()
|
protected void |
resetSectorSelect()
|
| 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 void initCompanyFilter()
protected 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 -
WaoException
protected void resetCompanySelect()
throws WaoException
WaoException
protected void resetFacadeSelect()
throws WaoException
WaoException
protected void resetSectorSelect()
throws WaoException
WaoException
protected void resetSampleRowSelect()
throws WaoException
WaoException
public org.apache.tapestry5.SelectModel getFacadeSelectModel()
throws WaoException
WaoException
public org.apache.tapestry5.SelectModel getSectorSelectModel()
throws WaoException
WaoException
public GenericSelectModel<SampleRow> getSampleRowSelectModel()
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
protected abstract SamplingFilter getFilter()
throws WaoException
WaoExceptionprotected abstract boolean isAvailableDataForFiltersOnly()
public java.lang.String[] onProvideCompletionsFromBoatName(java.lang.String input)
throws WaoException
WaoException
public void onSelectedFromSearch()
throws WaoException
WaoException
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 | |||||||||