Uses of Interface
org.vaadin.firitin.util.PropertyRef
Packages that use PropertyRef
Package
Description
-
Uses of PropertyRef in org.vaadin.firitin.components.grid
Methods in org.vaadin.firitin.components.grid with parameters of type PropertyRefModifier and TypeMethodDescriptionfinal voidVGrid.addColumns(PropertyRef<T, ?>... properties) Adds columns for the given properties, using method references to their getters instead of property name strings.VGrid.addPropertyColumn(PropertyRef<T, ?> property) Adds a column for the given property, using a method reference to its getter instead of a property name string:VGrid.getColumnByKey(PropertyRef<T, ?> property) Finds the column of the given property, using a method reference to its getter instead of a property name string.VGrid.hideProperties(PropertyRef<T, ?>... propertiesToHide) Hides given columns, using method references to the getters instead of property name strings.voidVGrid.removeColumnByKey(PropertyRef<T, ?> property) Removes the column of the given property, using a method reference to its getter instead of a property name string.final voidVGrid.setColumnOrder(PropertyRef<T, ?>... properties) Sets the order of the columns, using method references to the getters instead of property name strings.final voidVGrid.setColumns(PropertyRef<T, ?>... properties) Configures the columns shown by the grid, using method references to the getters instead of property name strings:VGrid.setComponentRenderer(PropertyRef<T, ?> property, com.vaadin.flow.function.ValueProvider<T, C> componentProvider) Replaces the way the column of the given property is rendered, leaving everything else about the column as it is: its position among the other columns, its key, header, width and sorting all stay put.VGrid.setRenderer(PropertyRef<T, ?> property, com.vaadin.flow.data.renderer.Renderer<T> renderer) Replaces the renderer of the column of the given property, leaving everything else about the column as it is.final voidVGrid.setSortableColumns(PropertyRef<T, ?>... properties) Makes the columns of the given properties sortable, using method references to their getters instead of property name strings.VGrid.VColumn.withKey(PropertyRef<T, ?> property) Sets the key of this column, using a method reference to the getter of the property instead of a string.VGrid.withProperties(PropertyRef<T, ?>... properties) Configures the columns shown by the grid, using method references to the getters instead of property name strings:final VGrid.VColumn<T> VGrid.VColumn.withSortProperties(PropertyRef<T, ?>... properties) Sets the properties this column is sorted by in the backend, using method references to their getters instead of property name strings. -
Uses of PropertyRef in org.vaadin.firitin.form
Methods in org.vaadin.firitin.form with parameters of type PropertyRefModifier and TypeMethodDescriptioncom.vaadin.flow.component.HasValueFormBinder.getEditor(PropertyRef<T, ?> property) Returns the field editing the given property, naming it with a method reference to its getter instead of a string.voidFormBinder.setConverter(PropertyRef<T, ?> property, com.vaadin.flow.data.converter.Converter<?, ?> strToDt) Sets a converter to use between the domain model property and the corresponding UI component editing it, naming the property with a method reference to its getter instead of a string.voidFormBinder.setRawConstraintViolation(PropertyRef<T, ?> property, String message) Reports a single constraint violation, naming the property with a method reference to its getter instead of a string: -
Uses of PropertyRef in org.vaadin.firitin.util
Classes in org.vaadin.firitin.util that implement PropertyRefModifier and TypeClassDescriptionstatic classPropertyRef.Nested<T,M, V> A nested property reference, created byPropertyRef.then(PropertyRef).Methods in org.vaadin.firitin.util that return PropertyRefModifier and TypeMethodDescriptionstatic <T,V> PropertyRef <T, V> PropertyRef.of(PropertyRef<T, V> getterReference) Helper to give the compiler a target type for a method reference, needed to start a nested property path.default <U> PropertyRef<T, U> PropertyRef.then(PropertyRef<V, U> nested) Creates a reference to a nested property.Methods in org.vaadin.firitin.util with parameters of type PropertyRefModifier and TypeMethodDescriptionstatic <T,V> PropertyRef <T, V> PropertyRef.of(PropertyRef<T, V> getterReference) Helper to give the compiler a target type for a method reference, needed to start a nested property path.default <U> PropertyRef<T, U> PropertyRef.then(PropertyRef<V, U> nested) Creates a reference to a nested property.