Package overit.geocall.basic.ui
Interface ValuesContainer
- All Known Implementing Classes:
overit.geocallapp.wfm.schedulazione.manuale.attivitaschedulabili.CAttivitaSchedulabili,overit.geocallapp.wfm.schedulazione.manuale.attivitaurgenti.CAttivitaUrgenti,Form,OutputForm,SchedulableActivities,SchedulableBundles,UrgentActivities
public interface ValuesContainer
This interface must be implemented by the objects that can collect and publish values
and DA values.
An example of implementation is the
Form-
Method Summary
Modifier and TypeMethodDescriptionvoidcollectValues(HashGetter values, HashGetter daValues) Collects the values passed as parameters by the twoHashGetterReturns theHashGetterthat contains the collected DA valuesReturns theHashGetterthat contains the collected valuesReturns theHashGetterthat contains the published valuesGets the read only or not enabled fields registered into the values container.
If a ro or a not enabled field it has been registered, means that field won't be configurable and it will be seeked from the server at every submit.default booleanGets if the container is a filter or an edit containerdefault voidregisterReadOnlyAndNotEnabledField(String fieldName, Control c) Register into the valuesContainer a read only or a not enabled field.
Registering a ro or a not enabled field means that this field won't be configurable and it will be seeked from the server at every submit.voidregisterSeek(String name) registers a validator for values that will arrivevoidregisterValidator(String name, ValueValidator vv) registers a validator for valuesthat will arrivedefault voidremoveFromSeek(String name) remove a validator from the values that will arrivevoidSanitize collected values by removing those that should not be kept in memory/session (e.g.voidsetCollectedValues(HashGetter values, HashGetter daValues) Sets the valuesvoidvalidateValues(Map arriving, boolean strong) validate the arriving values against the regisgtered validators
-
Method Details
-
collectValues
Collects the values passed as parameters by the twoHashGetter- Parameters:
values- The map that contains the valuesdaValues- The map that contains the DA values
-
setCollectedValues
Sets the values- Parameters:
values- The map that contains the valuesdaValues- The map that contains the DA values
-
getCollectedValues
HashGetter getCollectedValues()Returns theHashGetterthat contains the collected values- Returns:
- The map of the values
-
getCollectedDAValues
HashGetter getCollectedDAValues()Returns theHashGetterthat contains the collected DA values- Returns:
- The map of the DA values
-
getPublishedValues
HashGetter getPublishedValues()Returns theHashGetterthat contains the published values- Returns:
- The map of the published values
-
sanitizeValues
void sanitizeValues()Sanitize collected values by removing those that should not be kept in memory/session (e.g. UpFiles) -
registerSeek
registers a validator for values that will arrive- Parameters:
name- the name of a field that must be seeked in every values validation
-
removeFromSeek
remove a validator from the values that will arrive- Parameters:
name- the name of a field that won't be seeked anymore
-
registerValidator
registers a validator for valuesthat will arrive- Parameters:
name- the name of the validator, that is the name of the arriving variable or the name concatenated with an _* if the variabile is an indexed variablevv- the validator instance
-
validateValues
validate the arriving values against the regisgtered validators- Parameters:
arriving- the values that has been pisted through an eventstrong- if true the values validaton needs to be complete, otherwise only the validations to avoid tampering of parameters must be executed
-
isHarmlessContainer
default boolean isHarmlessContainer()Gets if the container is a filter or an edit container- Returns:
trueif is a filter container,falseotherwise.
-
getReadOnlyAndNotEnabledFields
Gets the read only or not enabled fields registered into the values container.
If a ro or a not enabled field it has been registered, means that field won't be configurable and it will be seeked from the server at every submit.- Returns:
- the read only or not enabled fields registered into the values container.
-
registerReadOnlyAndNotEnabledField
Register into the valuesContainer a read only or a not enabled field.
Registering a ro or a not enabled field means that this field won't be configurable and it will be seeked from the server at every submit.- Parameters:
fieldName- The name of the fieldc- The field.
-