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>,Serializable,Comparable<C>
- Direct Known Subclasses:
DefaultColumn,DefaultConditionalColumn,DefaultDateColumn,DefaultDynamicColumn,DefaultEmbeddedListColumn,DefaultEnumArrayColumn,DefaultEnumColumn,DefaultLinkColumn,DefaultMoneyColumn,DefaultProgressColumn,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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
Column.ColumnAttributes
-
-
Constructor Summary
Constructors Constructor Description AbstractColumn()AbstractColumn(Column<?> component)AbstractColumn(String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetAlign()Defines the alignment of column data as either "left", "center", or "right".StringgetColSpan()Defines the number of column lengths this column spans.StringgetName()The name of the property this column will display.StringgetWidth()Defines a fixed width for this column.inthashCode()booleanisSortable()Whether or not the column is sortable.voidsetAlign(String align)Sets the alignment.voidsetColSpan(String colSpan)Sets the column span.voidsetName(String name)Sets the name.voidsetSortable(boolean sortable)Sets whether or not sortable.voidsetWidth(String width)Sets 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, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.broadleafcommerce.metadata.dsl.core.Column
align, alignCenter, alignLeft, alignRight, colSpan, colSpan, filterAndSortAlias, name, notSortable, 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
-
getAlign
public String 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
public String 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
public String 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
public String 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
public void setAlign(String align)
Description copied from interface:ColumnSets the alignment.- Specified by:
setAlignin interfaceColumn<C extends AbstractColumn<C>>- Parameters:
align- the alignment
-
setColSpan
public void setColSpan(String colSpan)
Description copied from interface:ColumnSets the column span.- Specified by:
setColSpanin interfaceColumn<C extends AbstractColumn<C>>- Parameters:
colSpan- the col span
-
setName
public void setName(String name)
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
public void setWidth(String width)
Description copied from interface:ColumnSets the width of the column.- Specified by:
setWidthin interfaceColumn<C extends AbstractColumn<C>>- Parameters:
width- the width
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractComponent<C extends AbstractColumn<C>>
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classAbstractComponent<C extends AbstractColumn<C>>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractComponent<C extends AbstractColumn<C>>
-
-