Package com.im.df.api.capabilities
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 inDFFieldPickListCapability
, 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 thisDFFieldPickListCapability
.java.util.Properties
load()
Loads properties of thisDFFieldPickListCapability
.void
store(java.util.Properties propsToSet, java.util.Set<java.lang.String> propsToClear, com.im.commons.progress.DFEnvironmentRW env)
Stores the internal state of thisDFFieldPickListCapability
.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 ofDFFieldPickListCapability
should be guarded by DDL's lock. SeeDFLockable
.- Parameters:
env
- The environment with the DDL lock
-
load
java.util.Properties load()
Loads properties of thisDFFieldPickListCapability
. 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 thisDFFieldPickListCapability
. Used by persistence.- Parameters:
propsToSet
- Properties to storepropsToClear
- Properties to clearenv
- Environment with DDL lock
-
executeScript
java.util.List executeScript(java.lang.String loaderScript)
Executes the loader script. See more info about loader scripts here:DFFieldPickListCapability.setLoaderScript(java.lang.String, com.im.commons.progress.DFEnvironmentRW)
.- Parameters:
loaderScript
- The script to be executed.- Returns:
- Values from the script execution.
-
firePropertyChangeEvent
void firePropertyChangeEvent(java.lang.String propName, java.lang.Object oldValue, java.lang.Object newValue)
Fires property changes from thisDFFieldPickListCapability
. Field which owns this capability should fire these property changes to its registered listeners. See PROP_ constants in this class.- Parameters:
propName
- Property nameoldValue
- Old property valuenewValue
- New property value
-
updatePickList
void updatePickList()
Updates fields pick-list values.- Since:
- 21.4.0
-
-