Interface FieldBehavior<T extends FieldBehavior<T>>
- All Known Subinterfaces:
FieldDisplayBehavior<T>,FieldFilterBehavior<T>
- All Known Implementing Classes:
CaseChangeBehavior,CronExpressionDisplayValueBehavior,CronExpressionTooltipFieldBehavior,DateTimeDisplayValueBehavior,DynamicDefaultValueBehavior,FieldDisplayBehavior.NoopFieldDisplayBehavior,FilterJsonFieldDisplayValueFormatter,SavedBulkLoadProfileJsonFieldDisplayValueFormatter,SavedReportJsonFieldDisplayValueFormatter,ValueRangeBehavior,ValueTooLongBehavior,WhiteSpaceBehavior
public interface FieldBehavior<T extends FieldBehavior<T>>
Interface for (expected to be?) enums which define behaviors that get applied
to fields.
Some of these behaviors get applied before a field is stored (insert
or update), through the ValueBehaviorApplier class. Others can be used to
do more advanced display formatting than the displayFormat string alone can
do (see QValueFormatter).
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancontrol if multiple behaviors of this type should be allowed together on a field.voidapply(ValueBehaviorApplier.Action action, List<QRecord> recordList, QInstance instance, QTableMetaData table, QFieldMetaData field) Apply this behavior to a list of recordsIn case a behavior of this type wasn't set on the field, what should the default of this type be?validateBehaviorConfiguration(QTableMetaData tableMetaData, QFieldMetaData fieldMetaData) allow this behavior to be validated during QInstance validation.
-
Method Details
-
getDefault
T getDefault()In case a behavior of this type wasn't set on the field, what should the default of this type be? -
apply
void apply(ValueBehaviorApplier.Action action, List<QRecord> recordList, QInstance instance, QTableMetaData table, QFieldMetaData field) Apply this behavior to a list of records -
allowMultipleBehaviorsOfThisType
default boolean allowMultipleBehaviorsOfThisType()control if multiple behaviors of this type should be allowed together on a field. -
validateBehaviorConfiguration
default List<String> validateBehaviorConfiguration(QTableMetaData tableMetaData, QFieldMetaData fieldMetaData) allow this behavior to be validated during QInstance validation. return a list of validation errors, if there are any.
-