Interface Selectable<S extends Selectable<S>>
- All Superinterfaces:
Comparable<S>,Component<S>,Copyable<S>,Serializable
- All Known Subinterfaces:
EntityGridView<V>,ExportHistoryEntityGridView<V>,ExportHistoryGridExternal<E>,FieldArrayGridField<F>,GridExternal<E>,GridView<V>,Orderable<R>,ResidentGridField<F>,SelectTargetEntityGridView<V>,TreeGridView<V>
- All Known Implementing Classes:
DefaultEntityGridView,DefaultExportHistoryEntityGridView,DefaultExportHistoryGridExternal,DefaultFieldArrayGridField,DefaultGridExternal,DefaultResidentGridField,DefaultSelectTargetEntityGridView,DefaultTreeGridView
An interface implemented by components that intend to support selectable behavior.
- Author:
- Nick Crum (ncrum)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic interfaceA functional interface to provide a functional entry-point toSelectable.static final class -
Method Summary
Modifier and TypeMethodDescriptiondefault SConfigure the component with multi-page selection behavior.default SConfigure the component with multi-page selection with exclusions behavior.default SConfigure the component with multiple selection behavior.default SDisabled selectable behavior for the component.default SDisable selectable-when-mutable-only behavior.default SConfigure the component with the default selectable behavior, i.e.default Sselectable(boolean isSelectable) Sets whether or not the component supports selectable behavior.default SConfigure selection behavior for the component.default SselectableType(String selectableType) Sets the selectable type to indicate the type of selectable behavior supported.default SEnable selectable-when-mutable-only behavior.default SselectableWhenMutableOnly(boolean whenMutableOnly) Configure the component so that the line items are only selectable when the entity they represent is mutable.default SConfigure the component with single selection behavior.Methods 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, type
-
Method Details
-
selectable
Configure selection behavior for the component. This is generally used with a lambda function, for example:grid.selectable(selectable -> selectable.multipleSelection());
- Parameters:
fn- the function to configure the selectable component- Returns:
- the selectable
-
selectable
Sets whether or not the component supports selectable behavior.- Parameters:
isSelectable- is selectable or not- Returns:
- the selectable
-
selectable
Configure the component with the default selectable behavior, i.e. single-select.- Returns:
- the selectable
-
notSelectable
Disabled selectable behavior for the component.- Returns:
- the selectable
-
selectableType
Sets the selectable type to indicate the type of selectable behavior supported.- Parameters:
selectableType- the type, usually one ofSelectable.SelectableTypes- Returns:
- the configurer
-
singleSelectable
Configure the component with single selection behavior.- Returns:
- the selectable
-
multipleSelectable
Configure the component with multiple selection behavior.- Returns:
- the selectable
-
multiPageSelectable
Configure the component with multi-page selection behavior.- Returns:
- the selectable
-
multiPageSelectableWithExclusions
Configure the component with multi-page selection with exclusions behavior.- Returns:
- the selectable
-
selectableWhenMutableOnly
Configure the component so that the line items are only selectable when the entity they represent is mutable. In other words, this will only disable selection of immutable items and mutable items in the same grid will still be selectable.- Parameters:
whenMutableOnly- true to make the component selectable only when mutable, false otherwise- Returns:
- the selectable
- Since:
- Metadata Service 2.0.8, Release Train 2.3.0
-
selectableWhenMutableOnly
Enable selectable-when-mutable-only behavior.- Returns:
- the selectable
- Since:
- Metadata Service 2.0.8, Release Train 2.3.0
-
notSelectableWhenMutableOnly
Disable selectable-when-mutable-only behavior.- Returns:
- the selectable
- Since:
- Metadata Service 2.0.8, Release Train 2.3.0
-