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 classstatic final classAppend these to one ofDateFormatTypesto 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 CdateFormat(String format) Adds theDateColumn.Attributes.DATE_FORMATattribute.default CdateTimeSeparator(String separator) Adds theDateColumn.Attributes.DATE_TIME_SEPARATORattribute.Finds theDateColumn.Attributes.DATE_FORMATattribute.Finds theDateColumn.Attributes.DATE_TIME_SEPARATORattribute.default StringGets theDateColumn.Attributes.DATE_FORMATattribute.default StringGets theDateColumn.Attributes.DATE_TIME_SEPARATORattribute.default booleanChecks whether theDateColumn.Attributes.DATE_FORMATattribute has been set.default booleanChecks whether theDateColumn.Attributes.DATE_TIME_SEPARATORattribute has been set.default CRemoves theDateColumn.Attributes.DATE_FORMATattribute.default CRemoves theDateColumn.Attributes.DATE_TIME_SEPARATORattribute.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, widthMethods inherited from interface java.lang.Comparable
compareToMethods 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, typeMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
addCssClass, addCssClass, addCssClass, clearCssClasses, getCssClasses, removeCssClass, removeCssClass, removeCssClass
-
Method Details
-
dateFormat
Adds theDateColumn.Attributes.DATE_FORMATattribute.- Parameters:
format- The format to set. SeeDateFormatTypes- Returns:
this
-
getDateFormat
Gets theDateColumn.Attributes.DATE_FORMATattribute.- Returns:
- the value of the attribute
-
findDateFormat
Finds theDateColumn.Attributes.DATE_FORMATattribute.- Returns:
- the value of the attribute or
Optional.empty()if not present.
-
removeDateFormat
Removes theDateColumn.Attributes.DATE_FORMATattribute.- Returns:
this
-
hasDateFormat
default boolean hasDateFormat()Checks whether theDateColumn.Attributes.DATE_FORMATattribute has been set.- Returns:
- Whether the attribute is set.
-
dateTimeSeparator
Adds theDateColumn.Attributes.DATE_TIME_SEPARATORattribute.- Parameters:
separator- The separator to set. SeeDateFormatTypes- Returns:
this
-
getDateTimeSeparator
Gets theDateColumn.Attributes.DATE_TIME_SEPARATORattribute.- Returns:
- the value of the attribute
-
findDateTimeSeparator
Finds theDateColumn.Attributes.DATE_TIME_SEPARATORattribute.- Returns:
- the value of the attribute or
Optional.empty()if not present
-
removeDateTimeSeparator
Removes theDateColumn.Attributes.DATE_TIME_SEPARATORattribute.- Returns:
this
-
hasDateTimeSeparator
default boolean hasDateTimeSeparator()Checks whether theDateColumn.Attributes.DATE_TIME_SEPARATORattribute has been set.- Returns:
- Whether the attribute is set.
-