Package io.jmix.ui.component.impl
Class AbstractDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>,E>
java.lang.Object
io.jmix.ui.component.impl.AbstractComponent<C>
io.jmix.ui.component.impl.AbstractDataGrid<C,E>
- All Implemented Interfaces:
ActionsHolder,AttachNotifier,Component,Component.BelongToFrame,Component.Focusable,Component.HasCaption,Component.HasDescription,Component.HasIcon,Component.HasXmlDescriptor,Component.Wrapper,DataGrid<E>,DataGridItemsEventsDelegate<E>,HasButtonsPanel,HasContextHelp,HasDebugId,HasHtmlCaption,HasHtmlDescription,HasHtmlSanitizer,HasInnerComponents,HasMinSize,HasPagination,HasSubParts,ListComponent<E>,LookupComponent<E>,LookupComponent.LookupSelectionChangeNotifier<E>,SecuredActionsHolder,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
DataGridImpl,TreeDataGridImpl
public abstract class AbstractDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>,E>
extends AbstractComponent<C>
implements DataGrid<E>, SecuredActionsHolder, LookupComponent.LookupSelectionChangeNotifier<E>, DataGridItemsEventsDelegate<E>, HasInnerComponents, org.springframework.beans.factory.InitializingBean
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprotected static classprotected static classstatic classprotected classprotected classAbstractDataGrid.CellStyleGeneratorAdapter<T extends E>protected static classprotected static classprotected static classprotected static classprotected static classprotected static classprotected static classprotected static classNested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.DataGrid
DataGrid.AbstractDataGridEditorEvent<E>, DataGrid.AbstractDataGridEvent, DataGrid.AggregationPosition, DataGrid.ButtonRenderer<T>, DataGrid.CheckBoxRenderer, DataGrid.ClickableTextRenderer<T>, DataGrid.Column<E>, DataGrid.ColumnCollapsingChangeEvent, DataGrid.ColumnGeneratorEvent<E>, DataGrid.ColumnReorderEvent, DataGrid.ColumnResizeEvent, DataGrid.ColumnResizeMode, DataGrid.ComponentRenderer, DataGrid.ContextClickEvent, DataGrid.DataGridClickEvent, DataGrid.DataGridStaticCellType, DataGrid.DateRenderer, DataGrid.EditorCloseEvent<E>, DataGrid.EditorFieldGenerationContext<T>, DataGrid.EditorOpenEvent<E>, DataGrid.EditorPostCommitEvent<E>, DataGrid.EditorPreCommitEvent<E>, DataGrid.EmptyStateClickEvent<E>, DataGrid.FooterCell, DataGrid.FooterRow, DataGrid.HasDateTimeFormatter, DataGrid.HasFormatString, DataGrid.HasLocale, DataGrid.HasNullRepresentation, DataGrid.HasRendererClickListener<T>, DataGrid.HeaderCell, DataGrid.HeaderRow, DataGrid.HtmlRenderer, DataGrid.IconRenderer<T>, DataGrid.ImageRenderer<T>, DataGrid.ItemClickEvent<E>, DataGrid.LocalDateRenderer, DataGrid.LocalDateTimeRenderer, DataGrid.NumberRenderer, DataGrid.ProgressBarRenderer, DataGrid.Renderer, DataGrid.RendererClickEvent<T>, DataGrid.ScrollDestination, DataGrid.SelectionEvent<E>, DataGrid.SelectionMode, DataGrid.SortDirection, DataGrid.SortEvent, DataGrid.SortOrder, DataGrid.StaticCell, DataGrid.StaticRow<T extends DataGrid.StaticCell>, DataGrid.TextRendererNested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEventNested classes/interfaces inherited from interface io.jmix.ui.component.LookupComponent
LookupComponent.LookupSelectionChangeEvent<T>, LookupComponent.LookupSelectionChangeNotifier<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessManagerprotected Actionsprotected final ActionsPermissionsprotected AggregatableDelegate<Object>protected Aggregationsprotected ButtonsPanelprotected com.vaadin.shared.Registrationprotected final Map<String,Function<DataGrid.ColumnGeneratorEvent<E>, ?>> protected com.vaadin.shared.Registrationprotected final Map<String,DataGrid.Column<E>> protected booleanprotected List<DataGrid.Column<E>>protected AbstractDataGrid.GridCompositionprotected com.vaadin.shared.Registrationprotected JmixGridContextMenu<E>protected final List<AbstractDataGrid.ActionMenuItemWrapper>protected DataGridDataProvider<E>protected com.vaadin.shared.Registrationprotected com.vaadin.shared.Registrationprotected booleanprotected com.vaadin.shared.Registrationprotected com.vaadin.shared.Registrationprotected Consumer<DataGrid.EmptyStateClickEvent<E>>protected Actionprotected com.vaadin.ui.components.grid.FooterRowprotected final List<DataGrid.FooterRow>protected static final Stringprotected com.vaadin.ui.components.grid.HeaderRowprotected final List<DataGrid.HeaderRow>protected IconResolverprotected Actionprotected Messagesprotected MessageToolsprotected MetadataToolsprotected PaginationComponentprotected ScreenValidationprotected DataGrid.SelectionModeprotected final ShortcutsDelegate<com.vaadin.event.ShortcutListener>protected booleanprotected booleanprotected static final Stringprotected booleanprotected com.vaadin.ui.CssLayoutprotected UiTestIdsSupportFields inherited from class io.jmix.ui.component.impl.AbstractComponent
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parentFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an action to the componentvoidAdd an action to the component with index.voidaddColumn(DataGrid.Column<E> column) Adds the given column to DataGrid.voidaddColumn(DataGrid.Column<E> column, int index) Adds the given column at the specified index to DataGrid.addColumn(String id, MetaPropertyPath propertyPath) Creates new column with given Id and property, then adds this column to DataGrid.addColumn(String id, MetaPropertyPath propertyPath, int index) Creates new column with given Id and property at the specified index, then adds this column to DataGrid.Registers a new column collapsing change listener.protected voidaddColumnId(com.vaadin.ui.Grid.Column<E, ?> gridColumn, DataGrid.Column<E> column) protected voidaddColumnInternal(AbstractDataGrid.ColumnImpl<E> column, int index) Registers a new column reorder listener.Registers a new column resize listener.Registers a new context click listeneraddEditorCloseListener(Consumer<DataGrid.EditorCloseEvent<E>> listener) Registers a new DataGrid editor close listener.addEditorOpenListener(Consumer<DataGrid.EditorOpenEvent<E>> listener) Registers a new DataGrid editor open listener.Registers a new DataGrid editor post commit listener.Registers a new DataGrid editor pre commit listener.addFooterRowAt(int index) Inserts a new row at the given position to the footer section.protected DataGrid.FooterRowaddFooterRowInternal(com.vaadin.ui.components.grid.FooterRow footerRow) addGeneratedColumn(String columnId, Function<DataGrid.ColumnGeneratorEvent<E>, ?> generator) Add a generated column to the DataGrid.addGeneratedColumn(String columnId, Function<DataGrid.ColumnGeneratorEvent<E>, ?> generator, int index) Add a generated column to the DataGrid.addHeaderRowAt(int index) Inserts a new row at the given position to the header section.protected DataGrid.HeaderRowaddHeaderRowInternal(com.vaadin.ui.components.grid.HeaderRow headerRow) addItemClickListener(Consumer<DataGrid.ItemClickEvent<E>> listener) Registers a new item click listenerAdds a listener that invoked when lookup selected items set is changed.voidaddRowStyleProvider(Function<? super E, String> styleProvider) Adds style provider for the DataGrid rows.addSelectionListener(Consumer<DataGrid.SelectionEvent<E>> listener) Registers a new selection listeneraddSortListener(Consumer<DataGrid.SortEvent> listener) Registers a new sort order change listenervoidAdds a new row at the bottom of the footer section.Adds a new row at the bottom of the header section.protected voidattachAction(Action action) voidattached()Notifies all listeners that component has been attached.protected intcalculateFooterIndex(int index) protected booleancanBeSorted(DataGridItems<E> dataGridItems) protected voidcheckAggregation(AggregationInfo aggregationInfo) protected voidcheckHeaderIndexInRange(int index, boolean includeBounds) protected voidclearFieldDatasources(E item) voidCloses editor if it's opened.convertAggregationKeyMapToColumnIdKeyMap(Map<AggregationInfo, V> aggregationInfoMap) protected List<DataGrid.SortOrder>convertToDataGridSortOrder(List<com.vaadin.data.provider.GridSortOrder<E>> gridSortOrder) convertToJmixFields(Map<com.vaadin.ui.Grid.Column<E, ?>, com.vaadin.ui.Component> columnFieldMap) protected voidcopyColumnProperties(DataGrid.Column<E> column, DataGrid.Column<E> existingColumn) protected AbstractDataGrid.ColumnImpl<E>createColumn(String id, MetaPropertyPath propertyPath, AbstractDataGrid<?, E> owner) protected abstract Cprotected AbstractDataGrid.GridCompositionprotected AbstractDataGrid.ActionMenuItemWrappercreateContextMenuItem(Action action) protected DataGridDataProvider<E>createDataGridDataProvider(DataGridItems<E> dataGridItems) protected JmixGridEditorFieldFactory<E>protected com.vaadin.data.provider.DataProvider<E,?> protected ShortcutListenerDelegatecreateGeneratedColumnValueProvider(String columnId, Function<DataGrid.ColumnGeneratorEvent<E>, ?> generator) protected InstanceContainer<E>createInstanceContainer(E item) protected ShortcutsDelegate<com.vaadin.event.ShortcutListener>protected com.vaadin.ui.CssLayoutprotected ValueSourceProvidercreateValueSourceProvider(E item) voidvoidvoidvoidvoidDeselects the given item.voidDeselects all the items in the current data source.voiddetached()Notifies all listeners that component has been detached.protected voiddetachItemContainer(Object container) voidOpens the editor interface for the provided entity.protected voideditItemInternal(E item) protected voidenableCrossFieldValidationHandling(boolean enable) protected voidfillAggregationRow(Map<String, String> values) protected voidfireSelectionEvent(com.vaadin.event.selection.SelectionEvent<E> e) voidfocus()Sets focus to this componentprotected StringgenerateColumnCaption(DataGrid.Column<E> column) protected AggregatableDelegate<Object>protected List<AggregationInfo>protected Collection<MetaPropertyPath>getAutowiredProperties(EntityDataGridItems<E> entityDataGridSource) doubleReturns the current body row height.Returns a column based on the Id.protected Stringprotected Stringprotected AbstractDataGrid.ColumnImpl<E>getColumnByGridColumn(com.vaadin.ui.Grid.Column<E, ?> gridColumn) protected DataGrid.Column<E>getColumnById(Object id) getColumnGenerator(String columnId) Gets the columns generator for the given column id.getColumnNN(String id) Returns a column by its Id.protected String[]protected com.vaadin.data.ValueProviderprotected com.vaadin.ui.renderers.RendererReturns the current column resize mode.Returns a copy of currently configured columns in their current visual order in this DataGrid.protected List<DataGrid.Column<E>>com.vaadin.ui.Componentprotected DataGridItems<E>Returns the current default row of the header section.protected com.vaadin.data.ValueProviderprotected com.vaadin.ui.renderers.RenderergetDefaultRenderer(DataGrid.Column<E> column) Returns the item that is currently being edited.Gets the current caption of the cancel button in the DataGrid editor.Gets the current caption of the save button in the DataGrid editor.protected Actionprotected EntityDataGridItems<E>protected EntityDataGridItems<E>getFooterRow(int index) Gets the footer row at given index.protected DataGrid.FooterRowgetFooterRowByGridRow(com.vaadin.ui.components.grid.FooterRow gridRow) intGets the row count for the footer.doubleReturns the current footer row height.intGets the number of frozen columns in this DataGrid.protected StringgetGeneratedCellDescription(E item, DataGrid.Column<E> column) protected StringgetGeneratedCellStyle(E item, DataGrid.Column<E> column) protected StringgetGeneratedRowStyle(E item) getHeaderRow(int index) Gets the header row at given index.protected DataGrid.HeaderRowgetHeaderRowByGridRow(com.vaadin.ui.components.grid.HeaderRow gridRow) intGets the row count for the header section.doubleReturns the current header row height.protected List<DataGrid.Column<E>>getItems()protected StringgetRowDescription(E item) Returns theRowDescriptionProviderinstance used to generate descriptions (tooltips) for DataGrid rowsprotected com.vaadin.ui.ComponentgetRowDetails(E item) Returns a set of entity instances corresponding to the selected rows of the list component.Returns an instance of entity corresponding to the selected row of the list component.intGets the tabulator index of theHasTabIndexcomponent.Returns a copy of columns not hidden by security permissions.protected voidprotected voidprotected voidinitComponent(com.vaadin.ui.Grid<E> component) protected voidinitComponentComposition(AbstractDataGrid.GridComposition componentComposition) protected voidprotected voidinitEditor(com.vaadin.ui.Grid<E> component) protected voidprotected voidinitFooterRows(com.vaadin.ui.Grid<E> component) protected voidinitHeaderRows(com.vaadin.ui.Grid<E> component) protected voidprotected voidinternalRemoveColumnCollapsingChangeListener(Consumer<DataGrid.ColumnCollapsingChangeEvent> listener) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidbooleanbooleanbooleanReturns whether column reordering is allowed.booleanbooleanbooleanisDetailsVisible(E entity) Checks whether details are visible for the given item.booleanReturns whether an item is currently being edited in the editor.booleanGets the buffered editor mode.booleanbooleanChecks whether the item editor UI is enabled for this DataGrid.booleanReturns the visibility of the footer section.booleanReturns the visibility of the header section.booleanbooleanbooleanprotected voidonBeforeRefreshGridData(E item) protected voidonColumnReorder(com.vaadin.ui.Grid.ColumnReorderEvent e) protected voidonColumnResize(com.vaadin.ui.Grid.ColumnResizeEvent e) protected voidonColumnVisibilityChanged(com.vaadin.ui.Grid.ColumnVisibilityChangeEvent e) protected voidonContextClick(com.vaadin.event.ContextClickEvent e) protected voidprotected voidonEditorCancel(com.vaadin.ui.components.grid.EditorCancelEvent<E> cancelEvent) protected voidonEditorOpen(com.vaadin.ui.components.grid.EditorOpenEvent<E> editorOpenEvent) protected voidonEditorSave(com.vaadin.ui.components.grid.EditorSaveEvent<E> saveEvent) protected voidonItemClick(com.vaadin.ui.Grid.ItemClick<E> e) protected voidprotected voidonSelectionChange(com.vaadin.event.selection.SelectionEvent<E> e) protected voidAdds a new row at the top of the footer section.Adds a new row at the top of the header section.protected voidvoidremoveAction(Action action) Remove the action from the componentvoidremoveAction(String id) Remove the action by its ID.protected voidvoidRemove all actions from the componentvoidremoveColumn(DataGrid.Column<E> column) Removes the given column from DataGrid or do nothing if column isnull.voidremoveColumn(String id) Removes a column from DataGrid by its Id or do nothing if column is not found.protected voidremoveColumnId(com.vaadin.ui.Grid.Column<E, ?> gridColumn) voidremoveFooterRow(int index) Removes the row at the given position from the footer section.voidremoveFooterRow(DataGrid.FooterRow footerRow) Removes the given row from the footer section.voidremoveHeaderRow(int index) Removes the row at the given position from the header section.voidremoveHeaderRow(DataGrid.HeaderRow headerRow) Removes the given row from the header section.voidremoveRowStyleProvider(Function<? super E, String> styleProvider) Removes style provider for the DataGrid rows.voidrepaint()Repaint UI representation of the DataGrid without refreshing the table data.protected List<DataGrid.Column<E>>restoreColumnsOrder(List<DataGrid.Column<E>> visibleColumns) Inserts columns hidden by security permissions (or with visible = false, which means that where is no Grid.Column associated with DatGrid.Column) into a list of visible columns, passed as a parameter, in they original positions.protected voidrestoreColumnsOrderAndUpdate(List<DataGrid.Column<E>> visibleColumns) voidScrolls to a certain item, usingDataGrid.ScrollDestination.ANY.voidscrollTo(E item, DataGrid.ScrollDestination destination) Scrolls to a certain item, using user-specified scroll destination.voidScrolls to the last data item.voidScrolls to the first data item.voidMarks all the items in the current data source as selected.voidsetAccessManager(AccessManager accessManager) voidsetActions(Actions actions) voidsetAggregatable(boolean aggregatable) Set to true if aggregation should be enabled.voidSets aggregation row position.voidsetAggregations(Aggregations aggregations) voidsetBodyRowHeight(double rowHeight) Sets the height of a body row.voidsetButtonsPanel(ButtonsPanel panel) Sets aButtonsPanelcomponent.voidsetCaption(String caption) Sets the component's caption.voidsetCaptionAsHtml(boolean captionAsHtml) Sets whether the caption is rendered as HTML.voidsetColumnReorderingAllowed(boolean columnReorderingAllowed) Sets whether or not column reordering is allowed.voidSets the column resize mode to use.voidsetColumnsCollapsingAllowed(boolean columnsCollapsingAllowed) Defines if collapsible attribute can be changed for individual column or not.voidsetContextMenuEnabled(boolean contextMenuEnabled) Sets whether or not context menu is enabled.voidsetDebugId(String id) INTERNAL.voidsetDefaultHeaderRow(DataGrid.HeaderRow headerRow) Sets the default row of the header.voidsetDetailsGenerator(Function<E, Component> detailsGenerator) Sets a new details generator for row details.voidsetDetailsVisible(E entity, boolean visible) Shows or hides the details for a specific item.voidsetEditorBuffered(boolean editorBuffered) Sets the buffered editor mode.voidsetEditorCancelCaption(String cancelCaption) Sets the caption on the cancel button in the DataGrid editor.voidsetEditorCrossFieldValidate(boolean validate) Enables cross field validation in the inline editor.voidsetEditorEnabled(boolean isEnabled) Sets whether or not the item editor UI is enabled for this DataGrid.voidsetEditorSaveCaption(String saveCaption) Sets the caption on the save button in the DataGrid editor.voidSets click handler for link message.voidsetEmptyStateLinkMessage(String linkMessage) Sets a link message to the middle of DataGrid body that should be appeared when DataGrid is empty.voidsetEmptyStateMessage(String message) Sets a message to the middle of DataGrid body that should be appeared when DataGrid is empty.voidsetEnterPressAction(Action action) Assigns an action to be executed on Enter key press.voidsetFooterRowHeight(double rowHeight) Sets the body of a footer row.voidsetFooterVisible(boolean footerVisible) Sets the visibility of the footer section.voidsetFrozenColumnCount(int numberOfColumns) Sets the number of frozen columns in this grid.voidsetHeaderRowHeight(double rowHeight) Sets the body of a body row.voidsetHeaderVisible(boolean headerVisible) Sets the visibility of the header section.voidsetIconResolver(IconResolver iconResolver) voidSet component IDvoidsetItemClickAction(Action action) Assigns an action to be executed on double click on a DataGrid row.voidsetItems(DataGridItems<E> dataGridItems) Sets an instance ofDataGridItemsas the DataGrid data source.voidsetLookupSelectHandler(Consumer<Collection<E>> selectHandler) voidsetMessages(Messages messages) voidsetMessageTools(MessageTools messageTools) voidsetMetadataTools(MetadataTools metadataTools) voidsetMinHeight(String minHeight) SetsminHeightCSS property value to the Grid (not a composition).voidsetMinWidth(String minWidth) SetsminWidthCSS property value to the Grid (not a composition).voidsetPagination(PaginationComponent pagination) Sets pagination component.voidsetRowDescriptionProvider(Function<? super E, String> provider) Sets theRowDescriptionProviderinstance for generating optional descriptions (tooltips) for DataGrid rows.voidsetRowDescriptionProvider(Function<? super E, String> provider, ContentMode contentMode) Sets theRowDescriptionProviderinstance for generating optional descriptions (tooltips) for DataGrid rows.protected voidsetScreenValidation(ScreenValidation screenValidation) voidsetSelected(E item) Selects a row of the list component for a given entity instance.voidsetSelected(Collection<E> items) Selects the rows of the list component for a given collection of entity instances.protected voidsetSelectedItems(Collection<E> items) voidsetSelectionMode(DataGrid.SelectionMode selectionMode) Sets the DataGrid's selection mode.voidsetSortable(boolean sortable) Defines if this attribute can be changed for individual column or not.voidsetStyleName(String name) Sets one or more style names of the component, replacing any previous styles.voidsetTabIndex(int tabIndex) Sets the tabulator index of theFocusablecomponent.voidsetTextSelectionEnabled(boolean textSelectionEnabled) Enable or disable text selection in DataGrid cells.voidsetThemeConstantsManager(ThemeConstantsManager themeConstantsManager) protected voidsetUiTestId(DataGridItems<E> items) voidsetUiTestIdsSupport(UiTestIdsSupport uiTestIdsSupport) protected voidsetupAutowiredColumns(EntityDataGridItems<E> entityDataGridSource) protected voidsetupGridColumnProperties(com.vaadin.ui.Grid.Column<E, ?> gridColumn, DataGrid.Column<E> column) voidprotected voidsetVisibleColumns(List<DataGrid.Column<E>> visibleColumnsOrder) protected voidvoidsort(String columnId, DataGrid.SortDirection direction) Sorts the DataGrid data for passed column id in the chosen sort direction.protected voidprotected voidprotected StringvalidateCrossFieldRules(Map<String, Object> properties) Methods inherited from class io.jmix.ui.component.impl.AbstractComponent
addAttachListener, addDetachListener, addStyleName, assignDebugId, getAlignment, getComponent, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setParent, setResponsive, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.ui.component.ActionsHolder
getActionNNMethods inherited from interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setParent, setResponsive, setSizeAuto, setSizeFull, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrameMethods inherited from interface io.jmix.ui.component.Component.Focusable
isFocusable, setFocusableMethods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescriptionMethods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSetMethods inherited from interface io.jmix.ui.component.DataGrid
getSubPartMethods inherited from interface io.jmix.ui.component.HasContextHelp
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledMethods inherited from interface io.jmix.ui.component.HasHtmlDescription
isDescriptionAsHtml, setDescriptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlSanitizer
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
-
Field Details
-
HAS_TOP_PANEL_STYLE_NAME
- See Also:
-
TEXT_SELECTION_ENABLED_STYLE
- See Also:
-
metadataTools
-
accessManager
-
messages
-
messageTools
-
screenValidation
-
actions
-
iconResolver
-
aggregations
-
aggregatableDelegate
-
uiTestIdsSupport
-
internalStyles
-
columns
-
columnsOrder
-
columnGenerators
-
actionList
-
shortcutsDelegate
-
actionsPermissions
-
contextMenu
-
contextMenuItems
-
sortable
protected boolean sortable -
columnsCollapsingAllowed
protected boolean columnsCollapsingAllowed -
textSelectionEnabled
protected boolean textSelectionEnabled -
editorCrossFieldValidate
protected boolean editorCrossFieldValidate -
itemClickAction
-
enterPressAction
-
selectionMode
-
componentComposition
-
topPanel
protected com.vaadin.ui.CssLayout topPanel -
buttonsPanel
-
pagination
-
rowStyleProviders
-
rowDescriptionProvider
-
detailsGenerator
-
columnCollapsingChangeListenerRegistration
protected com.vaadin.shared.Registration columnCollapsingChangeListenerRegistration -
columnResizeListenerRegistration
protected com.vaadin.shared.Registration columnResizeListenerRegistration -
contextClickListenerRegistration
protected com.vaadin.shared.Registration contextClickListenerRegistration -
editorCancelListener
protected com.vaadin.shared.Registration editorCancelListener -
editorOpenListener
protected com.vaadin.shared.Registration editorOpenListener -
editorBeforeSaveListener
protected com.vaadin.shared.Registration editorBeforeSaveListener -
editorSaveListener
protected com.vaadin.shared.Registration editorSaveListener -
headerRows
-
headerAggregationRow
protected com.vaadin.ui.components.grid.HeaderRow headerAggregationRow -
showIconsForPopupMenuActions
protected boolean showIconsForPopupMenuActions -
dataBinding
-
itemDatasources
-
emptyStateClickEventHandler
-
-
Constructor Details
-
AbstractDataGrid
public AbstractDataGrid()
-
-
Method Details
-
createComponentComposition
-
createComponent
-
createShortcutsDelegate
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
setMetadataTools
-
setAccessManager
-
setMessages
-
setMessageTools
-
setThemeConstantsManager
-
setScreenValidation
-
setActions
-
setIconResolver
-
setAggregations
-
setUiTestIdsSupport
-
initComponent
-
onBeforeRefreshGridData
-
createEditorFieldFactory
-
initComponentComposition
-
onItemClick
-
onColumnReorder
protected void onColumnReorder(com.vaadin.ui.Grid.ColumnReorderEvent e) -
onSort
-
onSelectionChange
-
fireSelectionEvent
-
createEnterShortcutListener
-
getInnerComponents
- Specified by:
getInnerComponentsin interfaceHasInnerComponents
-
initEditor
-
initHeaderRows
-
getColumnsOrderInternal
-
restoreColumnsOrder
Inserts columns hidden by security permissions (or with visible = false, which means that where is no Grid.Column associated with DatGrid.Column) into a list of visible columns, passed as a parameter, in they original positions.- Parameters:
visibleColumns- the list of DataGrid columns, not hidden by security permissions- Returns:
- a list of all columns in DataGrid
-
restoreColumnsOrderAndUpdate
-
initContextMenu
protected void initContextMenu() -
initSidebarMenu
protected void initSidebarMenu() -
refreshActionsState
protected void refreshActionsState() -
handleDoubleClickAction
protected void handleDoubleClickAction() -
focus
public void focus()Description copied from interface:Component.FocusableSets focus to this component- Specified by:
focusin interfaceComponent.Focusable
-
setLookupSelectHandler
- Specified by:
setLookupSelectHandlerin interfaceLookupComponent<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
selectHandler- handler that should be executed when a user select an item in the lookup screen
-
getLookupSelectedItems
- Specified by:
getLookupSelectedItemsin interfaceLookupComponent<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- items selected in lookup component
-
getEnterAction
-
getColumns
Description copied from interface:DataGridReturns a copy of currently configured columns in their current visual order in this DataGrid.- Specified by:
getColumnsin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- unmodifiable copy of current columns
- See Also:
-
getVisibleColumns
Description copied from interface:DataGridReturns a copy of columns not hidden by security permissions.- Specified by:
getVisibleColumnsin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- copy of columns not hidden by security permissions
- See Also:
-
getColumn
Description copied from interface:DataGridReturns a column based on the Id. -
getColumnNN
Description copied from interface:DataGridReturns a column by its Id.- Specified by:
getColumnNNin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
id- the column Id- Returns:
- the column with given Id
- See Also:
-
addColumn
Description copied from interface:DataGridAdds the given column to DataGrid. -
addColumn
Description copied from interface:DataGridAdds the given column at the specified index to DataGrid. -
addColumn
Description copied from interface:DataGridCreates new column with given Id and property, then adds this column to DataGrid.- Specified by:
addColumnin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
id- the column IdpropertyPath- the instance ofMetaPropertyPathrepresenting a relative path to a property from certain MetaClass- Returns:
- the newly created column
- See Also:
-
addColumn
Description copied from interface:DataGridCreates new column with given Id and property at the specified index, then adds this column to DataGrid.- Specified by:
addColumnin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
id- the column IdpropertyPath- the instance ofMetaPropertyPathrepresenting a relative path to a property from certain MetaClassindex- index of a new column- Returns:
- the newly created column
- See Also:
-
createColumn
protected AbstractDataGrid.ColumnImpl<E> createColumn(String id, @Nullable MetaPropertyPath propertyPath, AbstractDataGrid<?, E> owner) -
addColumnInternal
-
generateColumnCaption
-
setupGridColumnProperties
protected void setupGridColumnProperties(com.vaadin.ui.Grid.Column<E, ?> gridColumn, DataGrid.Column<E> column) -
getColumnPresentationValueProvider
@Nullable protected com.vaadin.data.ValueProvider getColumnPresentationValueProvider(DataGrid.Column<E> column) -
getDefaultPresentationValueProvider
protected com.vaadin.data.ValueProvider getDefaultPresentationValueProvider(DataGrid.Column<E> column) -
getColumnRendererImplementation
protected com.vaadin.ui.renderers.Renderer getColumnRendererImplementation(DataGrid.Column<E> column) -
getDefaultRenderer
-
addColumnId
-
removeColumnId
-
removeColumn
Description copied from interface:DataGridRemoves the given column from DataGrid or do nothing if column isnull.- Specified by:
removeColumnin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
column- the column to add- See Also:
-
removeColumn
Description copied from interface:DataGridRemoves a column from DataGrid by its Id or do nothing if column is not found.- Specified by:
removeColumnin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
id- the columns Id- See Also:
-
getItems
- Specified by:
getItemsin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Specified by:
getItemsin interfaceListComponent<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- The DataGrid source
-
getDataGridItemsNN
-
getEntityDataGridItems
-
getEntityDataGridItemsNN
-
setItems
Description copied from interface:DataGridSets an instance ofDataGridItemsas the DataGrid data source. -
setUiTestId
-
createEmptyDataProvider
-
setVisibleColumns
-
getAutowiredProperties
protected Collection<MetaPropertyPath> getAutowiredProperties(EntityDataGridItems<E> entityDataGridSource) -
setupAutowiredColumns
-
createDataGridDataProvider
-
dataGridSourceItemSetChanged
- Specified by:
dataGridSourceItemSetChangedin interfaceDataGridItemsEventsDelegate<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>
-
dataGridSourcePropertyValueChanged
- Specified by:
dataGridSourcePropertyValueChangedin interfaceDataGridItemsEventsDelegate<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>
-
dataGridSourceStateChanged
- Specified by:
dataGridSourceStateChangedin interfaceDataGridItemsEventsDelegate<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>
-
dataGridSourceSelectedItemChanged
- Specified by:
dataGridSourceSelectedItemChangedin interfaceDataGridItemsEventsDelegate<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>
-
getColumnOrder
-
getCaption
- Specified by:
getCaptionin interfaceComponent.HasCaption- Overrides:
getCaptionin classAbstractComponent<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- the caption of the component
-
setCaption
Description copied from interface:Component.HasCaptionSets the component's caption.- Specified by:
setCaptionin interfaceComponent.HasCaption- Overrides:
setCaptionin classAbstractComponent<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
caption- the new component's caption
-
isCaptionAsHtml
public boolean isCaptionAsHtml()- Specified by:
isCaptionAsHtmlin interfaceHasHtmlCaption- Overrides:
isCaptionAsHtmlin classAbstractComponent<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
trueif the caption is rendered as HTML,falseif rendered as plain text
-
setCaptionAsHtml
public void setCaptionAsHtml(boolean captionAsHtml) Description copied from interface:HasHtmlCaptionSets whether the caption is rendered as HTML.- Specified by:
setCaptionAsHtmlin interfaceHasHtmlCaption- Overrides:
setCaptionAsHtmlin classAbstractComponent<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
captionAsHtml-trueif the caption is rendered as HTML,falseif rendered as plain text- See Also:
-
isTextSelectionEnabled
public boolean isTextSelectionEnabled()- Specified by:
isTextSelectionEnabledin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
trueif text selection is enabled.
-
setTextSelectionEnabled
public void setTextSelectionEnabled(boolean textSelectionEnabled) Description copied from interface:DataGridEnable or disable text selection in DataGrid cells. Default value isfalse.- Specified by:
setTextSelectionEnabledin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
textSelectionEnabled- specifies whether text selection in DataGrid cells is enabled
-
isColumnReorderingAllowed
public boolean isColumnReorderingAllowed()Description copied from interface:DataGridReturns whether column reordering is allowed. Default value istrue.- Specified by:
isColumnReorderingAllowedin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
trueif reordering is allowed
-
setColumnReorderingAllowed
public void setColumnReorderingAllowed(boolean columnReorderingAllowed) Description copied from interface:DataGridSets whether or not column reordering is allowed. Default value istrue.- Specified by:
setColumnReorderingAllowedin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
columnReorderingAllowed- specifies whether column reordering is allowed
-
isSortable
public boolean isSortable()- Specified by:
isSortablein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
trueif individual column sortable attribute can be set totrue,falseotherwise
-
setSortable
public void setSortable(boolean sortable) Description copied from interface:DataGridDefines if this attribute can be changed for individual column or not. Default value istrue.- Specified by:
setSortablein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
sortable-trueif individual column sortable attribute can be set totrue,falseotherwise
-
isColumnsCollapsingAllowed
public boolean isColumnsCollapsingAllowed()- Specified by:
isColumnsCollapsingAllowedin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
trueif individual column collapsible attribute can be set totrue,falseotherwise
-
setColumnsCollapsingAllowed
public void setColumnsCollapsingAllowed(boolean columnsCollapsingAllowed) Description copied from interface:DataGridDefines if collapsible attribute can be changed for individual column or not. Default value istrue.- Specified by:
setColumnsCollapsingAllowedin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
columnsCollapsingAllowed-trueif individual column collapsible attribute can be set totrue,falseotherwise
-
isEditorEnabled
public boolean isEditorEnabled()Description copied from interface:DataGridChecks whether the item editor UI is enabled for this DataGrid.- Specified by:
isEditorEnabledin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
trueif the editor is enabled for this grid- See Also:
-
setEditorEnabled
public void setEditorEnabled(boolean isEnabled) Description copied from interface:DataGridSets whether or not the item editor UI is enabled for this DataGrid. When the editor is enabled, the user can open it by double-clicking a row or hitting enter when a row is focused. The editor can also be opened programmatically using theDataGrid.edit(Object)method.- Specified by:
setEditorEnabledin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
isEnabled-trueto enable the feature,falseotherwise- See Also:
-
isEditorBuffered
public boolean isEditorBuffered()Description copied from interface:DataGridGets the buffered editor mode.- Specified by:
isEditorBufferedin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
trueif buffered editor is enabled,falseotherwise
-
setEditorBuffered
public void setEditorBuffered(boolean editorBuffered) Description copied from interface:DataGridSets the buffered editor mode. The default mode is buffered (true).- Specified by:
setEditorBufferedin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
editorBuffered-trueto enable buffered editor,falseto disable it
-
getEditorSaveCaption
Description copied from interface:DataGridGets the current caption of the save button in the DataGrid editor.- Specified by:
getEditorSaveCaptionin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- the current caption of the save button
-
setEditorSaveCaption
Description copied from interface:DataGridSets the caption on the save button in the DataGrid editor.- Specified by:
setEditorSaveCaptionin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
saveCaption- the caption to set
-
getEditorCancelCaption
Description copied from interface:DataGridGets the current caption of the cancel button in the DataGrid editor.- Specified by:
getEditorCancelCaptionin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- the current caption of the cancel button
-
setEditorCancelCaption
Description copied from interface:DataGridSets the caption on the cancel button in the DataGrid editor.- Specified by:
setEditorCancelCaptionin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
cancelCaption- the caption to set
-
getEditedItem
Description copied from interface:DataGridReturns the item that is currently being edited.- Specified by:
getEditedItemin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- the item that is currently being edited, or
nullif no item is being edited at the moment
-
isEditorActive
public boolean isEditorActive()Description copied from interface:DataGridReturns whether an item is currently being edited in the editor.- Specified by:
isEditorActivein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
trueif the editor is open
-
closeEditor
public void closeEditor()Description copied from interface:DataGridCloses editor if it's opened.- Specified by:
closeEditorin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>
-
edit
Description copied from interface:DataGridOpens the editor interface for the provided entity. Scrolls the Grid to bring the entity to view if it is not already visible. -
editItemInternal
-
convertToJmixFields
-
addEditorOpenListener
Description copied from interface:DataGridRegisters a new DataGrid editor open listener.- Specified by:
addEditorOpenListenerin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
listener- the listener to register
-
onEditorOpen
-
internalRemoveEditorOpenListener
-
addEditorCloseListener
Description copied from interface:DataGridRegisters a new DataGrid editor close listener.- Specified by:
addEditorCloseListenerin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
listener- the listener to register
-
onEditorCancel
-
internalRemoveEditorCloseListener
-
addEditorPreCommitListener
Description copied from interface:DataGridRegisters a new DataGrid editor pre commit listener. Works in buffered mode only.- Specified by:
addEditorPreCommitListenerin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
listener- the listener to register
-
onEditorBeforeSave
-
internalRemoveEditorPreCommitListener
protected void internalRemoveEditorPreCommitListener(Consumer<DataGrid.EditorPreCommitEvent<E>> listener) -
addEditorPostCommitListener
public Subscription addEditorPostCommitListener(Consumer<DataGrid.EditorPostCommitEvent<E>> listener) Description copied from interface:DataGridRegisters a new DataGrid editor post commit listener. Works in buffered mode only.- Specified by:
addEditorPostCommitListenerin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
listener- the listener to register
-
onEditorSave
-
internalRemoveEditorPostCommitListener
protected void internalRemoveEditorPostCommitListener(Consumer<DataGrid.EditorPostCommitEvent<E>> listener) -
setEditorCrossFieldValidate
public void setEditorCrossFieldValidate(boolean validate) Description copied from interface:DataGridEnables cross field validation in the inline editor. True by default.- Specified by:
setEditorCrossFieldValidatein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
validate- validate option, true if an editor should validate cross field rules
-
isEditorCrossFieldValidate
public boolean isEditorCrossFieldValidate()- Specified by:
isEditorCrossFieldValidatein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- true if editor validates cross field rules
-
createInstanceContainer
-
clearFieldDatasources
-
detachItemContainer
-
createValueSourceProvider
-
isHeaderVisible
public boolean isHeaderVisible()Description copied from interface:DataGridReturns the visibility of the header section.- Specified by:
isHeaderVisiblein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
trueif visible,falseotherwise
-
setHeaderVisible
public void setHeaderVisible(boolean headerVisible) Description copied from interface:DataGridSets the visibility of the header section.- Specified by:
setHeaderVisiblein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
headerVisible-trueto show the header section,falseto hide
-
getBodyRowHeight
public double getBodyRowHeight()Description copied from interface:DataGridReturns the current body row height.- Specified by:
getBodyRowHeightin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- body row height, -1 if height is AUTO
-
setBodyRowHeight
public void setBodyRowHeight(double rowHeight) Description copied from interface:DataGridSets the height of a body row. If -1 (default), the row height is calculated based on the theme for an empty row before the DataGrid is displayed.- Specified by:
setBodyRowHeightin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
rowHeight- the height of a row in pixels or -1 for AUTO
-
getHeaderRowHeight
public double getHeaderRowHeight()Description copied from interface:DataGridReturns the current header row height.- Specified by:
getHeaderRowHeightin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- header row height, -1 if height is AUTO
-
setHeaderRowHeight
public void setHeaderRowHeight(double rowHeight) Description copied from interface:DataGridSets the body of a body row. If -1 (default), the row height is calculated based on the theme for an empty row before the DataGrid is displayed.- Specified by:
setHeaderRowHeightin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
rowHeight- the height of a row in pixels or -1 for AUTO
-
isContextMenuEnabled
public boolean isContextMenuEnabled()- Specified by:
isContextMenuEnabledin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
trueif context menu is enabled,falseotherwise
-
setContextMenuEnabled
public void setContextMenuEnabled(boolean contextMenuEnabled) Description copied from interface:DataGridSets whether or not context menu is enabled. Default value istrue.- Specified by:
setContextMenuEnabledin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
contextMenuEnabled- specifies whether context menu is enabled
-
getColumnResizeMode
Description copied from interface:DataGridReturns the current column resize mode. The default mode isDataGrid.ColumnResizeMode.ANIMATED.- Specified by:
getColumnResizeModein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- a ColumnResizeMode value
-
setColumnResizeMode
Description copied from interface:DataGridSets the column resize mode to use. The default mode isDataGrid.ColumnResizeMode.ANIMATED.- Specified by:
setColumnResizeModein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
mode- a ColumnResizeMode value
-
getSelectionMode
- Specified by:
getSelectionModein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- the currently used
DataGrid.SelectionMode
-
setSelectionMode
Description copied from interface:DataGridSets the DataGrid's selection mode.- Specified by:
setSelectionModein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
selectionMode- the selection mode to use
-
isMultiSelect
public boolean isMultiSelect()- Specified by:
isMultiSelectin interfaceListComponent<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- true if multiple selection mode is enabled
-
getSingleSelected
Description copied from interface:ListComponentReturns an instance of entity corresponding to the selected row of the list component. If nothing is selected, the method returnsnull. If multiple selection mode is enabled, returns the first selected instance.- Specified by:
getSingleSelectedin interfaceListComponent<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- an instance of entity corresponding to the selected row of the list component
-
getSelected
Description copied from interface:ListComponentReturns a set of entity instances corresponding to the selected rows of the list component. If nothing is selected, the method returns aCollections.emptySet().- Specified by:
getSelectedin interfaceListComponent<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- a set of entity instances corresponding to the selected rows of the list component
-
setSelected
Description copied from interface:ListComponentSelects a row of the list component for a given entity instance.- Specified by:
setSelectedin interfaceListComponent<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
item- entity instance to select the row,nullto reset the selection
-
setSelected
Description copied from interface:ListComponentSelects the rows of the list component for a given collection of entity instances.- Specified by:
setSelectedin interfaceListComponent<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
items- collection of entity instances to select rows
-
setSelectedItems
-
selectAll
public void selectAll()Description copied from interface:DataGridMarks all the items in the current data source as selected. -
deselect
Description copied from interface:DataGridDeselects the given item. If the item is not currently selected, does nothing. -
deselectAll
public void deselectAll()Description copied from interface:DataGridDeselects all the items in the current data source.- Specified by:
deselectAllin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>
-
sort
Description copied from interface:DataGridSorts the DataGrid data for passed column id in the chosen sort direction. -
getSortOrder
- Specified by:
getSortOrderin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- sort order list
-
convertToDataGridSortOrder
protected List<DataGrid.SortOrder> convertToDataGridSortOrder(List<com.vaadin.data.provider.GridSortOrder<E>> gridSortOrder) -
addAction
Description copied from interface:ActionsHolderAdd an action to the component- Specified by:
addActionin interfaceActionsHolder
-
addAction
Description copied from interface:ActionsHolderAdd an action to the component with index.- Specified by:
addActionin interfaceActionsHolder
-
createContextMenuItem
-
attachAction
-
removeAction
Description copied from interface:ActionsHolderRemove the action from the component- Specified by:
removeActionin interfaceActionsHolder
-
removeAction
Description copied from interface:ActionsHolderRemove the action by its ID. If there is no action with that ID, nothing happens.- Specified by:
removeActionin interfaceActionsHolder
-
removeAllActions
public void removeAllActions()Description copied from interface:ActionsHolderRemove all actions from the component- Specified by:
removeAllActionsin interfaceActionsHolder
-
getActions
- Specified by:
getActionsin interfaceActionsHolder- Returns:
- unmodifiable collection of actions
-
getAction
- Specified by:
getActionin interfaceActionsHolder- Returns:
- an action by its ID, or null if not found
-
getActionsPermissions
- Specified by:
getActionsPermissionsin interfaceSecuredActionsHolder- Returns:
- permissions container
-
getInitialVisibleColumns
-
getComposition
public com.vaadin.ui.Component getComposition()- Specified by:
getCompositionin interfaceComponent.Wrapper- Overrides:
getCompositionin classAbstractComponent<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>
-
getFrozenColumnCount
public int getFrozenColumnCount()Description copied from interface:DataGridGets the number of frozen columns in this DataGrid. 0 means that no data columns will be frozen, but the built-in selection checkbox column will still be frozen if it's in use. -1 means that not even the selection column is frozen. NOTE: this count includeshidden columnsin the count.- Specified by:
getFrozenColumnCountin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- the number of frozen columns
- See Also:
-
setFrozenColumnCount
public void setFrozenColumnCount(int numberOfColumns) Description copied from interface:DataGridSets the number of frozen columns in this grid. Setting the count to 0 means that no data columns will be frozen, but the built-in selection checkbox column will still be frozen if it's in use. Setting the count to -1 will also disable the selection column.The default value is 0.
- Specified by:
setFrozenColumnCountin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
numberOfColumns- the number of columns that should be frozen
-
scrollTo
Description copied from interface:DataGridScrolls to a certain item, usingDataGrid.ScrollDestination.ANY. -
scrollTo
Description copied from interface:DataGridScrolls to a certain item, using user-specified scroll destination. -
scrollToStart
public void scrollToStart()Description copied from interface:DataGridScrolls to the first data item.- Specified by:
scrollToStartin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- See Also:
-
scrollToEnd
public void scrollToEnd()Description copied from interface:DataGridScrolls to the last data item.- Specified by:
scrollToEndin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- See Also:
-
repaint
public void repaint()Description copied from interface:DataGridRepaint UI representation of the DataGrid without refreshing the table data. -
canBeSorted
-
setDebugId
Description copied from interface:HasDebugIdINTERNAL. Managed by debug Id system.- Specified by:
setDebugIdin interfaceHasDebugId- Overrides:
setDebugIdin classAbstractComponent<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>
-
setId
Description copied from interface:ComponentSet component ID- Specified by:
setIdin interfaceComponent- Overrides:
setIdin classAbstractComponent<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>
-
setStyleName
Description copied from interface:ComponentSets one or more style names of the component, replacing any previous styles. Multiple styles can be specified as a space-separated list of style names. Styles implementation is client-type-specific.- Specified by:
setStyleNamein interfaceComponent- Overrides:
setStyleNamein classAbstractComponent<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
name- one or more style names separated by space.
-
getButtonsPanel
- Specified by:
getButtonsPanelin interfaceHasButtonsPanel- Returns:
- a buttons panel component.
-
setButtonsPanel
Description copied from interface:HasButtonsPanelSets aButtonsPanelcomponent.- Specified by:
setButtonsPanelin interfaceHasButtonsPanel- Parameters:
panel- a buttons panel component
-
getPagination
- Specified by:
getPaginationin interfaceHasPagination- Returns:
- pagination component
-
setPagination
Description copied from interface:HasPaginationSets pagination component.- Specified by:
setPaginationin interfaceHasPagination
-
onPaginationAfterRefresh
-
setupPaginationDataSourceProvider
public void setupPaginationDataSourceProvider() -
createTopPanel
protected com.vaadin.ui.CssLayout createTopPanel() -
updateCompositionStylesTopPanelVisible
protected void updateCompositionStylesTopPanelVisible() -
getEnterPressAction
- Specified by:
getEnterPressActionin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- an action to be executed on Enter key press, assigned by
DataGrid.setEnterPressAction(Action) - See Also:
-
setEnterPressAction
Description copied from interface:DataGridAssigns an action to be executed on Enter key press.If such action is not set, the table responds to pressing Enter by trying to find and execute the following actions:
- action, assigned by
DataGrid.setItemClickAction(Action) - action, assigned to Enter key press by setting its
shortcutproperty - action named "edit"
- action named "view"
If one of these actions is found and it is enabled, it is executed.
- Specified by:
setEnterPressActionin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
action- an action to be executed on Enter key press- See Also:
- action, assigned by
-
getItemClickAction
- Specified by:
getItemClickActionin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- an action to be executed on double click on a DataGrid row,
assigned by
DataGrid.setItemClickAction(Action) - See Also:
-
setItemClickAction
Description copied from interface:DataGridAssigns an action to be executed on double click on a DataGrid row.If such action is not set, the table responds to pressing Enter by trying to find and execute the following actions:
- action, assigned to Enter key press by setting its
shortcutproperty - action named "edit"
- action named "view"
If one of these actions is found and it is enabled, it is executed.
- Specified by:
setItemClickActionin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
action- an action to be executed on double click on a DataGrid row
- action, assigned to Enter key press by setting its
-
getColumnByGridColumn
@Nullable protected AbstractDataGrid.ColumnImpl<E> getColumnByGridColumn(com.vaadin.ui.Grid.Column<E, ?> gridColumn) -
getColumnById
-
addRowStyleProvider
Description copied from interface:DataGridAdds style provider for the DataGrid rows.DataGrid can use several providers to obtain many style names for rows.
- Specified by:
addRowStyleProviderin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
styleProvider- a style provider to add, not null
-
removeRowStyleProvider
Description copied from interface:DataGridRemoves style provider for the DataGrid rows.- Specified by:
removeRowStyleProviderin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
styleProvider- a style provider to remove, not null
-
getRowDescriptionProvider
Description copied from interface:DataGridReturns theRowDescriptionProviderinstance used to generate descriptions (tooltips) for DataGrid rows- Specified by:
getRowDescriptionProviderin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- the description provider or null if no provider is set
-
setRowDescriptionProvider
Description copied from interface:DataGridSets theRowDescriptionProviderinstance for generating optional descriptions (tooltips) for DataGrid rows. If aDataGrid.Column.setDescriptionProvider(Function)is also set, the row description generated byprovideris used for cells for which the cell description provider returns null.This method uses the
ContentMode.PREFORMATTEDcontent mode.- Specified by:
setRowDescriptionProviderin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
provider- the description provider to use ornullto remove a previously set provider if any
-
setRowDescriptionProvider
public void setRowDescriptionProvider(@Nullable Function<? super E, String> provider, ContentMode contentMode) Description copied from interface:DataGridSets theRowDescriptionProviderinstance for generating optional descriptions (tooltips) for DataGrid rows. If aDataGrid.Column.setDescriptionProvider(Function)is also set, the row description generated byprovideris used for cells for which the cell description provider returns null.- Specified by:
setRowDescriptionProviderin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
provider- the description provider to use ornullto remove a previously set provider if anycontentMode- the content mode for row tooltips
-
getRowDescription
-
addGeneratedColumn
public DataGrid.Column<E> addGeneratedColumn(String columnId, Function<DataGrid.ColumnGeneratorEvent<E>, ?> generator) Description copied from interface:DataGridAdd a generated column to the DataGrid.- Specified by:
addGeneratedColumnin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
columnId- column identifier as defined in XML descriptorgenerator- column generator instance- See Also:
-
addGeneratedColumn
public DataGrid.Column<E> addGeneratedColumn(String columnId, Function<DataGrid.ColumnGeneratorEvent<E>, ?> generator, int index) Description copied from interface:DataGridAdd a generated column to the DataGrid.- Specified by:
addGeneratedColumnin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
columnId- column identifier as defined in XML descriptorgenerator- column generator instanceindex- index of a new generated column- See Also:
-
createGeneratedColumnValueProvider
-
getColumnGenerator
Description copied from interface:DataGridGets the columns generator for the given column id.- Specified by:
getColumnGeneratorin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
columnId- the column id for which to return column generator- Returns:
- the column generator for given column id
-
copyColumnProperties
-
addColumnCollapsingChangeListener
public Subscription addColumnCollapsingChangeListener(Consumer<DataGrid.ColumnCollapsingChangeEvent> listener) Description copied from interface:DataGridRegisters a new column collapsing change listener.- Specified by:
addColumnCollapsingChangeListenerin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
listener- the listener to register
-
onColumnVisibilityChanged
protected void onColumnVisibilityChanged(com.vaadin.ui.Grid.ColumnVisibilityChangeEvent e) -
internalRemoveColumnCollapsingChangeListener
protected void internalRemoveColumnCollapsingChangeListener(Consumer<DataGrid.ColumnCollapsingChangeEvent> listener) -
addColumnResizeListener
Description copied from interface:DataGridRegisters a new column resize listener.- Specified by:
addColumnResizeListenerin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
listener- the listener to register
-
onColumnResize
protected void onColumnResize(com.vaadin.ui.Grid.ColumnResizeEvent e) -
internalRemoveColumnResizeListener
-
addSortListener
Description copied from interface:DataGridRegisters a new sort order change listener- Specified by:
addSortListenerin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
listener- the listener to register
-
addColumnReorderListener
Description copied from interface:DataGridRegisters a new column reorder listener.- Specified by:
addColumnReorderListenerin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
listener- the listener to register
-
addSelectionListener
Description copied from interface:DataGridRegisters a new selection listener- Specified by:
addSelectionListenerin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
listener- the listener to register
-
addItemClickListener
Description copied from interface:DataGridRegisters a new item click listener- Specified by:
addItemClickListenerin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
listener- the listener to register
-
addContextClickListener
Description copied from interface:DataGridRegisters a new context click listener- Specified by:
addContextClickListenerin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
listener- the listener to register
-
onContextClick
protected void onContextClick(com.vaadin.event.ContextClickEvent e) -
internalRemoveContextClickListener
-
addLookupValueChangeListener
public Subscription addLookupValueChangeListener(Consumer<LookupComponent.LookupSelectionChangeEvent<E>> listener) Description copied from interface:LookupComponent.LookupSelectionChangeNotifierAdds a listener that invoked when lookup selected items set is changed.- Specified by:
addLookupValueChangeListenerin interfaceLookupComponent.LookupSelectionChangeNotifier<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
listener- a listener to add- Returns:
Subscription
-
getHeaderRow
Description copied from interface:DataGridGets the header row at given index.- Specified by:
getHeaderRowin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
index- 0 based index for row. Counted from top to bottom- Returns:
- header row at given index
-
getHeaderRowByGridRow
@Nullable protected DataGrid.HeaderRow getHeaderRowByGridRow(com.vaadin.ui.components.grid.HeaderRow gridRow) -
appendHeaderRow
Description copied from interface:DataGridAdds a new row at the bottom of the header section.- Specified by:
appendHeaderRowin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- the new row
- See Also:
-
prependHeaderRow
Description copied from interface:DataGridAdds a new row at the top of the header section.- Specified by:
prependHeaderRowin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- the new row
- See Also:
-
addHeaderRowAt
Description copied from interface:DataGridInserts a new row at the given position to the header section. Shifts the row currently at that position and any subsequent rows down (adds one to their indices).- Specified by:
addHeaderRowAtin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
index- the position at which to insert the row- Returns:
- the new row
- See Also:
-
checkHeaderIndexInRange
protected void checkHeaderIndexInRange(int index, boolean includeBounds) -
addHeaderRowInternal
protected DataGrid.HeaderRow addHeaderRowInternal(com.vaadin.ui.components.grid.HeaderRow headerRow) -
removeHeaderRow
Description copied from interface:DataGridRemoves the given row from the header section.- Specified by:
removeHeaderRowin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
headerRow- the row to be removed- See Also:
-
removeHeaderRow
public void removeHeaderRow(int index) Description copied from interface:DataGridRemoves the row at the given position from the header section.- Specified by:
removeHeaderRowin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
index- the position of the row- See Also:
-
getDefaultHeaderRow
Description copied from interface:DataGridReturns the current default row of the header section. The default row is a special header row providing a user interface for sorting columns. Setting a header text for column updates cells in the default header.- Specified by:
getDefaultHeaderRowin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- the default row or null if no default row set
-
setDefaultHeaderRow
Description copied from interface:DataGridSets the default row of the header. The default row is a special header row providing a user interface for sorting columns.- Specified by:
setDefaultHeaderRowin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
headerRow- the new default row, or null for no default row
-
getHeaderRowCount
public int getHeaderRowCount()Description copied from interface:DataGridGets the row count for the header section.- Specified by:
getHeaderRowCountin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- row count
-
getDetailsGenerator
- Specified by:
getDetailsGeneratorin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- the current details generator for row details or
nullif not set
-
setDetailsGenerator
Description copied from interface:DataGridSets a new details generator for row details.The currently opened row details will be re-rendered.
- Specified by:
setDetailsGeneratorin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
detailsGenerator- the details generator to set
-
getRowDetails
-
isDetailsVisible
Description copied from interface:DataGridChecks whether details are visible for the given item.- Specified by:
isDetailsVisiblein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
entity- the item for which to check details visibility- Returns:
trueif the details are visible
-
setDetailsVisible
Description copied from interface:DataGridShows or hides the details for a specific item.- Specified by:
setDetailsVisiblein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
entity- the item for which to set details visibilityvisible-trueto show the details, orfalseto hide them
-
getTabIndex
public int getTabIndex()Description copied from interface:Component.FocusableGets the tabulator index of theHasTabIndexcomponent.- Specified by:
getTabIndexin interfaceComponent.Focusable- Returns:
- tab index set for the
HasTabIndexcomponent
-
setTabIndex
public void setTabIndex(int tabIndex) Description copied from interface:Component.FocusableSets the tabulator index of theFocusablecomponent. The tab index property is used to specify the order in which the fields are focused when the user presses the Tab key. Components with a defined tab index are focused sequentially first, and then the components with no tab index.- Specified by:
setTabIndexin interfaceComponent.Focusable- Parameters:
tabIndex- tab index
-
isAggregatable
public boolean isAggregatable()- Specified by:
isAggregatablein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- true if DataGrid is aggregatable
-
setAggregatable
public void setAggregatable(boolean aggregatable) Description copied from interface:DataGridSet to true if aggregation should be enabled. Default value is false.- Specified by:
setAggregatablein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
aggregatable- aggregatable option
-
getAggregationPosition
- Specified by:
getAggregationPositionin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- return aggregation row position
-
setAggregationPosition
Description copied from interface:DataGridSets aggregation row position. Default value isDataGrid.AggregationPosition.TOP.- Specified by:
setAggregationPositionin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
position- position:DataGrid.AggregationPosition.TOPorDataGrid.AggregationPosition.BOTTOM
-
getAggregationResults
- Specified by:
getAggregationResultsin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- aggregated values for columns
-
setEmptyStateMessage
Description copied from interface:DataGridSets a message to the middle of DataGrid body that should be appeared when DataGrid is empty.- Specified by:
setEmptyStateMessagein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
message- message that appears when DataGrid is empty
-
getEmptyStateMessage
- Specified by:
getEmptyStateMessagein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- message that should be appeared when DataGrid is empty
-
setEmptyStateLinkMessage
Description copied from interface:DataGridSets a link message to the middle of DataGrid body that should be appeared when DataGrid is empty.- Specified by:
setEmptyStateLinkMessagein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
linkMessage- message that appears when DataGrid is empty- See Also:
-
getEmptyStateLinkMessage
- Specified by:
getEmptyStateLinkMessagein interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- link message that should be appeared when DataGrid is empty
-
setEmptyStateLinkClickHandler
public void setEmptyStateLinkClickHandler(@Nullable Consumer<DataGrid.EmptyStateClickEvent<E>> handler) Description copied from interface:DataGridSets click handler for link message. Link message can be shown when DataGrid is empty.- Specified by:
setEmptyStateLinkClickHandlerin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Parameters:
handler- handler to set- See Also:
-
getMinHeight
- Specified by:
getMinHeightin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Specified by:
getMinHeightin interfaceHasMinSize- Returns:
min-heightCSS property value of the Grid (not a composition) ornullif not set
-
getMinHeightSizeUnit
- Specified by:
getMinHeightSizeUnitin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Specified by:
getMinHeightSizeUnitin interfaceHasMinSize- Returns:
- unit size of
min-heightCSS property value of the Grid (not a composition)
-
setMinHeight
Description copied from interface:DataGridSetsminHeightCSS property value to the Grid (not a composition). To set CSS properties to the composition usecssattribute in the XML descriptor orHtmlAttributes.applyCss(Component, String).- Specified by:
setMinHeightin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Specified by:
setMinHeightin interfaceHasMinSize- Parameters:
minHeight- property value
-
getMinWidth
- Specified by:
getMinWidthin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Specified by:
getMinWidthin interfaceHasMinSize- Returns:
min-widthCSS property value of the Grid (not a composition) ornullif not set
-
getMinWidthSizeUnit
- Specified by:
getMinWidthSizeUnitin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Specified by:
getMinWidthSizeUnitin interfaceHasMinSize- Returns:
- unit size of
min-widthCSS property value of the Grid (not a composition)
-
setMinWidth
Description copied from interface:DataGridSetsminWidthCSS property value to the Grid (not a composition). To set CSS properties to the composition usecssattribute in the XML descriptor orHtmlAttributes.applyCss(Component, String).- Specified by:
setMinWidthin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Specified by:
setMinWidthin interfaceHasMinSize- Parameters:
minWidth- property value
-
getEmptyStateLinkClickHandler
- Specified by:
getEmptyStateLinkClickHandlerin interfaceDataGrid<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>- Returns:
- click handler for link message
-
getAggregatableDelegate
-
__aggregate
-
__aggregateValues
-
convertAggregationKeyMapToColumnIdKeyMap
protected <V> Map<String,V> convertAggregationKeyMapToColumnIdKeyMap(Map<AggregationInfo, V> aggregationInfoMap) -
getAggregationInfos
-
checkAggregation
-
fillAggregationRow
-
initAggregationRow
protected void initAggregationRow() -
updateAggregationRow
protected void updateAggregationRow() -
removeAggregationRow
protected void removeAggregationRow() -
getColumnAggregationDescription
-
getColumnAggregationDescriptionByType
-
enableCrossFieldValidationHandling
protected void enableCrossFieldValidationHandling(boolean enable) -
validateCrossFieldRules
-
getGeneratedRowStyle
-
initEmptyState
protected void initEmptyState() -
showEmptyStateIfPossible
protected void showEmptyStateIfPossible() -
getGeneratedCellStyle
-
getGeneratedCellDescription
-
attached
public void attached()Description copied from interface:AttachNotifierNotifies all listeners that component has been attached.- Specified by:
attachedin interfaceAttachNotifier- Overrides:
attachedin classAbstractComponent<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>
-
detached
public void detached()Description copied from interface:AttachNotifierNotifies all listeners that component has been detached.- Specified by:
detachedin interfaceAttachNotifier- Overrides:
detachedin classAbstractComponent<C extends com.vaadin.ui.Grid<E> & JmixEnhancedGrid<E>>
-