Class AbstractColumn<C extends AbstractColumn<C>>
java.lang.Object
com.broadleafcommerce.metadata.dsl.core.AbstractComponent<C>
com.broadleafcommerce.metadata.dsl.core.extension.columns.AbstractColumn<C>
- All Implemented Interfaces:
Column<C>,Component<C>,Copyable<C>,CustomCssComponent<C>,Serializable,Comparable<C>
- Direct Known Subclasses:
DefaultColumn,DefaultConditionalColumn,DefaultDateColumn,DefaultDerivedColumn,DefaultDynamicColumn,DefaultEmbeddedListColumn,DefaultEnumArrayColumn,DefaultEnumColumn,DefaultLinkColumn,DefaultMoneyColumn,DefaultProgressColumn,DefaultRSQLRuleColumn,DefaultSpelRuleColumn,DefaultThumbnailColumn
public abstract class AbstractColumn<C extends AbstractColumn<C>>
extends AbstractComponent<C>
implements Column<C>
The abstract column component specification.
- Author:
- Nick Crum (ncrum)
- See Also:
-
Nested Class Summary
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetAlign()Defines the alignment of column data as either "left", "center", or "right".Defines the number of column lengths this column spans.getName()The name of the property this column will display.getWidth()Defines a fixed width for this column.inthashCode()booleanWhether or not the column is sortable.voidSets the alignment.voidsetColSpan(String colSpan) Sets the column span.voidSets the name.voidsetSortable(boolean sortable) Sets whether or not sortable.voidSets the width of the column.Methods inherited from class com.broadleafcommerce.metadata.dsl.core.AbstractComponent
compareTo, getActions, getAttributes, getAugmentationKey, getClassifier, getComponents, getConditionals, getDescription, getEndpoints, getId, getLabel, getOrder, getScope, getType, isTranslatable, setActions, setAttributes, setAugmentationKey, setClassifier, setComponents, setConditionals, setDescription, setEndpoints, setId, setLabel, setOrder, setScope, setTranslatable, setType, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
addCellCssClass, addCellCssClass, addCellCssClass, addHeaderCssClass, addHeaderCssClass, addHeaderCssClass, align, alignCenter, alignLeft, alignRight, clearCellCssClasses, clearHeaderCssClasses, colSpan, colSpan, filterAndSortAlias, getDataCellCssClasses, getHeaderCssClasses, name, notSortable, removeCellCssClass, removeCellCssClass, removeCellCssClass, removeHeaderCssClass, removeHeaderCssClass, removeHeaderCssClass, 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
-
Constructor Details
-
AbstractColumn
public AbstractColumn() -
AbstractColumn
-
AbstractColumn
-
-
Method Details
-
getAlign
Description copied from interface:ColumnDefines the alignment of column data as either "left", "center", or "right". Default is "left" if not set.- Specified by:
getAlignin interfaceColumn<C extends AbstractColumn<C>>- Returns:
- the alignment
-
getColSpan
Description copied from interface:ColumnDefines the number of column lengths this column spans. Useful for making a name or description column span multiple column lengths.- Specified by:
getColSpanin interfaceColumn<C extends AbstractColumn<C>>- Returns:
- the col span
-
getName
Description copied from interface:ColumnThe name of the property this column will display.- Specified by:
getNamein interfaceColumn<C extends AbstractColumn<C>>- Returns:
- the name
-
isSortable
public boolean isSortable()Description copied from interface:ColumnWhether or not the column is sortable.- Specified by:
isSortablein interfaceColumn<C extends AbstractColumn<C>>- Returns:
- whether or not sortable.
-
getWidth
Description copied from interface:ColumnDefines a fixed width for this column. By default, all columns are auto-sized according to their content.Supports width values compatible with the CSS width property, for example:
- 100px
- 100
- 4rem
- 3em
- 50%
- Specified by:
getWidthin interfaceColumn<C extends AbstractColumn<C>>- Returns:
- the width
-
setAlign
Description copied from interface:ColumnSets the alignment.- Specified by:
setAlignin interfaceColumn<C extends AbstractColumn<C>>- Parameters:
align- the alignment
-
setColSpan
Description copied from interface:ColumnSets the column span.- Specified by:
setColSpanin interfaceColumn<C extends AbstractColumn<C>>- Parameters:
colSpan- the col span
-
setName
Description copied from interface:ColumnSets the name.- Specified by:
setNamein interfaceColumn<C extends AbstractColumn<C>>- Parameters:
name- the name
-
setSortable
public void setSortable(boolean sortable) Description copied from interface:ColumnSets whether or not sortable.- Specified by:
setSortablein interfaceColumn<C extends AbstractColumn<C>>- Parameters:
sortable- whether or not sortable
-
setWidth
Description copied from interface:ColumnSets the width of the column.- Specified by:
setWidthin interfaceColumn<C extends AbstractColumn<C>>- Parameters:
width- the width
-
equals
- Overrides:
equalsin classAbstractComponent<C extends AbstractColumn<C>>
-
canEqual
- Overrides:
canEqualin classAbstractComponent<C extends AbstractColumn<C>>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractComponent<C extends AbstractColumn<C>>
-