Class DateTimeDisplayValueBehavior
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.fields.DateTimeDisplayValueBehavior
- All Implemented Interfaces:
FieldBehavior<DateTimeDisplayValueBehavior>,FieldDisplayBehavior<DateTimeDisplayValueBehavior>
public class DateTimeDisplayValueBehavior
extends Object
implements FieldDisplayBehavior<DateTimeDisplayValueBehavior>
Field Display Behavior class for customizing the display values used
in date-time fields
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.kingsrook.qqq.backend.core.model.metadata.fields.FieldDisplayBehavior
FieldDisplayBehavior.NoopFieldDisplayBehavior -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(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?Getter for defaultZoneIdGetter for fallbackZoneIdGetter for zoneIdFromFieldNamevoidsetDefaultZoneId(String defaultZoneId) Setter for defaultZoneIdvoidsetFallbackZoneId(String fallbackZoneId) Setter for fallbackZoneIdvoidsetZoneIdFromFieldName(String zoneIdFromFieldName) Setter for zoneIdFromFieldNamevalidateBehaviorConfiguration(QTableMetaData tableMetaData, QFieldMetaData fieldMetaData) allow this behavior to be validated during QInstance validation.withDefaultZoneId(String defaultZoneId) Fluent setter for defaultZoneIdwithFallbackZoneId(String fallbackZoneId) Fluent setter for fallbackZoneIdwithZoneIdFromFieldName(String zoneIdFromFieldName) Fluent setter for zoneIdFromFieldNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.kingsrook.qqq.backend.core.model.metadata.fields.FieldBehavior
allowMultipleBehaviorsOfThisType
-
Constructor Details
-
DateTimeDisplayValueBehavior
public DateTimeDisplayValueBehavior()
-
-
Method Details
-
getDefault
Description copied from interface:FieldBehaviorIn case a behavior of this type wasn't set on the field, what should the default of this type be?- Specified by:
getDefaultin interfaceFieldBehavior<DateTimeDisplayValueBehavior>- Specified by:
getDefaultin interfaceFieldDisplayBehavior<DateTimeDisplayValueBehavior>
-
apply
public void apply(ValueBehaviorApplier.Action action, List<QRecord> recordList, QInstance instance, QTableMetaData table, QFieldMetaData field) Description copied from interface:FieldBehaviorApply this behavior to a list of records- Specified by:
applyin interfaceFieldBehavior<DateTimeDisplayValueBehavior>
-
validateBehaviorConfiguration
public List<String> validateBehaviorConfiguration(QTableMetaData tableMetaData, QFieldMetaData fieldMetaData) Description copied from interface:FieldBehaviorallow this behavior to be validated during QInstance validation. return a list of validation errors, if there are any.- Specified by:
validateBehaviorConfigurationin interfaceFieldBehavior<DateTimeDisplayValueBehavior>
-
getZoneIdFromFieldName
Getter for zoneIdFromFieldName -
setZoneIdFromFieldName
Setter for zoneIdFromFieldName -
withZoneIdFromFieldName
Fluent setter for zoneIdFromFieldName -
getDefaultZoneId
Getter for defaultZoneId -
setDefaultZoneId
Setter for defaultZoneId -
withDefaultZoneId
Fluent setter for defaultZoneId -
getFallbackZoneId
Getter for fallbackZoneId -
setFallbackZoneId
Setter for fallbackZoneId -
withFallbackZoneId
Fluent setter for fallbackZoneId
-