Class 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.
  • Constructor Details

    • RemoteFieldImpl

      public RemoteFieldImpl(Component parent)
      Deprecated.
  • Method Details

    • newInstanceForCopy

      protected RemoteField newInstanceForCopy(Component parent)
      Deprecated.
      Description copied from class: AbstractComponent
      Will be called when a copy is requested Component.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:
      newInstanceForCopy in class AbstractComponent<RemoteField>
      Parameters:
      parent - the parent to set
      Returns:
      the new instance
    • getMinChars

      public int getMinChars()
      Deprecated.
      Specified by:
      getMinChars in interface RemoteField
    • setMinChars

      public void setMinChars(int minChars)
      Deprecated.
      Specified by:
      setMinChars in interface RemoteField
    • getDisplayCreateButton

      public Boolean getDisplayCreateButton()
      Deprecated.
      Specified by:
      getDisplayCreateButton in interface RemoteField
    • setDisplayCreateButton

      public void setDisplayCreateButton(Boolean displayCreateButton)
      Deprecated.
      Specified by:
      setDisplayCreateButton in interface RemoteField
    • getDataSourceProps

      public Map<String,Object> getDataSourceProps()
      Deprecated.
      Description copied from interface: RemoteField
      The 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:
      getDataSourceProps in interface RemoteField
      Returns:
      See above for the list of params. They depend on which backend is using the field.
    • setDataSourceProps

      public void setDataSourceProps(Map<String,Object> dataSourceProps)
      Deprecated.
      Specified by:
      setDataSourceProps in interface RemoteField
    • getDefaultDataType

      public String getDefaultDataType()
      Deprecated.
      Description copied from interface: DataComponent
      Returns 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:
      getDefaultDataType in interface DataComponent
      Overrides:
      getDefaultDataType in class AbstractDataComponent<RemoteField>
      Returns:
      The name of the nice2 data type.
    • wrap

      Deprecated.
      Description copied from interface: Component
      Wraps the component with the given interceptor handler.

      Feel free to add an unwrap() method when needed.

      Specified by:
      wrap in interface Component
    • mapAllAttributesTo

      public <T extends LabeledComponent & DataComponent> void mapAllAttributesTo(T comp)
      Deprecated.
      Description copied from interface: Field
      Copy all defaults to the target-component
      Specified by:
      mapAllAttributesTo in interface Field
      Parameters:
      comp - component
    • isMultiple

      public boolean isMultiple()
      Deprecated.
      Specified by:
      isMultiple in interface Selectable