Interface DateColumn<C extends DateColumn<C>>
-
- All Superinterfaces:
Column<C>
,Comparable<C>
,Component<C>
,Copyable<C>
,Serializable
- All Known Implementing Classes:
DefaultDateColumn
public interface DateColumn<C extends DateColumn<C>> extends Column<C>
- Author:
- Nathan Moore (nathandmoore)
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
DateColumn.Attributes
static class
DateColumn.TimeZoneFormatSuffixes
Append these to one ofDateFormatTypes
to display time-zone.-
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
Column.ColumnAttributes
-
-
Method Summary
-
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
align, alignCenter, alignLeft, alignRight, colSpan, colSpan, filterAndSortAlias, getAlign, getColSpan, getName, getWidth, isSortable, name, notSortable, setAlign, setColSpan, setName, setSortable, setWidth, sortable, sortable, width
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Component
addAction, addAction, addComponent, addEndpoint, addEndpoint, apply, attribute, augmentationKey, classifier, clearConditionals, clearEndpoints, conditional, conditionals, description, description, findAction, findAction, findActions, findAttribute, findComponent, findComponent, findComponents, findEndpoint, findEndpoint, findEndpoints, get, get, getAction, getAction, getActions, getActionsList, getAttribute, getAttribute, getAttributes, getAugmentationKey, getClassifier, getComponent, getComponent, getComponents, getComponentsList, getConditionals, getDescription, getEndpoint, getEndpoint, getEndpoints, getEndpointsList, getId, getLabel, getOrder, getScope, getType, hasAction, hasAttribute, hasComponent, hasEndpoint, id, isAugmentable, isTranslatable, label, label, notTranslatable, order, removeAction, removeAttribute, removeComponent, removeEndpoint, scope, self, setActions, setAttributes, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, translatable, translatable, type
-
-
-
-
Method Detail
-
dateFormat
default C dateFormat(String format)
Adds theDateColumn.Attributes.DATE_FORMAT
attribute.- Parameters:
format
- The format to set. SeeDateFormatTypes
- Returns:
this
-
getDateFormat
@Nullable default String getDateFormat()
Gets theDateColumn.Attributes.DATE_FORMAT
attribute.- Returns:
- the value of the attribute
-
findDateFormat
default Optional<String> findDateFormat()
Finds theDateColumn.Attributes.DATE_FORMAT
attribute.- Returns:
- the value of the attribute or
Optional.empty()
if not present.
-
removeDateFormat
default C removeDateFormat()
Removes theDateColumn.Attributes.DATE_FORMAT
attribute.- Returns:
this
-
hasDateFormat
default boolean hasDateFormat()
Checks whether theDateColumn.Attributes.DATE_FORMAT
attribute has been set.- Returns:
- Whether the attribute is set.
-
dateTimeSeparator
default C dateTimeSeparator(String separator)
Adds theDateColumn.Attributes.DATE_TIME_SEPARATOR
attribute.- Parameters:
separator
- The separator to set. SeeDateFormatTypes
- Returns:
this
-
getDateTimeSeparator
@Nullable default String getDateTimeSeparator()
Gets theDateColumn.Attributes.DATE_TIME_SEPARATOR
attribute.- Returns:
- the value of the attribute
-
findDateTimeSeparator
default Optional<String> findDateTimeSeparator()
Finds theDateColumn.Attributes.DATE_TIME_SEPARATOR
attribute.- Returns:
- the value of the attribute or
Optional.empty()
if not present
-
removeDateTimeSeparator
default C removeDateTimeSeparator()
Removes theDateColumn.Attributes.DATE_TIME_SEPARATOR
attribute.- Returns:
this
-
hasDateTimeSeparator
default boolean hasDateTimeSeparator()
Checks whether theDateColumn.Attributes.DATE_TIME_SEPARATOR
attribute has been set.- Returns:
- Whether the attribute is set.
-
-