T - type of the underlying grid this column is compatible with@Tag(value="vaadin-grid-pro-edit-column") public static class GridPro.EditColumn<T> extends Grid.Column<T>
<vaadin-grid-edit-column> element.
Every added column sends data to the client side regardless of its
visibility state. Don't add a new column at all or use
Grid.removeColumn(Column) to avoid sending extra data.
| Modifier and Type | Field and Description |
|---|---|
protected com.vaadin.flow.dom.Element |
footerTemplate |
protected Grid<?> |
grid |
protected com.vaadin.flow.dom.Element |
headerTemplate |
| Constructor and Description |
|---|
EditColumn(GridPro<T> grid,
String columnId,
com.vaadin.flow.data.renderer.Renderer<T> renderer)
Constructs a new Column for use inside a Grid.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
addGridSorter(String arg0) |
protected List<Grid.Column<?>> |
getBottomChildColumns() |
protected com.vaadin.flow.component.AbstractField |
getEditorField() |
protected String |
getEditorType()
Gets the type of the editor that is used for modifying cell value.
|
protected com.vaadin.flow.data.renderer.Renderer<?> |
getFooterRenderer() |
protected com.vaadin.flow.data.renderer.Renderer<?> |
getHeaderRenderer() |
protected ItemUpdater<T,String> |
getItemUpdater()
Gets the itemUpdater function that will be called on item changed.
|
protected List<String> |
getOptions()
Gets the list of options that is used for select type of the editor.
|
default ColumnTextAlign |
getTextAlign() |
com.vaadin.flow.function.ValueProvider<T,?> |
getValueProvider() |
protected boolean |
hasSortingIndicators() |
default boolean |
isFrozen() |
default boolean |
isResizable() |
protected void |
setBaseHeaderTemplate(String arg0) |
protected void |
setEditorField(com.vaadin.flow.component.AbstractField editorField) |
protected GridPro.EditColumn<T> |
setEditorType(EditorType type)
Sets the type of the editor that is used for modifying cell value.
|
protected void |
setFooterComponent(com.vaadin.flow.component.Component arg0) |
protected void |
setFooterRenderer(com.vaadin.flow.data.renderer.Renderer<?> arg0) |
protected void |
setFooterText(String arg0) |
default T |
setFrozen(boolean arg0) |
protected void |
setHeaderComponent(com.vaadin.flow.component.Component arg0) |
protected void |
setHeaderRenderer(com.vaadin.flow.data.renderer.Renderer<?> arg0) |
protected void |
setHeaderText(String arg0) |
protected GridPro.EditColumn<T> |
setItemUpdater(ItemUpdater<T,String> itemUpdater)
Sets the itemUpdater function that will be called on item changed.
|
protected GridPro.EditColumn<T> |
setOptions(List<String> options)
Sets the list of options that is used for select type of the editor.
|
default T |
setResizable(boolean arg0) |
protected void |
setSortingIndicators(boolean arg0) |
default T |
setTextAlign(ColumnTextAlign arg0) |
void |
setValueProvider(com.vaadin.flow.function.ValueProvider<T,?> valueProvider) |
protected void |
updateSortingIndicators(boolean arg0) |
destroyDataGenerators, getBottomLevelColumn, getClassNameGenerator, getComparator, getEditorComponent, getElement, getFlexGrow, getInternalId, getKey, getRenderer, getSortOrder, getWidth, isAutoWidth, isSortable, setAutoWidth, setClassNameGenerator, setComparator, setComparator, setEditorComponent, setEditorComponent, setFlexGrow, setFooter, setFooter, setHeader, setHeader, setKey, setSortable, setSortOrderProvider, setSortProperty, setWidthaddListener, fireEvent, from, get, getChildren, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setIdprotected final Grid<?> grid
protected com.vaadin.flow.dom.Element headerTemplate
protected com.vaadin.flow.dom.Element footerTemplate
public EditColumn(GridPro<T> grid, String columnId, com.vaadin.flow.data.renderer.Renderer<T> renderer)
grid - the grid this column is attached tocolumnId - unique identifier of this columnrenderer - the renderer to use in this column, must not be
nullprotected GridPro.EditColumn<T> setItemUpdater(ItemUpdater<T,String> itemUpdater)
itemUpdater - the callback function that is called when item is changed.
It receives two arguments: item and newValue.protected ItemUpdater<T,String> getItemUpdater()
protected com.vaadin.flow.component.AbstractField getEditorField()
protected void setEditorField(com.vaadin.flow.component.AbstractField editorField)
protected GridPro.EditColumn<T> setEditorType(EditorType type)
type - the type of the editorEditorType@Synchronize(value="editor-type-changed") protected String getEditorType()
protected GridPro.EditColumn<T> setOptions(List<String> options)
options - the list of options@Synchronize(value="editor-options-changed") protected List<String> getOptions()
public com.vaadin.flow.function.ValueProvider<T,?> getValueProvider()
public void setValueProvider(com.vaadin.flow.function.ValueProvider<T,?> valueProvider)
protected void setHeaderRenderer(com.vaadin.flow.data.renderer.Renderer<?> arg0)
protected void setFooterRenderer(com.vaadin.flow.data.renderer.Renderer<?> arg0)
protected void setHeaderText(String arg0)
protected void setFooterText(String arg0)
protected void setHeaderComponent(com.vaadin.flow.component.Component arg0)
protected void setFooterComponent(com.vaadin.flow.component.Component arg0)
protected com.vaadin.flow.data.renderer.Renderer<?> getHeaderRenderer()
protected com.vaadin.flow.data.renderer.Renderer<?> getFooterRenderer()
protected void updateSortingIndicators(boolean arg0)
protected void setSortingIndicators(boolean arg0)
protected boolean hasSortingIndicators()
protected void setBaseHeaderTemplate(String arg0)
protected List<Grid.Column<?>> getBottomChildColumns()
public T setResizable(boolean arg0)
@Synchronize(value="resizable-changed") public boolean isResizable()
public T setFrozen(boolean arg0)
@Synchronize(value="frozen-changed") public boolean isFrozen()
public T setTextAlign(ColumnTextAlign arg0)
@Synchronize(value="text-align-changed") public ColumnTextAlign getTextAlign()
Copyright © 2022. All rights reserved.