Class LocationFieldImpl
java.lang.Object
ch.tocco.nice2.model.form.impl.form2.components.AbstractComponent
ch.tocco.nice2.model.form.impl.form2.components.FieldImpl
ch.tocco.nice2.model.form.impl.form2.components.LocationFieldImpl
- All Implemented Interfaces:
Component, DataComponent, Field, LocationField, Cloneable
- Direct Known Subclasses:
AddressFieldImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface Component
Component.Configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCountry(String country) getDefaultLabel(Form form, TextResources textResources) Text resources are searched in the following order: Form: User_detail Path: relAddress.relAddress_type 1) 'forms.User_detail.relAddress.relAddress_type / 'forms.User_list.table.relAddress_type' 2) Label of FieldModel or RelationModel 3) 'entities.relAddress.relAddress_type'protected StringvoidsetCityField(String cityField) voidsetCommunityNrField(String communityNrField) voidsetCountryField(String countryField) voidsetDistrictField(String districtField) voidsetLatitudeField(String latitudeField) voidsetLongitudeField(String longitudeField) voidsetPostcodeField(String postcodeField) voidsetStateField(String stateField) voidsetStreetField(String streetField) Methods inherited from class FieldImpl
clone, getAutoCompleteEndpoint, getDataType, getDefaultValue, getPath, getSimpleSearch, getValidator, isParentContainerReadonly, setAutoCompleteEndpoint, setDataType, setDefaultValue, setPath, setSimpleSearch, setValidator, toStringMethods inherited from class AbstractComponent
getDefaultFormLabel, getId, getLabel, getParent, getPosition, setId, setLabel, setParent, setPositionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Component
getForm, getId, getLabel, getParent, getPosition, validateMethods inherited from interface Field
getAutoCompleteEndpoint, getDataType, getDefaultValue, getPath, getSimpleSearch, getValidator, isParentContainerReadonlyMethods inherited from interface LocationField
accept
-
Constructor Details
-
LocationFieldImpl
public LocationFieldImpl()
-
-
Method Details
-
getDefaultLabel
Description copied from class:FieldImplText resources are searched in the following order: Form: User_detail Path: relAddress.relAddress_type 1) 'forms.User_detail.relAddress.relAddress_type / 'forms.User_list.table.relAddress_type' 2) Label of FieldModel or RelationModel 3) 'entities.relAddress.relAddress_type'- Specified by:
getDefaultLabelin interfaceDataComponent- Overrides:
getDefaultLabelin classFieldImpl
-
getFormLabelKey
-
getPostcodeField
- Specified by:
getPostcodeFieldin interfaceLocationField
-
setPostcodeField
-
getCityField
- Specified by:
getCityFieldin interfaceLocationField
-
setCityField
-
getStreetField
- Specified by:
getStreetFieldin interfaceLocationField
-
setStreetField
-
getCountryField
- Specified by:
getCountryFieldin interfaceLocationField
-
setCountryField
-
getStateField
- Specified by:
getStateFieldin interfaceLocationField
-
setStateField
-
getDistrictField
- Specified by:
getDistrictFieldin interfaceLocationField
-
setDistrictField
-
getCommunityNrField
- Specified by:
getCommunityNrFieldin interfaceLocationField
-
setCommunityNrField
-
getLatitudeField
- Specified by:
getLatitudeFieldin interfaceLocationField
-
setLatitudeField
-
getLongitudeField
- Specified by:
getLongitudeFieldin interfaceLocationField
-
setLongitudeField
-
getCountries
- Specified by:
getCountriesin interfaceLocationField- Returns:
- set of countries that should be searched in for a address
-
addCountry
-