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 TypeMethodDescriptionvoid
apply
(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 zoneIdFromFieldNamevoid
setDefaultZoneId
(String defaultZoneId) Setter for defaultZoneIdvoid
setFallbackZoneId
(String fallbackZoneId) Setter for fallbackZoneIdvoid
setZoneIdFromFieldName
(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, wait
Methods 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:FieldBehavior
In case a behavior of this type wasn't set on the field, what should the default of this type be?- Specified by:
getDefault
in interfaceFieldBehavior<DateTimeDisplayValueBehavior>
- Specified by:
getDefault
in interfaceFieldDisplayBehavior<DateTimeDisplayValueBehavior>
-
apply
public void apply(ValueBehaviorApplier.Action action, List<QRecord> recordList, QInstance instance, QTableMetaData table, QFieldMetaData field) Description copied from interface:FieldBehavior
Apply this behavior to a list of records- Specified by:
apply
in interfaceFieldBehavior<DateTimeDisplayValueBehavior>
-
validateBehaviorConfiguration
public List<String> validateBehaviorConfiguration(QTableMetaData tableMetaData, QFieldMetaData fieldMetaData) Description copied from interface:FieldBehavior
allow this behavior to be validated during QInstance validation. return a list of validation errors, if there are any.- Specified by:
validateBehaviorConfiguration
in 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
-