V - Type of data in the grid.F - Type of data in the field.public abstract class AbstractGridSelect<V,F>
extends com.vaadin.flow.component.customfield.CustomField<F>
Grid selects.com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C extends com.vaadin.flow.component.Component,V>com.vaadin.flow.component.BlurNotifier.BlurEvent<C extends com.vaadin.flow.component.Component>| Modifier | Constructor and Description |
|---|---|
protected |
AbstractGridSelect(com.vaadin.flow.component.grid.Grid<V> underlyingGrid) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureGrid(com.vaadin.flow.component.grid.Grid<V> grid)
Configures the grid.
|
com.vaadin.flow.component.grid.Grid<V> |
getGrid()
Returns the underlying
Grid. |
boolean |
isEnabled() |
protected void |
onGridSelected(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<V>,V> event)
This method is called when a grid cell is selected in the client.
|
void |
setEnabled(boolean enabled) |
void |
setReadOnly(boolean readOnly) |
add, generateModelValue, getErrorMessage, getLabel, isInvalid, remove, setErrorMessage, setInvalid, setLabel, setPresentationValue, 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, waitgetCssSize, 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, setTabIndexgetHelperComponent, getHelperText, setHelperComponent, setHelperTextprotected AbstractGridSelect(com.vaadin.flow.component.grid.Grid<V> underlyingGrid)
protected void configureGrid(com.vaadin.flow.component.grid.Grid<V> grid)
grid - Grid to configure.protected void onGridSelected(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<V>,V> event)
CustomField.updateValue().event - Event with selection details.public com.vaadin.flow.component.grid.Grid<V> getGrid()
Grid. Use with caution. Please do not mess with grid's selection.
Note: unless a protected constructor with predefined grid - GridSelect(Grid) - is called, the returned grid will be a RestrictedModeGrid.Grid. Any changes to the grid will affect this component.public void setReadOnly(boolean readOnly)
public void setEnabled(boolean enabled)
public boolean isEnabled()
Copyright © 2023 Miki. All rights reserved.