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 ch.tocco.nice2.model.form.api.form2.components.Component
Component.Configuration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCountry
(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 String
void
setCityField
(String cityField) void
setCommunityNrField
(String communityNrField) void
setCountryField
(String countryField) void
setDistrictField
(String districtField) void
setLatitudeField
(String latitudeField) void
setLongitudeField
(String longitudeField) void
setPostcodeField
(String postcodeField) void
setStateField
(String stateField) void
setStreetField
(String streetField) Methods inherited from class ch.tocco.nice2.model.form.impl.form2.components.FieldImpl
clone, getAutoCompleteEndpoint, getDataType, getDefaultValue, getPath, getSimpleSearch, getValidator, setAutoCompleteEndpoint, setDataType, setDefaultValue, setPath, setSimpleSearch, setValidator, toString
Methods inherited from class ch.tocco.nice2.model.form.impl.form2.components.AbstractComponent
getDefaultFormLabel, getId, getLabel, getParent, getPosition, setId, setLabel, setParent, setPosition
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.model.form.api.form2.components.Component
getForm, getId, getLabel, getParent, getPosition, validate
Methods inherited from interface ch.tocco.nice2.model.form.api.form2.components.Field
getAutoCompleteEndpoint, getDataType, getDefaultValue, getPath, getSimpleSearch, getValidator
Methods inherited from interface ch.tocco.nice2.model.form.api.form2.components.LocationField
accept
-
Constructor Details
-
LocationFieldImpl
public LocationFieldImpl()
-
-
Method Details
-
getDefaultLabel
Description copied from class:FieldImpl
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'- Specified by:
getDefaultLabel
in interfaceDataComponent
- Overrides:
getDefaultLabel
in classFieldImpl
-
getFormLabelKey
-
getPostcodeField
- Specified by:
getPostcodeField
in interfaceLocationField
-
setPostcodeField
-
getCityField
- Specified by:
getCityField
in interfaceLocationField
-
setCityField
-
getStreetField
- Specified by:
getStreetField
in interfaceLocationField
-
setStreetField
-
getCountryField
- Specified by:
getCountryField
in interfaceLocationField
-
setCountryField
-
getStateField
- Specified by:
getStateField
in interfaceLocationField
-
setStateField
-
getDistrictField
- Specified by:
getDistrictField
in interfaceLocationField
-
setDistrictField
-
getCommunityNrField
- Specified by:
getCommunityNrField
in interfaceLocationField
-
setCommunityNrField
-
getLatitudeField
- Specified by:
getLatitudeField
in interfaceLocationField
-
setLatitudeField
-
getLongitudeField
- Specified by:
getLongitudeField
in interfaceLocationField
-
setLongitudeField
-
getCountries
- Specified by:
getCountries
in interfaceLocationField
- Returns:
- set of countries that should be searched in for a address
-
addCountry
-