Class RemoteFieldImpl
java.lang.Object
ch.tocco.nice2.model.form.api.components.AbstractComponent<RemoteField>
ch.tocco.nice2.model.form.api.components.AbstractLabeledComponent<RemoteField>
ch.tocco.nice2.model.form.api.components.AbstractDataComponent<RemoteField>
ch.tocco.nice2.model.form.api.components.simple.RemoteFieldImpl
- All Implemented Interfaces:
- Component,- InputComponent,- LabeledComponent,- Field,- RemoteField,- Selectable,- DataComponent
- Direct Known Subclasses:
- MultiRemoteFieldImpl
@Deprecated
public class RemoteFieldImpl
extends AbstractDataComponent<RemoteField>
implements RemoteField
Deprecated.
- 
Nested Class SummaryNested classes/interfaces inherited from interface ch.tocco.nice2.model.form.api.components.ComponentComponent.ComponentFilter, Component.DataNavigationType, Component.DisplayType, Component.PositionNested classes/interfaces inherited from interface ch.tocco.nice2.model.form.api.components.LabeledComponentLabeledComponent.UseLabel
- 
Field SummaryFields inherited from class ch.tocco.nice2.model.form.api.components.AbstractComponentattributeProps, extProps, name
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionDeprecated.The entity system uses: 'scope' eg 'list' WARNING i believe the case is different, maybe in the form of 'List' now.Deprecated.Returns the default data type to use for this data component.Deprecated.intDeprecated.booleanDeprecated.<T extends LabeledComponent & DataComponent>
 voidmapAllAttributesTo(T comp) Deprecated.Copy all defaults to the target-componentprotected RemoteFieldnewInstanceForCopy(Component parent) Deprecated.Will be called when a copy is requestedComponent.createCopy()! Create a new instanc of this component, copy the properties and return it.voidsetDataSourceProps(Map<String, Object> dataSourceProps) Deprecated.voidsetDisplayCreateButton(Boolean displayCreateButton) Deprecated.voidsetMinChars(int minChars) Deprecated.wrap(ComponentWrapperHandler handler) Deprecated.Wraps the component with the given interceptor handler.Methods inherited from class ch.tocco.nice2.model.form.api.components.AbstractDataComponentgetConstriction, getDataNavigationType, getDataType, getDefaultValue, getLocalizedLanguage, getPath, getReverseRelationName, getValidator, hasNonEmptyValidator, isDefaultLangOnly, isIgnoreCopy, isLocalized, mapAllAttributesTo, setConstriction, setDataType, setDefaultLangOnly, setDefaultValue, setIgnoreCopy, setLocalizedLanguage, setPath, setReverseRelationName, setValidatorMethods inherited from class ch.tocco.nice2.model.form.api.components.AbstractLabeledComponentgetLabel, getUseLabel, setLabel, setUseLabelMethods inherited from class ch.tocco.nice2.model.form.api.components.AbstractComponentaddComponent, addComponent, collectDataParts, collectDataParts, createCopy, createCopy, equals, find, findByName, findByType, findFirst, findFirstByName, getAttributeProps, getChild, getChildren, getDisplayType, getEventHandler, getExtProps, getForm, getName, getParent, getParentOrEx, getPosition, getRelativeToPositionName, getScopes, getType, hashCode, hasParent, isForceEditable, isLeaf, isReplace, overrideParent, removeComponent, replaceComponent, replaceComponent, setAttributeProps, setChildren, setDisplayType, setEventHandler, setExtProps, setForceEditable, setName, setPosition, setRelativeToPositionName, setReplace, setScopes, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.tocco.nice2.model.form.api.components.ComponentaddComponent, addComponent, collectDataParts, collectDataParts, createCopy, createCopy, find, findByName, findByType, findFirst, findFirstByName, getAttributeProps, getChild, getChildren, getDataNavigationType, getDisplayType, getEventHandler, getExtProps, getForm, getName, getParent, getParentOrEx, getPosition, getRelativeToPositionName, getScopes, getType, hasParent, isForceEditable, isLeaf, isReplace, overrideParent, removeComponent, replaceComponent, replaceComponent, setAttributeProps, setChildren, setDisplayType, setEventHandler, setExtProps, setForceEditable, setName, setPosition, setRelativeToPositionName, setReplace, setScopesMethods inherited from interface ch.tocco.nice2.model.form.api.datanavigation.DataComponentgetConstriction, getDataType, getDefaultValue, getLocalizedLanguage, getPath, getReverseRelationName, getValidator, hasNonEmptyValidator, isDefaultLangOnly, isIgnoreCopy, isLocalized, setConstriction, setDataType, setDefaultLangOnly, setDefaultValue, setIgnoreCopy, setLocalizedLanguage, setPath, setReverseRelationName, setValidatorMethods inherited from interface ch.tocco.nice2.model.form.api.components.LabeledComponentgetLabel, getUseLabel, setLabel, setUseLabel
- 
Constructor Details- 
RemoteFieldImplDeprecated.
 
- 
- 
Method Details- 
newInstanceForCopyDeprecated.Description copied from class:AbstractComponentWill be called when a copy is requestedComponent.createCopy()! Create a new instanc of this component, copy the properties and return it. You don't have to copy the properties which are inherited from the abstract implmentation. Only copy the properties from the concrete implementation.
 The parent has to be the parent given in the argument parent- Specified by:
- newInstanceForCopyin class- AbstractComponent<RemoteField>
- Parameters:
- parent- the parent to set
- Returns:
- the new instance
 
- 
getMinCharspublic int getMinChars()Deprecated.- Specified by:
- getMinCharsin interface- RemoteField
 
- 
setMinCharspublic void setMinChars(int minChars) Deprecated.- Specified by:
- setMinCharsin interface- RemoteField
 
- 
getDisplayCreateButtonDeprecated.- Specified by:
- getDisplayCreateButtonin interface- RemoteField
 
- 
setDisplayCreateButtonDeprecated.- Specified by:
- setDisplayCreateButtonin interface- RemoteField
 
- 
getDataSourcePropsDeprecated.Description copied from interface:RemoteFieldThe entity system uses:- 'scope' eg 'list' WARNING i believe the case is different, maybe in the form of 'List' now. also it may not be the scope you expect. it's from the remote field config, not the current form scope.
- 'source' eg 'Address'
- 'entityType' eg 'STANDARD' (enum)
- 'allowCreate' boolean
 - Specified by:
- getDataSourcePropsin interface- RemoteField
- Returns:
- See above for the list of params. They depend on which backend is using the field.
 
- 
setDataSourcePropsDeprecated.- Specified by:
- setDataSourcePropsin interface- RemoteField
 
- 
getDefaultDataTypeDeprecated.Description copied from interface:DataComponentReturns the default data type to use for this data component.For example a text-field uses the "string" while the email-field uses the virtual type "email". - Specified by:
- getDefaultDataTypein interface- DataComponent
- Overrides:
- getDefaultDataTypein class- AbstractDataComponent<RemoteField>
- Returns:
- The name of the nice2 data type.
 
- 
wrapDeprecated.Description copied from interface:ComponentWraps the component with the given interceptor handler.Feel free to add an unwrap() method when needed. 
- 
mapAllAttributesToDeprecated.Description copied from interface:FieldCopy all defaults to the target-component- Specified by:
- mapAllAttributesToin interface- Field
- Parameters:
- comp- component
 
- 
isMultiplepublic boolean isMultiple()Deprecated.- Specified by:
- isMultiplein interface- Selectable
 
 
-