Uses of Class
com.vaadin.flow.component.grid.Grid.Column
Packages that use Grid.Column
Package
Description
-
Uses of Grid.Column in com.vaadin.flow.component.grid
Methods in com.vaadin.flow.component.grid with type parameters of type Grid.ColumnModifier and TypeMethodDescriptionprotected <C extends Grid.Column<T>>
CAdds a new text column to thisGrid
with a renderer and column factory provided.protected <C extends Grid.Column<T>>
CGrid.addColumn
(ValueProvider<T, ?> valueProvider, BiFunction<Renderer<T>, String, C> columnFactory) Adds a new text column to thisGrid
with a value provider and column factory provided.protected <C extends Grid.Column<T>>
CAdds a new column for the given property name with the column factory provided.Methods in com.vaadin.flow.component.grid that return Grid.ColumnModifier and TypeMethodDescriptionAdds a new text column to thisGrid
with a renderer and default column factory.Grid.addColumn
(ValueProvider<T, ?> valueProvider) Adds a new text column to thisGrid
with a value provider and default column factory.<V extends Comparable<? super V>>
Grid.Column<T>Grid.addColumn
(ValueProvider<T, V> valueProvider, String... sortingProperties) Adds a new text column to thisGrid
with a value provider and sorting properties.The value is converted to a JSON value by usingJsonSerializer.toJson(Object)
.Adds a new column for the given property name with the default column factory.<V extends Component>
Grid.Column<T>Grid.addComponentColumn
(ValueProvider<T, V> componentProvider) Adds a new column that shows components.protected Grid.Column<T>
Grid.createColumn
(Renderer<T> renderer, String columnId) Deprecated.This method should not be used outside.protected Grid.Column<?>
Grid.Column.getBottomLevelColumn()
Gets the grid column by column property.ItemClickEvent.getColumn()
Gets the column that was clicked.Grid.getColumnByKey
(String columnKey) Gets aGrid.Column
of this grid by its key.ColumnResizeEvent.getResizedColumn()
Returns the column that was the target of user's resize actionGridSortOrder.getSorted()
Gets the column this sorting information is attached to.Grid.Column.setAutoWidth
(boolean autoWidth) Enables or disables automatic width for this column.Grid.Column.setClassNameGenerator
(SerializableFunction<T, String> classNameGenerator) Deprecated.setPartNameGenerator(com.vaadin.flow.function.SerializableFunction<T, java.lang.String>)
should be used instead.<V extends Comparable<? super V>>
Grid.Column<T>Grid.Column.setComparator
(ValueProvider<T, V> keyExtractor) Sets a comparator to use with in-memory sorting with this column based on the return type of the givenValueProvider
.Sorting with a back-end is done usingsetSortProperty(String[])
.Grid.Column.setComparator
(Comparator<T> comparator) Sets a comparator to use with in-memory sorting with this column.Grid.Column.setEditorComponent
(Component editorComponent) Sets a component to use for editing values of this column in the editor row.Grid.Column.setEditorComponent
(SerializableFunction<T, ? extends Component> componentCallback) Sets a function that returns the editor component to be used for an specific item in the editor row.Grid.Column.setFlexGrow
(int flexGrow) Sets the flex grow ratio for this column.Sets a footer component to the column.Sets a footer text to the column.Sets a header component to the column.Sets a header text to the column.Sets the user-defined identifier to map this column.Grid.Column.setPartNameGenerator
(SerializableFunction<T, String> partNameGenerator) Sets the function that is used for generating CSS part names for cells in this column.Grid.Column.setRenderer
(Renderer<T> renderer) Set the renderer for this column.Grid.Column.setRowHeader
(boolean rowHeader) Sets whether cells in this column should be announced as row headers.Grid.Column.setSortable
(boolean sortable) Sets whether the user can sort this column or not.Grid.Column.setSortOrderProvider
(SortOrderProvider provider) Sets the sort orders when sorting this column.Grid.Column.setSortProperty
(String... properties) Sets strings describing back end properties to be used when sorting this column.Grid.Column.setTooltipGenerator
(SerializableFunction<T, String> tooltipGenerator) Sets the function that is used for generating tooltip text for cells in this column.Sets the width of this column as a CSS-string.Methods in com.vaadin.flow.component.grid that return types with arguments of type Grid.ColumnModifier and TypeMethodDescriptionCellFocusEvent.getColumn()
Returns the column represented by the focused cell.List<Grid.Column<T>>
ColumnReorderEvent.getColumns()
Gets the new order of the columns.List<Grid.Column<T>>
Grid.getColumns()
Gets an unmodifiable list of allGrid.Column
s currently in thisGrid
.protected BiFunction<Renderer<T>,
String, Grid.Column<T>> Grid.getDefaultColumnFactory()
Gives a reference to the column factory.Methods in com.vaadin.flow.component.grid with parameters of type Grid.ColumnModifier and TypeMethodDescriptionstatic <T> GridSortOrderBuilder<T>
GridSortOrder.asc
(Grid.Column<T> by) Creates a new grid sort builder with given sorting using ascending sort direction.protected GridSortOrder<T>
GridSortOrderBuilder.createSortOrder
(Grid.Column<T> by, SortDirection direction) static <T> GridSortOrderBuilder<T>
GridSortOrder.desc
(Grid.Column<T> by) Creates a new grid sort builder with given sorting using descending sort direction.HeaderRow.join
(Grid.Column<?>... columnsToMerge) Joins the cells corresponding the given columns in the row.void
Grid.removeColumn
(Grid.Column<T> column) Removes a column from the Grid.void
Grid.removeColumns
(Grid.Column<T>... columns) Removes columns from the Grid.protected void
Grid.setColumnKey
(String key, Grid.Column column) Sets a user-defined identifier for given column.void
Grid.setColumnOrder
(Grid.Column<T>... columns) Sets a new column order for the grid.GridSortOrderBuilder.thenAsc
(Grid.Column<T> by) GridSortOrderBuilder.thenDesc
(Grid.Column<T> by) Method parameters in com.vaadin.flow.component.grid with type arguments of type Grid.ColumnModifier and TypeMethodDescriptionvoid
Grid.setColumnOrder
(List<Grid.Column<T>> columns) Sets a new column order for the grid.Constructors in com.vaadin.flow.component.grid with parameters of type Grid.ColumnModifierConstructorDescriptionGridSortOrder
(Grid.Column<T> column, SortDirection direction) Construct sorting information for usage in aGrid
.Constructor parameters in com.vaadin.flow.component.grid with type arguments of type Grid.ColumnModifierConstructorDescriptionColumnReorderEvent
(Grid<T> source, boolean fromClient, List<Grid.Column<T>> columns) Creates a new column reorder event. -
Uses of Grid.Column in com.vaadin.flow.component.gridpro
Subclasses of Grid.Column in com.vaadin.flow.component.gridproModifier and TypeClassDescriptionstatic class
Server-side component for the<vaadin-grid-edit-column>
element.Methods in com.vaadin.flow.component.gridpro that return Grid.ColumnModifier and TypeMethodDescriptionEditColumnConfigurator.checkbox
(ItemUpdater<T, Boolean> itemUpdater) Configures the column to have a checkbox editor with the given item updater.<V> Grid.Column<T>
EditColumnConfigurator.custom
(HasValueAndElement<?, V> component, ItemUpdater<T, V> itemUpdater) Configures the column to have a custom editor component.<V> Grid.Column<T>
EditColumnConfigurator.custom
(HasValueAndElement<?, V> component, ValueProvider<T, V> valueProvider, ItemUpdater<T, V> itemUpdater) Configures the column to have a custom editor component, using a custom value provider.EditColumnConfigurator.getColumn()
Gets the column.<E extends Enum<E>>
Grid.Column<T>EditColumnConfigurator.select
(ItemUpdater<T, E> itemUpdater, Class<E> enumType) Configures the column to have a select editor with the given item updater, enum type using toString() as the string representation.<E extends Enum<E>>
Grid.Column<T>EditColumnConfigurator.select
(ItemUpdater<T, E> itemUpdater, Class<E> enumType, SerializableFunction<E, String> getStringRepresentation) Configures the column to have a select editor with the given item updater, enum type and string representation callback.EditColumnConfigurator.select
(ItemUpdater<T, String> itemUpdater, String... options) Configures the column to have a select editor with the given item updater and options.Configures the column to have a select editor with the given item updater and options.EditColumnConfigurator.text
(ItemUpdater<T, String> itemUpdater) Configures the column to have a text editor with the given item updater. -
Uses of Grid.Column in com.vaadin.flow.component.treegrid
Methods in com.vaadin.flow.component.treegrid that return Grid.ColumnModifier and TypeMethodDescription<V extends Component>
Grid.Column<T>TreeGrid.addComponentHierarchyColumn
(ValueProvider<T, V> componentProvider) Adds a new Hierarchy column that shows components.TreeGrid.addHierarchyColumn
(ValueProvider<T, ?> valueProvider) Adds a new Hierarchy column to thisGrid
with a value provider.TreeGrid.setColumns
(String hierarchyPropertyName, ValueProvider<T, ?> valueProvider, Collection<String> propertyNames) Note: This method can only be used for a TreeGrid created from a bean type withTreeGrid(Class)
.TreeGrid.setHierarchyColumn
(String propertyName) Note: This method can only be used for a TreeGrid created from a bean type withTreeGrid(Class)
.TreeGrid.setHierarchyColumn
(String propertyName, ValueProvider<T, ?> valueProvider) Note: This method can only be used for a TreeGrid created from a bean type withTreeGrid(Class)
.