Interface DFFieldPickListCapability.FieldBridge

  • Enclosing class:
    DFFieldPickListCapability

    public static interface DFFieldPickListCapability.FieldBridge
    This is an interface playing role of a bridge between this capability and the field's implementation. Some operations cannot be handled in DFFieldPickListCapability, but must be delegated to a field. Once field creates this capability instance it must provide the implementation of the this interface. You should probably never need to implement this interface.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void checkLock​(com.im.commons.progress.DFEnvironmentRW env)
      Checks the lock before doing write operations.
      java.util.List executeScript​(java.lang.String loaderScript)
      Executes the loader script.
      void firePropertyChangeEvent​(java.lang.String propName, java.lang.Object oldValue, java.lang.Object newValue)
      Fires property changes from this DFFieldPickListCapability.
      java.util.Properties load()
      Loads properties of this DFFieldPickListCapability.
      void store​(java.util.Properties propsToSet, java.util.Set<java.lang.String> propsToClear, com.im.commons.progress.DFEnvironmentRW env)
      Stores the internal state of this DFFieldPickListCapability.
      void updatePickList()
      Updates fields pick-list values.
    • Method Detail

      • checkLock

        void checkLock​(com.im.commons.progress.DFEnvironmentRW env)
        Checks the lock before doing write operations. All setters of DFFieldPickListCapability should be guarded by DDL's lock. See DFLockable.
        Parameters:
        env - The environment with the DDL lock
      • load

        java.util.Properties load()
        Loads properties of this DFFieldPickListCapability. Used by persistence.
        Returns:
        Properties instance with values for this capability (e.g. picklist type).
      • store

        void store​(java.util.Properties propsToSet,
                   java.util.Set<java.lang.String> propsToClear,
                   com.im.commons.progress.DFEnvironmentRW env)
        Stores the internal state of this DFFieldPickListCapability. Used by persistence.
        Parameters:
        propsToSet - Properties to store
        propsToClear - Properties to clear
        env - Environment with DDL lock
      • firePropertyChangeEvent

        void firePropertyChangeEvent​(java.lang.String propName,
                                     java.lang.Object oldValue,
                                     java.lang.Object newValue)
        Fires property changes from this DFFieldPickListCapability. Field which owns this capability should fire these property changes to its registered listeners. See PROP_ constants in this class.
        Parameters:
        propName - Property name
        oldValue - Old property value
        newValue - New property value
      • updatePickList

        void updatePickList()
        Updates fields pick-list values.
        Since:
        21.4.0