V - Type of value to include in the grid.@Tag(value="grid-select")
@CssImport(value="./styles/label-positions-grids.css",
themeFor="grid-select")
@JsModule(value="./grid-select.js")
public class GridSelect<V>
extends AbstractGridSelect<V,V>
implements WithIdMixin<GridSelect<V>>, WithItemsMixin<V,GridSelect<V>>, WithHelperMixin<GridSelect<V>>, WithHelperPositionableMixin<GridSelect<V>>, WithLabelMixin<GridSelect<V>>, WithLabelPositionableMixin<GridSelect<V>>, WithValueMixin<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.customfield.CustomField<V>,V>,V,GridSelect<V>>
Grid that also is a value component that broadcasts value change events.com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C extends com.vaadin.flow.component.Component,V>com.vaadin.flow.component.HasValue.ValueChangeEvent<V>, com.vaadin.flow.component.HasValue.ValueChangeListener<E extends com.vaadin.flow.component.HasValue.ValueChangeEvent<?>>HELPER_ABOVE_THEME_VARIANTLABEL_POSITION_ATTRIBUTE, LABEL_POSITION_DETAILS_ATTRIBUTE| Modifier | Constructor and Description |
|---|---|
|
GridSelect(Class<V> type,
boolean createColumns,
V... items)
Constructs the component.
|
protected |
GridSelect(com.vaadin.flow.component.grid.Grid<V> underlyingGrid)
More advanced constructor that allows using predefined grid.
|
|
GridSelect(V... items)
Creates the component.
|
| Modifier and Type | Method and Description |
|---|---|
protected V |
generateModelValue() |
void |
setItems(Collection<V> collection) |
protected void |
setPresentationValue(V v) |
configureGrid, getGrid, isEnabled, onGridSelected, setEnabled, setReadOnlyadd, getErrorMessage, getLabel, isInvalid, remove, setErrorMessage, setInvalid, setLabel, updateValueaddValueChangeListener, getEmptyValue, getValue, isEmpty, setModelValue, setValue, valueEqualsaddListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithIdwithItems, withItems, withItemswithHelperComponent, withHelperTextgetHelperComponent, getHelperText, setHelperComponent, setHelperTextwithHelperAbove, withHelperAbove, withHelperBelowisHelperAbove, setHelperAbove, setHelperAbove, setHelperBelowwithLabelwithLabelPositiongetLabelPosition, setLabelPositionwithValueaddValueChangeListener, clear, getEmptyValue, getOptionalValue, getValue, isEmpty, isReadOnly, isRequiredIndicatorVisible, setReadOnly, setRequiredIndicatorVisible, setValuegetCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFulladdFocusShortcut, blur, focus, getTabIndex, setTabIndex@SafeVarargs public GridSelect(V... items)
items - Items to add to the grid.AbstractGridSelect.getGrid()@SafeVarargs public GridSelect(Class<V> type, boolean createColumns, V... items)
type - Type of items displayed in the grid.createColumns - Whether or not to create default columns.items - Items to add to the grid.protected GridSelect(com.vaadin.flow.component.grid.Grid<V> underlyingGrid)
underlyingGrid - A grid to use.protected V generateModelValue()
generateModelValue in class com.vaadin.flow.component.customfield.CustomField<V>protected void setPresentationValue(V v)
setPresentationValue in class com.vaadin.flow.component.customfield.CustomField<V>public void setItems(Collection<V> collection)
setItems in interface com.vaadin.flow.data.binder.HasItems<V>Copyright © 2024 Miki. All rights reserved.