Interface DateColumn<C extends DateColumn<C>>
- All Superinterfaces:
Column<C>
,Comparable<C>
,Component<C>
,Copyable<C>
,CustomCssComponent<C>
,Serializable
- All Known Implementing Classes:
DefaultDateColumn
- Author:
- Nathan Moore (nathandmoore)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
static final class
Append these to one ofDateFormatTypes
to display time-zone.Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
Column.ColumnAttributes
-
Field Summary
Fields inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
CSS_ATTRIBUTE
-
Method Summary
Modifier and TypeMethodDescriptiondefault C
dateFormat
(String format) Adds theDateColumn.Attributes.DATE_FORMAT
attribute.default C
dateTimeSeparator
(String separator) Adds theDateColumn.Attributes.DATE_TIME_SEPARATOR
attribute.Finds theDateColumn.Attributes.DATE_FORMAT
attribute.Finds theDateColumn.Attributes.DATE_TIME_SEPARATOR
attribute.default String
Gets theDateColumn.Attributes.DATE_FORMAT
attribute.default String
Gets theDateColumn.Attributes.DATE_TIME_SEPARATOR
attribute.default boolean
Checks whether theDateColumn.Attributes.DATE_FORMAT
attribute has been set.default boolean
Checks whether theDateColumn.Attributes.DATE_TIME_SEPARATOR
attribute has been set.default C
Removes theDateColumn.Attributes.DATE_FORMAT
attribute.default C
Removes theDateColumn.Attributes.DATE_TIME_SEPARATOR
attribute.Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
addCellCssClass, addCellCssClass, addCellCssClass, addHeaderCssClass, addHeaderCssClass, addHeaderCssClass, align, alignCenter, alignLeft, alignRight, clearCellCssClasses, clearHeaderCssClasses, colSpan, colSpan, filterAndSortAlias, getAlign, getColSpan, getDataCellCssClasses, getHeaderCssClasses, getName, getWidth, isSortable, name, notSortable, removeCellCssClass, removeCellCssClass, removeCellCssClass, removeHeaderCssClass, removeHeaderCssClass, removeHeaderCssClass, 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, findAttribute, findComponent, findComponent, findComponents, findEndpoint, 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
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
addCssClass, addCssClass, addCssClass, clearCssClasses, getCssClasses, removeCssClass, removeCssClass, removeCssClass
-
Method Details
-
dateFormat
Adds theDateColumn.Attributes.DATE_FORMAT
attribute.- Parameters:
format
- The format to set. SeeDateFormatTypes
- Returns:
this
-
getDateFormat
Gets theDateColumn.Attributes.DATE_FORMAT
attribute.- Returns:
- the value of the attribute
-
findDateFormat
Finds theDateColumn.Attributes.DATE_FORMAT
attribute.- Returns:
- the value of the attribute or
Optional.empty()
if not present.
-
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
Adds theDateColumn.Attributes.DATE_TIME_SEPARATOR
attribute.- Parameters:
separator
- The separator to set. SeeDateFormatTypes
- Returns:
this
-
getDateTimeSeparator
Gets theDateColumn.Attributes.DATE_TIME_SEPARATOR
attribute.- Returns:
- the value of the attribute
-
findDateTimeSeparator
Finds theDateColumn.Attributes.DATE_TIME_SEPARATOR
attribute.- Returns:
- the value of the attribute or
Optional.empty()
if not present
-
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.
-