Uses of Class
com.vaadin.flow.component.grid.Grid.Column
Packages that use Grid.Column
-
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>>
CGrid.addColumn(com.vaadin.flow.data.renderer.Renderer<T> renderer, BiFunction<com.vaadin.flow.data.renderer.Renderer<T>, String, C> columnFactory) Adds a new text column to thisGridwith a renderer and column factory provided.protected <C extends Grid.Column<T>>
CGrid.addColumn(com.vaadin.flow.function.ValueProvider<T, ?> valueProvider, BiFunction<com.vaadin.flow.data.renderer.Renderer<T>, String, C> columnFactory) Adds a new text column to thisGridwith a value provider and column factory provided.protected <C extends Grid.Column<T>>
CGrid.addColumn(String propertyName, BiFunction<com.vaadin.flow.data.renderer.Renderer<T>, String, C> columnFactory) Adds 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 thisGridwith a renderer and default column factory.Adds a new text column to thisGridwith a value provider and default column factory.<V extends Comparable<? super V>>
Grid.Column<T> Grid.addColumn(com.vaadin.flow.function.ValueProvider<T, V> valueProvider, String... sortingProperties) Adds a new text column to thisGridwith a value provider and sorting properties.The value is converted to a JSON value by usingJacksonSerializer.toJson(Object).Adds a new column for the given property name with the default column factory.<V extends com.vaadin.flow.component.Component>
Grid.Column<T> Grid.addComponentColumn(com.vaadin.flow.function.ValueProvider<T, V> componentProvider) Adds a new column that shows components.protected Grid.Column<T> Grid.createColumn(com.vaadin.flow.data.renderer.Renderer<T> renderer, String columnId) Deprecated.This method should not be used outside.protected Grid.Column<?> Grid.Column.getBottomLevelColumn()ItemClickEvent.getColumn()Gets the column that was clicked.protected final Grid.Column<T> Grid.getColumnByInternalId(String internalId) Gets aGrid.Columnof this grid by its internal id (_flowId).Grid.getColumnByKey(String columnKey) Gets aGrid.Columnof 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.<V extends Comparable<? super V>>
Grid.Column<T> Grid.Column.setComparator(com.vaadin.flow.function.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(com.vaadin.flow.component.Component editorComponent) Sets a component to use for editing values of this column in the editor row.Grid.Column.setEditorComponent(com.vaadin.flow.function.SerializableFunction<T, ? extends com.vaadin.flow.component.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.Grid.Column.setFooter(com.vaadin.flow.component.Component footerComponent) Sets a footer component to the column.Sets a footer text to the column.Grid.Column.setHeader(com.vaadin.flow.component.Component headerComponent) 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(com.vaadin.flow.function.SerializableFunction<T, String> partNameGenerator) Sets the function that is used for generating CSS part names for cells in this column.Grid.Column.setRenderer(com.vaadin.flow.data.renderer.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(com.vaadin.flow.function.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.Columns currently in thisGrid.protected BiFunction<com.vaadin.flow.data.renderer.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, com.vaadin.flow.data.provider.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.voidGrid.removeColumn(Grid.Column<T> column) Removes a column from the Grid.voidGrid.removeColumns(Grid.Column<T>... columns) Removes columns from the Grid.protected voidGrid.setColumnKey(String key, Grid.Column column) Sets a user-defined identifier for given column.voidGrid.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 TypeMethodDescriptionvoidGrid.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, com.vaadin.flow.data.provider.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.treegrid
Methods in com.vaadin.flow.component.treegrid that return Grid.ColumnModifier and TypeMethodDescription<V extends com.vaadin.flow.component.Component>
Grid.Column<T> TreeGrid.addComponentHierarchyColumn(com.vaadin.flow.function.ValueProvider<T, V> componentProvider) Adds a new Hierarchy column that shows components.TreeGrid.addHierarchyColumn(com.vaadin.flow.function.ValueProvider<T, ?> valueProvider) Adds a new Hierarchy column to thisGridwith a value provider.TreeGrid.setColumns(String hierarchyPropertyName, com.vaadin.flow.function.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, com.vaadin.flow.function.ValueProvider<T, ?> valueProvider) Note: This method can only be used for a TreeGrid created from a bean type withTreeGrid(Class).