|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.ifremer.wao.ui.data.FiltersModel<F>
public class FiltersModel<F extends WaoFilter>
Created: 24 juil. 2010
| Constructor Summary | |
|---|---|
FiltersModel(org.apache.tapestry5.ioc.services.PropertyAccess propertyAccess)
|
|
FiltersModel(org.apache.tapestry5.ioc.services.PropertyAccess propertyAccess,
F filter)
|
|
| Method Summary | |
|---|---|
String |
getCompanyId()
|
GenericSelectModel<Company> |
getCompanySelectModel()
Retrieve Company SelectModel to used in page. |
F |
getFilter()
Get the filter. |
org.apache.tapestry5.SelectModel |
getProgramSelectModel()
Get select model for sampleRow program. |
String |
getSampleRowId()
|
GenericSelectModel<SampleRow> |
getSampleRowSelectModel()
Get select model for sampleRows. |
protected SamplingFilter |
getSamplingFilter()
|
protected UserFilter |
getUserFilter()
|
void |
setCompanyActive(boolean companyActive)
|
void |
setCompanyId(String companyId)
Set the company in filter from its companyId. |
void |
setSampleRowId(String sampleRowId)
|
void |
setServiceSampling(ServiceSampling serviceSampling)
ServiceSampling is used for filters : PROGRAM_NAME, SAMPLE_ROW. |
void |
setServiceUser(ServiceUser serviceUser)
ServiceUser is used for filters : COMPANY. |
void |
update(F filter)
|
void |
updateCompany(String companyId)
Update company with companyId. |
void |
updateProgram(String programName)
Update program with programName. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FiltersModel(org.apache.tapestry5.ioc.services.PropertyAccess propertyAccess)
public FiltersModel(org.apache.tapestry5.ioc.services.PropertyAccess propertyAccess,
F filter)
| Method Detail |
|---|
public void setServiceUser(ServiceUser serviceUser)
serviceUser - ServiceUser to setpublic void setServiceSampling(ServiceSampling serviceSampling)
serviceSampling - ServiceSampling to setpublic void setCompanyActive(boolean companyActive)
public void update(F filter)
public GenericSelectModel<Company> getCompanySelectModel()
throws IllegalStateException
IllegalStateException - if ServiceUser is not definedServiceUser.getCompanies(boolean)
public void setCompanyId(String companyId)
throws IllegalStateException
companyId. The company
object will be retrieve from the Company SelectModel. If you want
to set directly the company, do it directly on the filter using
getFilter() method.
companyId - Id of the company to set
IllegalStateException - if Company SelectModel is not definedpublic String getCompanyId()
public void updateCompany(String companyId)
companyId. Will reset dependent selects
(PROGRAM_NAME, SAMPLE_ROW).
companyId - Company id to setpublic org.apache.tapestry5.SelectModel getProgramSelectModel()
public void updateProgram(String programName)
programName. Will reset dependent selects
(SAMPLE_ROW).
programName - Name of the program to setpublic GenericSelectModel<SampleRow> getSampleRowSelectModel()
WaoExceptionpublic void setSampleRowId(String sampleRowId)
public String getSampleRowId()
public F getFilter()
protected UserFilter getUserFilter()
protected SamplingFilter getSamplingFilter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||