Interface DateRangeColumn<C extends DateRangeColumn<C>>
- All Superinterfaces:
Column<C>,Comparable<C>,Component<C>,Copyable<C>,CustomCssComponent<C>,DateColumn<C>,Serializable
- All Known Implementing Classes:
DefaultDateRangeColumn
Represents the metadata for a
ColumnTypes.DATE_RANGE column. This will take in start and
end dates as attributes to render a range.- Since:
- Metadata Service 2.0.8, Release Train 2.1.6
- Author:
- Susana Cruz (susanaccruz)
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
Column.ColumnAttributesNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.columns.DateColumn
DateColumn.TimeZoneFormatSuffixes -
Field Summary
Fields inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
CSS_ATTRIBUTE -
Method Summary
Modifier and TypeMethodDescriptiondefault CdateRangeSeparator(String separator) Adds theDateRangeColumn.Attributes.DATE_RANGE_SEPARATORattribute.default CAdds theDateRangeColumn.Attributes.END_DATEattribute.Finds theDateRangeColumn.Attributes.DATE_RANGE_SEPARATORattribute.Finds theDateRangeColumn.Attributes.END_DATEattribute.Finds theDateRangeColumn.Attributes.START_DATEattribute.default StringGets theDateRangeColumn.Attributes.DATE_RANGE_SEPARATORattribute.default StringGets theDateRangeColumn.Attributes.END_DATEattribute.default Stringdefault booleanChecks whether theDateRangeColumn.Attributes.DATE_RANGE_SEPARATORattribute has been set.default booleanChecks whether theDateRangeColumn.Attributes.END_DATEattribute has been set.default booleanChecks whether theDateRangeColumn.Attributes.START_DATEattribute has been set.default CRemoves theDateRangeColumn.Attributes.DATE_RANGE_SEPARATORattribute.default CRemoves theDateRangeColumn.Attributes.END_DATEattribute.default CRemoves theDateRangeColumn.Attributes.START_DATEattribute.default CAdds theDateRangeColumn.Attributes.START_DATEattribute.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, addSimpleComponent, apply, attribute, augmentable, 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, getAugmentableFlag, 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, setAugmentable, 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, removeCssClassMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.columns.DateColumn
dateFormat, dateTimeSeparator, findDateFormat, findDateTimeSeparator, getDateFormat, getDateTimeSeparator, hasDateFormat, hasDateTimeSeparator, removeDateFormat, removeDateTimeSeparator
-
Method Details
-
startDate
Adds theDateRangeColumn.Attributes.START_DATEattribute.- Parameters:
date- the start date to set.- Returns:
this
-
getStartDate
-
findStartDate
Finds theDateRangeColumn.Attributes.START_DATEattribute.- Returns:
- the value of the attribute or
Optional.empty()if not present.
-
removeStartDate
Removes theDateRangeColumn.Attributes.START_DATEattribute.- Returns:
this
-
hasStartDate
default boolean hasStartDate()Checks whether theDateRangeColumn.Attributes.START_DATEattribute has been set.- Returns:
- Whether the attribute is set.
-
endDate
Adds theDateRangeColumn.Attributes.END_DATEattribute.- Parameters:
date- the end date to set.- Returns:
this
-
getEndDate
Gets theDateRangeColumn.Attributes.END_DATEattribute.- Returns:
- the value of the attribute
-
findEndDate
Finds theDateRangeColumn.Attributes.END_DATEattribute.- Returns:
- the value of the attribute or
Optional.empty()if not present.
-
removeEndDate
Removes theDateRangeColumn.Attributes.END_DATEattribute.- Returns:
this
-
hasEndDate
default boolean hasEndDate()Checks whether theDateRangeColumn.Attributes.END_DATEattribute has been set.- Returns:
- Whether the attribute is set.
-
dateRangeSeparator
Adds theDateRangeColumn.Attributes.DATE_RANGE_SEPARATORattribute.- Parameters:
separator- The separator to set.- Returns:
this
-
getDateRangeSeparator
Gets theDateRangeColumn.Attributes.DATE_RANGE_SEPARATORattribute.- Returns:
- the value of the attribute
-
findDateRangeSeparator
Finds theDateRangeColumn.Attributes.DATE_RANGE_SEPARATORattribute.- Returns:
- the value of the attribute or
Optional.empty()if not present
-
removeDateRangeSeparator
Removes theDateRangeColumn.Attributes.DATE_RANGE_SEPARATORattribute.- Returns:
this
-
hasDateRangeSeparator
default boolean hasDateRangeSeparator()Checks whether theDateRangeColumn.Attributes.DATE_RANGE_SEPARATORattribute has been set.- Returns:
- Whether the attribute is set.
-