Constructor.
@param field The basefield owner of this listener (usually null and set on setOwner()).
@param fldDest The destination field.
@param fldSource The source field.
181806
public void init(BaseField field, BaseField fldDest, BaseField fldSource)
    {
        super.init(field, fldDest, fldSource, false, false, false);
    }
176867
public void build(final Field field, final DeviceImpl device, final Object businessObject) throws DevFailed {
        xlogger.entry();
        final String name = field.getName();
        logger.debug("Has a DynamicAttributeManagement : {}", name);
        BuilderUtils.checkStatic(field);

        final String setterName = BuilderUtils.SET + name.substring(0, 1).toUpperCase(Locale.ENGLISH)
                + name.substring(1);
        try {
            final String deviceName = device.getName().toLowerCase(Locale.ENGLISH);
            final Method setter = businessObject.getClass().getMethod(setterName, DynamicManager.class);
            if (DYN_MNGRS.containsKey(deviceName)) {
                setter.invoke(businessObject, DYN_MNGRS.get(deviceName));
            } else {
                final DynamicManager mnger = new DynamicManager(device);
                setter.invoke(businessObject, mnger);
                DYN_MNGRS.put(deviceName, mnger);
            }
        } catch (final IllegalArgumentException e) {
            throw DevFailedUtils.newDevFailed(e);
        } catch (final IllegalAccessException e) {
            throw DevFailedUtils.newDevFailed(e);
        } catch (final InvocationTargetException e) {
            throw DevFailedUtils.newDevFailed(e);
        } catch (final NoSuchMethodException e) {
            throw DevFailedUtils.newDevFailed(e);
        } catch (final SecurityException e) {
            throw DevFailedUtils.newDevFailed(e);
        }
        xlogger.exit();
    }
765824
public void setDependentStateListener(BaseListener dependentStateListener)
    {
        if (!(dependentStateListener instanceof FieldListener))
            dependentStateListener = null;
        else if ((this.getOwner() == null)
            || (((FieldListener)dependentStateListener).getOwner() == null)
            || (this.getOwner().getRecord() != ((FieldListener)dependentStateListener).getOwner().getRecord()))
                dependentStateListener = null;
        super.setDependentStateListener(dependentStateListener);
    }
379890
protected void initializeField( Field field, Object instance )
    {
        if ( instance != null )
        {
            if ( _log.isTraceEnabled() )
            {
                _log.trace( "Initializing field " + field.getName() + " in " + getDisplayName() + " with " + instance );
            }
            
            try
            {
                field.set( this, instance );
            }
            catch ( IllegalArgumentException e )
            {
                _log.error( "Could not set field " + field.getName() + " on " + getDisplayName() +
                            "; instance is of type " + instance.getClass().getName() + ", field type is "
                            + field.getType().getName() );
            }
            catch ( IllegalAccessException e )
            {
                _log.error( "Error initializing field " + field.getName() + " in " + getDisplayName(), e );
            }
        }
    }
302202
public boolean syncClonedListener(BaseField field, FieldListener listener, boolean bInitCalled)
    {
        if (!bInitCalled)
            ((DateUpdatedHandler)listener).init(null, m_iMainFilesFieldSeq, m_bMoveCurrentTime);
        return super.syncClonedListener(field, listener, true);
    }
145292
function addSourceInstanceName(
  { node, getNode, loadNodeContent, actions, createNodeId, reporter },
  pluginOptions
) {
  const { createNodeField } = actions;

  const parent = getNode(node.parent);

  const sourceInstanceName =
    parent && parent.sourceInstanceName ? parent.sourceInstanceName : 'unknown';

  // Add node field
  createNodeField({
    node,
    name: 'sourceName',
    value: sourceInstanceName
  });

  // console.error('adding', sourceInstanceName, node.fields.sourceInstanceName)

  // if (!parent) {
  //   // Node has already been processed.
  //   console.error('Ocular markdown node has no parent', JSON.stringify(node.parent), JSON.stringify(node.sourceInstanceName), node.relativePath);
  //   return;
  // }

  if (parent) {
    addMissingFrontmatter(node, sourceInstanceName);
  }
}
867062
public int moveSourceToDest(boolean bDisplayOption, int iMoveMode)
    {
        if (m_fldSource instanceof BaseField)
            return ((BaseField)m_fldDest.getField()).moveFieldToThis((BaseField)m_fldSource, bDisplayOption, iMoveMode);   // Move dependent field to here
        else
            return m_fldDest.setString(m_fldSource.getString(), bDisplayOption, iMoveMode);   // Move dependent field to here
    }
684621
public void addPropertiesFieldBehavior(BaseField fldDisplay, String strProperty)
    {
        BaseField fldProperties = this.getField(PropertiesRecord.PROPERTIES);
        FieldListener listener = new CopyConvertersHandler(new PropertiesConverter(fldProperties, strProperty));
        listener.setRespondsToMode(DBConstants.INIT_MOVE, false);
        listener.setRespondsToMode(DBConstants.READ_MOVE, false);
        fldDisplay.addListener(listener);
        listener = new CopyConvertersHandler(fldDisplay, new PropertiesConverter(fldProperties, strProperty));
        fldProperties.addListener(listener);
    }
1174102
public void init(Record record, BaseField fldDeleteFlag)
    {
        m_fldDeleteFlag = fldDeleteFlag;
        m_bFilterThisRecord = true;
        super.init(record);
    }
1101045
public void setOwner(ListenerOwner owner)
    {
        super.setOwner(owner);
        if (owner != null) if (m_fldToDisable != null)
            if (this.getOwner().getRecord() != m_fldToDisable.getRecord())
                m_fldToDisable.addListener(new FieldRemoveBOnCloseHandler(this)); // Make sure you remove this listener if m_fldToDisable is gone.
        if (owner != null)
            if (m_fldToDisable == null)
                m_fldToDisable = this.getOwner();
        if (owner != null)
            this.fieldChanged(DBConstants.DONT_DISPLAY, DBConstants.INIT_MOVE);
        if (owner == null)
            m_fldToDisable.setEnabled(true);    // Remove the behavior = reenable the field
    }
612017
public void mergeSourceData(Record recSource, Record recDest, boolean bFound)
    {
        for (int iFieldSeq = 0; iFieldSeq < recSource.getFieldCount(); iFieldSeq++)
        {
            BaseField fldSource = recSource.getField(iFieldSeq);
            BaseField fldDest = recDest.getField(fldSource.getFieldName());
            if (fldDest != null)
                if (!fldSource.isNull())
                    fldDest.moveFieldToThis(fldSource);
        }
    }
234013
public void init(BaseField fldTarget, String fsTarget)
    {
        m_hsFilter = null;
        m_fldTarget = fldTarget;
        m_fsTarget = fsTarget;
        super.init(null);
    }
149703
public boolean syncClonedListener(BaseField field, FieldListener listener, boolean bInitCalled)
    {
        if (!bInitCalled)
        {
            BaseField fldTarget = this.getSyncedListenersField(m_fldTarget, listener);
            ((InitOnChangeHandler)listener).init(null, fldTarget);
        }
        return super.syncClonedListener(field, listener, true);
    }
66834
@Override
    public final void addSourceListener(SourceListener<S> listener) {
        if (listener != null) {
            this.listenerList.add(listener);
        }
    }
395229
public void init(Record record, BaseField fldRecordTarget, String fsTarget, BaseField fldTarget)
    {
        m_fldToCompare = fldTarget;
        m_fsRecordTarget = fsTarget;
        m_fldRecordTarget = fldRecordTarget;
        super.init(record);
    }
169604
public void setOwner(ListenerOwner owner)
    {
        super.setOwner(owner);
        if (owner != null)
        {
            BaseField field = m_field;
            if (field != null)
                if (field.getRecord() != owner)
            {   // Points to different file... make sure this is removed if the other file is closed
                field.addListener(new FieldRemoveBOnCloseHandler(this));
            }
        }
    }
75557
public void setCustomerDefaultSource(
            @NonNull String sourceId,
            @NonNull @Source.SourceType String sourceType,
            @Nullable CustomerRetrievalListener listener) {
        final Map<String, Object> arguments = new HashMap<>();
        arguments.put(KEY_SOURCE, sourceId);
        arguments.put(KEY_SOURCE_TYPE, sourceType);

        final String operationId = UUID.randomUUID().toString();
        if (listener != null) {
            mCustomerRetrievalListeners.put(operationId, listener);
        }
        mEphemeralKeyManager.retrieveEphemeralKey(operationId, ACTION_SET_DEFAULT_SOURCE,
                arguments);
    }