Interface TileGrid<G extends TileGrid<G>>
- All Superinterfaces:
Comparable<G>,Component<G>,Copyable<G>,CustomCssComponent<G>,FetchGrid<G>,Grid<G>,Serializable
- All Known Subinterfaces:
EntityGridView<V>,ExportHistoryEntityGridView<V>
- All Known Implementing Classes:
DefaultEntityGridView,DefaultExportHistoryEntityGridView
Interface for a TileGrid, which is a grid that supports tiling of components.
- Since:
- Metadata Service 2.0.7, Release Train 2.3.0
- Author:
- Jon Fleschler (jfleschler)
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.FetchGrid
FetchGrid.EndpointTypes -
Field Summary
Fields inherited from interface com.broadleafcommerce.metadata.dsl.core.CustomCssComponent
CSS_ATTRIBUTE -
Method Summary
Modifier and TypeMethodDescriptiondefault GaddTileComponent(TileComponent<?> component) A convenience method to add a new tile component to the grid.default GaddTileComponent(String name, TileComponent<?> component) A convenience method to add a new tile component to the grid.default GConfigure the list of tile components this grid will display.default GMarks this grid to show the tile view by default.default GMarks this grid to not show the tile view by default.default GnotTiled()Marks this grid to not show the tile view.default GtileComponents(Collection<TileComponent<?>> components) Sets the tile components for this grid.default Gtiled()Marks this grid to show the tile view.default Gtiled(Collection<TileComponent<?>> components) Marks this grid to show the tile view with the specified components.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, 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.FetchGrid
displayRefresh, findReadEndpoint, getReadEndpoint, getReadEndpointType, narrowedPaging, narrowedPaging, numberedPaging, numberedPaging, readEndpoint, readEndpoint, readScope, readUrl, readUrl, unpagedMethods inherited from interface com.broadleafcommerce.metadata.dsl.core.extension.Grid
addColumn, addColumn, addColumn, addColumns, addRowMessage, addRowMessage, findColumn, findRowMessage, getColumn, getRowMessage, idKey, removeColumn, removeRowMessage, rowMessage
-
Method Details
-
tiled
Marks this grid to show the tile view.- Returns:
- this
-
tiled
Marks this grid to show the tile view with the specified components.- Parameters:
components- the components to be displayed in the tile view- Returns:
- this
-
notTiled
Marks this grid to not show the tile view.- Returns:
- the updated grid with the tiled attribute removed
-
tileComponents
Sets the tile components for this grid. This is a convenience method that allows you to set the tile components directly.- Parameters:
components- the collection of tile components to set- Returns:
- this
-
addTileComponent
A convenience method to add a new tile component to the grid.- Parameters:
component- the tile component to add- Returns:
- the updated grid with the new tile component added
-
addTileComponent
A convenience method to add a new tile component to the grid.- Parameters:
component- the tile component to add- Returns:
- the updated grid with the new tile component added
-
defaultTiled
Marks this grid to show the tile view by default.- Returns:
- the updated grid with the default tiled attribute set
-
notDefaultTiled
Marks this grid to not show the tile view by default.- Returns:
- the updated grid with the default tiled attribute removed
-
configureTileComponents
Configure the list of tile components this grid will display. This provides aListofTileComponentwhich can be modified to configure the list of components. The list returned will be sorted according to the order of the members.- Parameters:
fn- the function to configure the list- Returns:
- this
-