Package io.jmix.ui.widget
Class JmixTable
java.lang.Object
com.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.v7.ui.AbstractLegacyComponent
com.vaadin.v7.ui.AbstractField<Object>
com.vaadin.v7.ui.AbstractSelect
com.vaadin.v7.ui.Table
io.jmix.ui.widget.JmixTable
- All Implemented Interfaces:
com.vaadin.event.Action.Container,com.vaadin.event.Action.ShortcutNotifier,com.vaadin.event.ConnectorEventListener,com.vaadin.event.ContextClickEvent.ContextClickNotifier,com.vaadin.event.dd.DragSource,com.vaadin.event.dd.DropTarget,com.vaadin.event.MethodEventSource,com.vaadin.event.SerializableEventListener,com.vaadin.server.ClientConnector,com.vaadin.server.Sizeable,com.vaadin.server.VariableOwner,com.vaadin.shared.Connector,com.vaadin.ui.Component,com.vaadin.ui.Component.Focusable,com.vaadin.ui.Component.HasContextHelp,com.vaadin.ui.HasChildMeasurementHint,com.vaadin.ui.HasComponents,com.vaadin.ui.LegacyComponent,com.vaadin.v7.data.Buffered,com.vaadin.v7.data.BufferedValidatable,com.vaadin.v7.data.Container,com.vaadin.v7.data.Container.ItemSetChangeListener,com.vaadin.v7.data.Container.ItemSetChangeNotifier,com.vaadin.v7.data.Container.Ordered,com.vaadin.v7.data.Container.PropertySetChangeListener,com.vaadin.v7.data.Container.PropertySetChangeNotifier,com.vaadin.v7.data.Container.Sortable,com.vaadin.v7.data.Container.Viewer,com.vaadin.v7.data.Property<Object>,com.vaadin.v7.data.Property.Editor,com.vaadin.v7.data.Property.ReadOnlyStatusChangeListener,com.vaadin.v7.data.Property.ReadOnlyStatusChangeNotifier,com.vaadin.v7.data.Property.ValueChangeListener,com.vaadin.v7.data.Property.ValueChangeNotifier,com.vaadin.v7.data.Property.Viewer,com.vaadin.v7.data.Validatable,com.vaadin.v7.event.ItemClickEvent.ItemClickNotifier,com.vaadin.v7.ui.Field<Object>,AggregationContainer,TableSortableContainer,JmixEnhancedTable,Serializable,Iterable<com.vaadin.ui.Component>,EventListener
- Direct Known Subclasses:
JmixGroupTable
public class JmixTable
extends com.vaadin.v7.ui.Table
implements TableSortableContainer, JmixEnhancedTable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.v7.ui.Table
com.vaadin.v7.ui.Table.Align, com.vaadin.v7.ui.Table.CacheUpdateException, com.vaadin.v7.ui.Table.CellStyleGenerator, com.vaadin.v7.ui.Table.ColumnCollapseEvent, com.vaadin.v7.ui.Table.ColumnCollapseListener, com.vaadin.v7.ui.Table.ColumnGenerator, com.vaadin.v7.ui.Table.ColumnHeaderMode, com.vaadin.v7.ui.Table.ColumnReorderEvent, com.vaadin.v7.ui.Table.ColumnReorderListener, com.vaadin.v7.ui.Table.ColumnResizeEvent, com.vaadin.v7.ui.Table.ColumnResizeListener, com.vaadin.v7.ui.Table.FooterClickEvent, com.vaadin.v7.ui.Table.FooterClickListener, com.vaadin.v7.ui.Table.GeneratedRow, com.vaadin.v7.ui.Table.HeaderClickEvent, com.vaadin.v7.ui.Table.HeaderClickListener, com.vaadin.v7.ui.Table.RowGenerator, com.vaadin.v7.ui.Table.RowHeaderMode, com.vaadin.v7.ui.Table.TableContextClickEvent, com.vaadin.v7.ui.Table.TableDragMode, com.vaadin.v7.ui.Table.TableDropCriterion, com.vaadin.v7.ui.Table.TableTransferableNested classes/interfaces inherited from class com.vaadin.v7.ui.AbstractSelect
com.vaadin.v7.ui.AbstractSelect.AbstractSelectTargetDetails, com.vaadin.v7.ui.AbstractSelect.AcceptItem, com.vaadin.v7.ui.AbstractSelect.CaptionChangeListener, com.vaadin.v7.ui.AbstractSelect.DefaultNewItemHandler, com.vaadin.v7.ui.AbstractSelect.Filtering, com.vaadin.v7.ui.AbstractSelect.ItemCaptionMode, com.vaadin.v7.ui.AbstractSelect.ItemDescriptionGenerator, com.vaadin.v7.ui.AbstractSelect.NewItemHandler, com.vaadin.v7.ui.AbstractSelect.TargetItemIs, com.vaadin.v7.ui.AbstractSelect.VerticalLocationIsNested classes/interfaces inherited from class com.vaadin.v7.ui.AbstractField
com.vaadin.v7.ui.AbstractField.FocusShortcut, com.vaadin.v7.ui.AbstractField.ReadOnlyStatusChangeEventNested classes/interfaces inherited from class com.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandlerNested classes/interfaces inherited from interface io.jmix.ui.widget.data.AggregationContainer
AggregationContainer.Context, AggregationContainer.TypeNested classes/interfaces inherited from interface com.vaadin.v7.data.Buffered
com.vaadin.v7.data.Buffered.SourceExceptionNested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListenerNested classes/interfaces inherited from interface com.vaadin.ui.Component
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, com.vaadin.ui.Component.ListenerNested classes/interfaces inherited from interface com.vaadin.ui.Component.HasContextHelp
com.vaadin.ui.Component.HasContextHelp.ContextHelpIconClickEvent, com.vaadin.ui.Component.HasContextHelp.ContextHelpIconClickListenerNested classes/interfaces inherited from interface com.vaadin.v7.data.Container
com.vaadin.v7.data.Container.Editor, com.vaadin.v7.data.Container.Filter, com.vaadin.v7.data.Container.Filterable, com.vaadin.v7.data.Container.Hierarchical, com.vaadin.v7.data.Container.Indexed, com.vaadin.v7.data.Container.ItemSetChangeEvent, com.vaadin.v7.data.Container.ItemSetChangeListener, com.vaadin.v7.data.Container.ItemSetChangeNotifier, com.vaadin.v7.data.Container.Ordered, com.vaadin.v7.data.Container.PropertySetChangeEvent, com.vaadin.v7.data.Container.PropertySetChangeListener, com.vaadin.v7.data.Container.PropertySetChangeNotifier, com.vaadin.v7.data.Container.SimpleFilterable, com.vaadin.v7.data.Container.Sortable, com.vaadin.v7.data.Container.ViewerNested classes/interfaces inherited from interface com.vaadin.v7.ui.Field
com.vaadin.v7.ui.Field.ValueChangeEventNested classes/interfaces inherited from interface com.vaadin.ui.HasChildMeasurementHint
com.vaadin.ui.HasChildMeasurementHint.ChildMeasurementHintNested classes/interfaces inherited from interface com.vaadin.ui.HasComponents
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListenerNested classes/interfaces inherited from interface io.jmix.ui.widget.JmixEnhancedTable
JmixEnhancedTable.AggregationInputValueChangeContext, JmixEnhancedTable.AggregationStyle, JmixEnhancedTable.CellClickListener, JmixEnhancedTable.CellValueFormatter, JmixEnhancedTable.PlainTextGeneratedColumn, JmixEnhancedTable.SpecificVariablesHandler, JmixEnhancedTable.TableCellClickEvent, JmixEnhancedTable.TableCellClickListenerNested classes/interfaces inherited from interface com.vaadin.v7.data.Property
com.vaadin.v7.data.Property.Editor, com.vaadin.v7.data.Property.ReadOnlyException, com.vaadin.v7.data.Property.ReadOnlyStatusChangeListener, com.vaadin.v7.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.v7.data.Property.Transactional<T extends Object>, com.vaadin.v7.data.Property.ValueChangeListener, com.vaadin.v7.data.Property.ValueChangeNotifier, com.vaadin.v7.data.Property.ViewerNested classes/interfaces inherited from interface com.vaadin.server.Sizeable
com.vaadin.server.Sizeable.Unit -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Consumer<com.vaadin.ui.Component>protected JmixEnhancedTable.AggregationStyleprotected booleanprotected Runnableprotected Runnableprotected Map<Object,JmixEnhancedTable.TableCellClickListener> protected JmixEnhancedTable.CellValueFormatterprotected Runnableprotected Objectprotected Objectprotected Stringprotected HtmlAttributesExtensionprotected com.vaadin.event.ActionManagerKeeps track of the ShortcutListeners added to this component, and manages the painting and handling as well.protected booleanprotected com.vaadin.shared.RegistrationFields inherited from class com.vaadin.v7.ui.Table
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, alwaysRecalculateColumnWidths, CELL_FIRSTCOL, CELL_GENERATED_ROW, CELL_HEADER, CELL_ICON, CELL_ITEMID, CELL_KEY, COLUMN_HEADER_MODE_EXPLICIT, COLUMN_HEADER_MODE_EXPLICIT_DEFAULTS_ID, COLUMN_HEADER_MODE_HIDDEN, COLUMN_HEADER_MODE_ID, reqFirstRowToPaint, ROW_HEADER_MODE_EXPLICIT, ROW_HEADER_MODE_EXPLICIT_DEFAULTS_ID, ROW_HEADER_MODE_HIDDEN, ROW_HEADER_MODE_ICON_ONLY, ROW_HEADER_MODE_ID, ROW_HEADER_MODE_INDEX, ROW_HEADER_MODE_ITEM, ROW_HEADER_MODE_PROPERTY, sortAscending, sortContainerPropertyIdFields inherited from class com.vaadin.v7.ui.AbstractSelect
ITEM_CAPTION_MODE_EXPLICIT, ITEM_CAPTION_MODE_EXPLICIT_DEFAULTS_ID, ITEM_CAPTION_MODE_ICON_ONLY, ITEM_CAPTION_MODE_ID, ITEM_CAPTION_MODE_INDEX, ITEM_CAPTION_MODE_ITEM, ITEM_CAPTION_MODE_PROPERTY, itemIdMapper, items, resetValueToNullOnContainerChangeFields inherited from class com.vaadin.ui.AbstractComponent
componentErrorProvider, DESIGN_ATTR_PLAIN_TEXTFields inherited from interface com.vaadin.server.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAggregationEditableColumn(Object columnId) voidaddContainerPropertyAggregation(Object propertyId, AggregationContainer.Type type) voidaddGeneratedColumn(Object id, com.vaadin.v7.ui.Table.ColumnGenerator generatedColumn) com.vaadin.shared.RegistrationaddShortcutListener(com.vaadin.event.ShortcutListener shortcut) voidaddTableCellClickListener(Object propertyId, JmixEnhancedTable.TableCellClickListener listener) aggregate(AggregationContainer.Context context) Perform aggregation and return map with formatted string values.Perform aggregation and return map with aggregation info and aggregation column type, i.e.voidbeforeClientResponse(boolean initial) voidchangeVariables(Object source, Map<String, Object> variables) protected booleanchangeVariables(Map<String, Object> variables) protected com.vaadin.v7.data.ContainercreateOrderedWrapper(com.vaadin.v7.data.Container newDataSource) booleanvoidenableContentBufferRefreshing(boolean refreshContent) protected intfindItemIndex(Object currentPageFirstItemId) protected voidfireValueChange(boolean repaintIsNotNeeded) protected StringformatPropertyValue(Object rowId, Object colId, com.vaadin.v7.data.Property<?> property) Consumer<com.vaadin.ui.Component>getAggregationDescription(Object columnId) protected Collection<?>protected String[]getClickableColumnKeys(Collection<Object> columnIds) booleangetColumnCaptionAsHtml(Object columnId) getColumnDescription(Object columnId) booleangetColumnSortable(Object columnId) booleanObject[]protected HtmlAttributesExtensiongetItemByRowKey(String rowKey) com.vaadin.server.ResourcegetItemIcon(Object itemId) com.vaadin.server.Sizeable.Unitcom.vaadin.server.Sizeable.Unitcom.vaadin.ui.Componentprotected ObjectgetPropertyValue(Object rowId, Object colId, com.vaadin.v7.data.Property property) Collection<?>protected JmixTableStategetState()protected JmixTableStategetState(boolean markAsDirty) protected voidhandleAggregationGroupInputChange(String columnKey, String groupKey, String value, boolean isFocused) voidvoidbooleanbooleanbooleanisColumnEditable(Object columnId) protected booleanisColumnEditable(Object columnId, boolean editable) booleanbooleanbooleanbooleanIterator<com.vaadin.ui.Component>iterator()protected voidprotected voidpaintActions(com.vaadin.server.PaintTarget target, Set<com.vaadin.event.Action> actionSet) protected voidpaintAdditionalData(com.vaadin.server.PaintTarget target) protected voidpaintAggregationRow(com.vaadin.server.PaintTarget target, Map<Object, Object> aggregations) voidpaintContent(com.vaadin.server.PaintTarget target) protected voidpaintEditableAggregationColumns(com.vaadin.server.PaintTarget target) voidvoidbooleanremoveContainerProperty(Object propertyId) voidremoveContainerPropertyAggregation(Object propertyId) voidremoveShortcutListener(com.vaadin.event.ShortcutListener shortcut) voidremoveTableCellClickListener(Object propertyId) voidrequestFocus(Object itemId, Object columnId) voidvoidsetAfterUnregisterComponentHandler(Consumer<com.vaadin.ui.Component> afterUnregisterComponentHandler) voidsetAggregatable(boolean aggregatable) voidsetAggregationDescription(Object columnId, String tooltip) voidsetAggregationDistributionProvider(Function<JmixEnhancedTable.AggregationInputValueChangeContext, Boolean> distributionProvider) voidsetAggregationStyle(JmixEnhancedTable.AggregationStyle aggregationStyle) voidsetAutowirePropertyDsForFields(boolean autowirePropertyDsForFields) voidsetBeforePaintListener(Runnable beforePaintListener) voidsetBeforeRefreshRowCacheHandler(Runnable beforeRefreshRowCacheHandler) voidsetColumnCaptionAsHtml(Object columnId, boolean captionAsHtml) Sets whether caption of column with the givencolumnIdshould be interpreted as HTML or not.voidsetColumnDescription(Object columnId, String description) voidsetColumnSortable(Object columnId, boolean sortable) voidsetContextMenuEnabled(boolean contextMenuEnabled) voidsetContextMenuPopup(com.vaadin.ui.Layout contextMenu) voidsetCustomCellValueFormatter(JmixEnhancedTable.CellValueFormatter customCellValueFormatter) voidsetCustomPopupAutoClose(boolean popupAutoClose) voidsetDeselectAllLabel(String deselectAllLabel) voidsetEditable(boolean editable) voidsetEditableColumns(Object[] editableColumns) voidsetEmptyStateLinkClickHandler(Runnable handler) voidsetEmptyStateLinkMessage(String linkMessage) voidsetEmptyStateMessage(String message) voidsetIconProvider(Function<Object, com.vaadin.server.Resource> iconProvider) voidsetMinHeight(String minHeight) voidsetMinWidth(String minWidth) voidsetMultiLineCells(boolean multiLineCells) voidsetPresentationsLayout(com.vaadin.ui.Component presentations) voidsetSelectAllLabel(String selectAllLabel) voidsetShowEmptyState(boolean show) voidsetShowTotalAggregation(boolean showTotalAggregation) voidsetSortAscendingLabel(String tableSortAscendingLabel) voidsetSortDescendingLabel(String tableSortDescendingLabel) voidsetSortOptions(Object propertyId, boolean sortAscending) Sets column id to sort and sorting direction.voidsetSortResetLabel(String tableSortResetLabel) voidvoidsetTextSelectionEnabled(boolean textSelectionEnabled) voidshowCustomPopup(com.vaadin.ui.Component popupComponent) protected voidunregisterComponent(com.vaadin.ui.Component component) protected voidprotected voidprotected voidprotected voidprotected voidprotected intupdateNewIndexOnLastPage(int newIndex, int indexOnLastPage) Methods inherited from class com.vaadin.v7.ui.Table
_associatedProperties, _columnGenerators, _columnIdMap, _fieldFactory, _setCurrentPageFirstItemIndex, _visibleColumns, _visibleComponents, addActionHandler, addColumnCollapseListener, addColumnReorderListener, addColumnResizeListener, addContainerProperty, addContainerProperty, addFooterClickListener, addHeaderClickListener, addItem, addItemAfter, addItemAfter, addItemClickListener, addListener, addListener, addListener, addListener, addListener, attach, bindPropertyToField, containerItemSetChange, containerPropertySetChange, detach, disableContentRefreshing, enableContentRefreshing, firstItemId, getAddedRowCount, getCacheRate, getCellStyleGenerator, getChildMeasurementHint, getCollapseMenuContent, getColumnAlignment, getColumnAlignments, getColumnExpandRatio, getColumnFooter, getColumnGenerator, getColumnHeader, getColumnHeaderMode, getColumnHeaders, getColumnIcon, getColumnIcons, getColumnWidth, getComponentIterator, getConverter, getCurrentPageFirstItemId, getCurrentPageFirstItemIndex, getCustomAttributes, getDragMode, getDropHandler, getFirstAddedItemIndex, getFirstUpdatedItemIndex, getIdByIndex, getItemDescriptionGenerator, getItemIds, getItemIdsInRange, getMultiSelectMode, getPageLength, getRowGenerator, getRowHeaderMode, getSortContainerPropertyId, getTableFieldFactory, getTransferable, getUpdatedRowCount, getVisibleColumns, getVisibleItemIds, hasConverter, indexOfId, isCellPaintingNeeded, isColumnCollapsed, isColumnCollapsible, isColumnCollapsingAllowed, isColumnNeedsToRefreshRendered, isColumnReorderingAllowed, isEditable, isFirstId, isFooterVisible, isItemNeedsToRefreshRendered, isLastId, isMultiSelectTouchDetectionEnabled, isPartialRowUpdate, isRowCacheInvalidated, isSelectable, isSortAscending, isSortDisabled, isSortEnabled, lastItemId, markAsDirty, markAsDirtyRecursive, nextItemId, paintRowAttributes, paintRowHeader, paintRowIcon, paintVisibleColumns, prevItemId, readBody, readDesign, readItem, readItems, refreshRenderedCells, registerComponent, removeActionHandler, removeAllActionHandlers, removeAllItems, removeColumnCollapseListener, removeColumnReorderListener, removeColumnResizeListener, removeFooterClickListener, removeGeneratedColumn, removeHeaderClickListener, removeItem, removeItemClickListener, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, resetPageBuffer, rowHeadersAreEnabled, setCacheRate, setCellStyleGenerator, setChildMeasurementHint, setCollapseMenuContent, setColumnAlignment, setColumnAlignments, setColumnCollapsed, setColumnCollapsible, setColumnCollapsingAllowed, setColumnExpandRatio, setColumnFooter, setColumnHeader, setColumnHeaderMode, setColumnHeaders, setColumnIcon, setColumnIcons, setColumnReorderingAllowed, setColumnWidth, setContainerDataSource, setContainerDataSource, setContainerSortOptions, setConverter, setCurrentPageFirstItemId, setCurrentPageFirstItemIndex, setCurrentPageFirstItemIndex, setDragMode, setDropHandler, setEnabled, setFooterVisible, setItemDescriptionGenerator, setMultiSelectMode, setMultiSelectTouchDetectionEnabled, setNewItemsAllowed, setPageLength, setRowGenerator, setRowHeaderMode, setSelectable, setSortAscending, setSortContainerPropertyId, setSortDisabled, setSortEnabled, setTableFieldFactory, setVisible, setVisibleColumns, shouldHideAddedRows, sort, sort, translateDropTargetDetails, valueChange, writeDesign, writeItem, writeItemsMethods inherited from class com.vaadin.v7.ui.AbstractSelect
addItem, addItem, addItems, addItems, addItemSetChangeListener, addListener, addListener, addPropertySetChangeListener, containsId, fireItemSetChange, firePropertySetChange, getCaptionChangeListener, getContainerDataSource, getContainerProperty, getContainerPropertyIds, getItem, getItemCaption, getItemCaptionMode, getItemCaptionPropertyId, getItemIconPropertyId, getItemIds, getListeners, getNewItemHandler, getNullSelectionItemId, getType, getType, getValue, isDataSourceContainsValue, isEmpty, isMultiSelect, isNewItemsAllowed, isNullSelectionAllowed, isSelected, paintItem, removeItemSetChangeListener, removeListener, removeListener, removePropertySetChangeListener, sanitizeSelection, select, setItemCaption, setItemCaptionMode, setItemCaptionPropertyId, setItemIcon, setItemIconPropertyId, setMultiSelect, setNewItemHandler, setNullSelectionAllowed, setNullSelectionItemId, setValue, setValue, size, unselectMethods inherited from class com.vaadin.v7.ui.AbstractField
addListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, clear, commit, discard, fieldValueEquals, fireReadOnlyStatusChange, focus, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getErrorMessage, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getTabIndex, getValidators, isBuffered, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isShowBufferedSourceException, isShowErrorForDisabledState, isValid, isValidationVisible, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInternalValue, setInvalidAllowed, setInvalidCommitted, setLocale, setPropertyDataSource, setReadOnly, setRequired, setRequiredError, setShowBufferedSourceException, setShowErrorForDisabledState, setTabIndex, setValidationVisible, setValue, setValueIgnoreReadOnly, shouldHideErrors, validate, validateMethods inherited from class com.vaadin.v7.ui.AbstractLegacyComponent
getExplicitImmediateValue, isImmediate, setImmediateMethods inherited from class com.vaadin.ui.AbstractComponent
addContextClickListener, addContextHelpIconClickListener, addListener, addStyleName, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, getActionManager, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getData, getDebugId, getDescription, getHeight, getHeightUnits, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setComponentErrorProvider, setContextHelpText, setContextHelpTextHtmlEnabled, setData, setDebugId, setDescription, setDescription, setHeight, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setJTestId, setParent, setPrimaryStyleName, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setWidth, setWidth, setWidthFull, setWidthUndefinedMethods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaintAll, retrievePendingRpcCalls, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, removeAttachListener, removeDetachListener, removeExtension, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerMethods inherited from interface com.vaadin.ui.Component
addListener, addStyleName, addStyleNames, getCaption, getDescription, getIcon, getId, getJTestId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setIcon, setId, setJTestId, setParent, setPrimaryStyleName, setStyleName, setStyleNameMethods inherited from interface com.vaadin.shared.Connector
getConnectorIdMethods inherited from interface com.vaadin.v7.data.Container
addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeItem, sizeMethods inherited from interface com.vaadin.v7.data.Container.Ordered
addItemAfter, addItemAfter, firstItemId, isFirstId, isLastId, lastItemId, nextItemId, prevItemIdMethods inherited from interface com.vaadin.v7.data.Container.Sortable
sortMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.vaadin.server.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefinedMethods inherited from interface com.vaadin.server.VariableOwner
isEnabled
-
Field Details
-
editableColumns
-
aggregationEditableColumns
-
shortcutActionManager
protected com.vaadin.event.ActionManager shortcutActionManagerKeeps track of the ShortcutListeners added to this component, and manages the painting and handling as well. -
autowirePropertyDsForFields
protected boolean autowirePropertyDsForFields -
showTotalAggregation
protected boolean showTotalAggregation -
nonSortableProperties
-
columnDescriptions
-
aggregationTooltips
-
htmlCaptionColumns
-
clickableTableColumnIds
-
tableCellClickListenerRegistration
protected com.vaadin.shared.Registration tableCellClickListenerRegistration -
aggregationStyle
-
focusColumn
-
focusItem
-
beforePaintListener
-
customCellValueFormatter
-
iconProvider
-
specificVariablesHandler
-
focusTotalAggregationInputColumnKey
-
aggregationDistributionProvider
protected Function<JmixEnhancedTable.AggregationInputValueChangeContext,Boolean> aggregationDistributionProvider -
afterUnregisterComponentHandler
-
beforeRefreshRowCacheHandler
-
emptyStateLinkClickHandler
-
htmlAttributesExtension
-
-
Constructor Details
-
JmixTable
public JmixTable()
-
-
Method Details
-
getState
- Overrides:
getStatein classcom.vaadin.v7.ui.Table
-
getState
- Overrides:
getStatein classcom.vaadin.v7.ui.Table
-
getPresentationsLayout
public com.vaadin.ui.Component getPresentationsLayout()- Specified by:
getPresentationsLayoutin interfaceJmixEnhancedTable
-
setPresentationsLayout
public void setPresentationsLayout(com.vaadin.ui.Component presentations) - Specified by:
setPresentationsLayoutin interfaceJmixEnhancedTable
-
hidePresentationsPopup
public void hidePresentationsPopup()- Specified by:
hidePresentationsPopupin interfaceJmixEnhancedTable
-
setContextMenuPopup
public void setContextMenuPopup(com.vaadin.ui.Layout contextMenu) - Specified by:
setContextMenuPopupin interfaceJmixEnhancedTable
-
hideContextMenuPopup
public void hideContextMenuPopup()- Specified by:
hideContextMenuPopupin interfaceJmixEnhancedTable
-
isTextSelectionEnabled
public boolean isTextSelectionEnabled()- Specified by:
isTextSelectionEnabledin interfaceJmixEnhancedTable
-
setTextSelectionEnabled
public void setTextSelectionEnabled(boolean textSelectionEnabled) - Specified by:
setTextSelectionEnabledin interfaceJmixEnhancedTable
-
setSortResetLabel
- Specified by:
setSortResetLabelin interfaceJmixEnhancedTable
-
getSortResetLabel
- Specified by:
getSortResetLabelin interfaceJmixEnhancedTable
-
setSortAscendingLabel
- Specified by:
setSortAscendingLabelin interfaceJmixEnhancedTable
-
getSortAscendingLabel
- Specified by:
getSortAscendingLabelin interfaceJmixEnhancedTable
-
setSortDescendingLabel
- Specified by:
setSortDescendingLabelin interfaceJmixEnhancedTable
-
getSelectAllLabel
- Specified by:
getSelectAllLabelin interfaceJmixEnhancedTable
-
setSelectAllLabel
- Specified by:
setSelectAllLabelin interfaceJmixEnhancedTable
-
getDeselectAllLabel
- Specified by:
getDeselectAllLabelin interfaceJmixEnhancedTable
-
setDeselectAllLabel
- Specified by:
setDeselectAllLabelin interfaceJmixEnhancedTable
-
getSortDescendingLabel
- Specified by:
getSortDescendingLabelin interfaceJmixEnhancedTable
-
disableContentBufferRefreshing
public boolean disableContentBufferRefreshing()- Specified by:
disableContentBufferRefreshingin interfaceJmixEnhancedTable
-
enableContentBufferRefreshing
public void enableContentBufferRefreshing(boolean refreshContent) - Specified by:
enableContentBufferRefreshingin interfaceJmixEnhancedTable
-
getPropertyValue
- Overrides:
getPropertyValuein classcom.vaadin.v7.ui.Table
-
isAutowirePropertyDsForFields
public boolean isAutowirePropertyDsForFields()- Specified by:
isAutowirePropertyDsForFieldsin interfaceJmixEnhancedTable
-
setAutowirePropertyDsForFields
public void setAutowirePropertyDsForFields(boolean autowirePropertyDsForFields) - Specified by:
setAutowirePropertyDsForFieldsin interfaceJmixEnhancedTable
-
isContextMenuEnabled
public boolean isContextMenuEnabled()- Specified by:
isContextMenuEnabledin interfaceJmixEnhancedTable
-
setContextMenuEnabled
public void setContextMenuEnabled(boolean contextMenuEnabled) - Specified by:
setContextMenuEnabledin interfaceJmixEnhancedTable
-
setMultiLineCells
public void setMultiLineCells(boolean multiLineCells) - Specified by:
setMultiLineCellsin interfaceJmixEnhancedTable
-
isMultiLineCells
public boolean isMultiLineCells()- Specified by:
isMultiLineCellsin interfaceJmixEnhancedTable
-
getCustomCellValueFormatter
- Specified by:
getCustomCellValueFormatterin interfaceJmixEnhancedTable
-
setCustomCellValueFormatter
public void setCustomCellValueFormatter(@Nullable JmixEnhancedTable.CellValueFormatter customCellValueFormatter) - Specified by:
setCustomCellValueFormatterin interfaceJmixEnhancedTable
-
updateHtmlCaptionColumns
protected void updateHtmlCaptionColumns() -
setColumnCaptionAsHtml
Description copied from interface:JmixEnhancedTableSets whether caption of column with the givencolumnIdshould be interpreted as HTML or not.- Specified by:
setColumnCaptionAsHtmlin interfaceJmixEnhancedTable- Parameters:
columnId- column idcaptionAsHtml- interpret caption as HTML or not
-
getColumnCaptionAsHtml
- Specified by:
getColumnCaptionAsHtmlin interfaceJmixEnhancedTable- Parameters:
columnId- column id- Returns:
- whether caption of column with the given
columnIdshould be interpreted as HTML or not
-
formatPropertyValue
protected String formatPropertyValue(Object rowId, Object colId, com.vaadin.v7.data.Property<?> property) - Overrides:
formatPropertyValuein classcom.vaadin.v7.ui.Table
-
changeVariables
- Specified by:
changeVariablesin interfacecom.vaadin.server.VariableOwner- Overrides:
changeVariablesin classcom.vaadin.v7.ui.Table
-
getEditableColumns
- Specified by:
getEditableColumnsin interfaceJmixEnhancedTable
-
setEditableColumns
- Specified by:
setEditableColumnsin interfaceJmixEnhancedTable
-
isColumnEditable
- Overrides:
isColumnEditablein classcom.vaadin.v7.ui.Table
-
isColumnEditable
- Specified by:
isColumnEditablein interfaceJmixEnhancedTable
-
addGeneratedColumn
- Overrides:
addGeneratedColumnin classcom.vaadin.v7.ui.Table
-
setEditable
public void setEditable(boolean editable) - Overrides:
setEditablein classcom.vaadin.v7.ui.Table
-
addShortcutListener
public com.vaadin.shared.Registration addShortcutListener(com.vaadin.event.ShortcutListener shortcut) - Specified by:
addShortcutListenerin interfacecom.vaadin.event.Action.ShortcutNotifier- Overrides:
addShortcutListenerin classcom.vaadin.ui.AbstractComponent
-
removeShortcutListener
public void removeShortcutListener(com.vaadin.event.ShortcutListener shortcut) - Specified by:
removeShortcutListenerin interfacecom.vaadin.event.Action.ShortcutNotifier- Overrides:
removeShortcutListenerin classcom.vaadin.ui.AbstractComponent
-
paintActions
protected void paintActions(com.vaadin.server.PaintTarget target, Set<com.vaadin.event.Action> actionSet) throws com.vaadin.server.PaintException - Overrides:
paintActionsin classcom.vaadin.v7.ui.Table- Throws:
com.vaadin.server.PaintException
-
changeVariables
- Overrides:
changeVariablesin classcom.vaadin.v7.ui.Table
-
setSpecificVariablesHandler
- Specified by:
setSpecificVariablesHandlerin interfaceJmixEnhancedTable
-
getSpecificVariablesHandler
- Specified by:
getSpecificVariablesHandlerin interfaceJmixEnhancedTable
-
resetSortOrder
public void resetSortOrder()- Specified by:
resetSortOrderin interfaceTableSortableContainer
-
getItemIcon
- Overrides:
getItemIconin classcom.vaadin.v7.ui.AbstractSelect
-
getIconProvider
- Specified by:
getIconProviderin interfaceJmixEnhancedTable
-
setIconProvider
- Specified by:
setIconProviderin interfaceJmixEnhancedTable
-
iterator
-
refreshCellStyles
public void refreshCellStyles()- Specified by:
refreshCellStylesin interfaceJmixEnhancedTable
-
removeContainerProperty
- Specified by:
removeContainerPropertyin interfacecom.vaadin.v7.data.Container- Overrides:
removeContainerPropertyin classcom.vaadin.v7.ui.Table- Throws:
UnsupportedOperationException
-
isAggregatable
public boolean isAggregatable()- Specified by:
isAggregatablein interfaceJmixEnhancedTable
-
setAggregatable
public void setAggregatable(boolean aggregatable) - Specified by:
setAggregatablein interfaceJmixEnhancedTable
-
getAggregationStyle
- Specified by:
getAggregationStylein interfaceJmixEnhancedTable
-
setAggregationStyle
- Specified by:
setAggregationStylein interfaceJmixEnhancedTable
-
isShowTotalAggregation
public boolean isShowTotalAggregation()- Specified by:
isShowTotalAggregationin interfaceJmixEnhancedTable
-
setShowTotalAggregation
public void setShowTotalAggregation(boolean showTotalAggregation) - Specified by:
setShowTotalAggregationin interfaceJmixEnhancedTable
-
getAggregationPropertyIds
- Specified by:
getAggregationPropertyIdsin interfaceAggregationContainer
-
addContainerPropertyAggregation
- Specified by:
addContainerPropertyAggregationin interfaceAggregationContainer
-
removeContainerPropertyAggregation
- Specified by:
removeContainerPropertyAggregationin interfaceAggregationContainer
-
aggregate
Description copied from interface:AggregationContainerPerform aggregation and return map with formatted string values.- Specified by:
aggregatein interfaceAggregationContainer- Parameters:
context- aggregation context- Returns:
- map with aggregation info and formatted string values
-
aggregateValues
Description copied from interface:AggregationContainerPerform aggregation and return map with aggregation info and aggregation column type, i.e. if aggregation was performed for Long type column it will return pair: AggregationInfo - Long.- Specified by:
aggregateValuesin interfaceAggregationContainer- Parameters:
context- aggregation context- Returns:
- map with aggregation info and aggregation column type
-
paintAdditionalData
protected void paintAdditionalData(com.vaadin.server.PaintTarget target) throws com.vaadin.server.PaintException - Overrides:
paintAdditionalDatain classcom.vaadin.v7.ui.Table- Throws:
com.vaadin.server.PaintException
-
getAggregationItemIds
-
paintAggregationRow
protected void paintAggregationRow(com.vaadin.server.PaintTarget target, Map<Object, Object> aggregations) throws com.vaadin.server.PaintException- Throws:
com.vaadin.server.PaintException
-
paintEditableAggregationColumns
protected void paintEditableAggregationColumns(com.vaadin.server.PaintTarget target) throws com.vaadin.server.PaintException - Throws:
com.vaadin.server.PaintException
-
addAggregationEditableColumn
- Specified by:
addAggregationEditableColumnin interfaceJmixEnhancedTable
-
setAggregationDistributionProvider
public void setAggregationDistributionProvider(Function<JmixEnhancedTable.AggregationInputValueChangeContext, Boolean> distributionProvider) - Specified by:
setAggregationDistributionProviderin interfaceJmixEnhancedTable
-
getAggregationDistributionProvider
public Function<JmixEnhancedTable.AggregationInputValueChangeContext,Boolean> getAggregationDistributionProvider()- Specified by:
getAggregationDistributionProviderin interfaceJmixEnhancedTable
-
handleAggregationGroupInputChange
-
addTableCellClickListener
public void addTableCellClickListener(Object propertyId, JmixEnhancedTable.TableCellClickListener listener) - Specified by:
addTableCellClickListenerin interfaceJmixEnhancedTable
-
onTableCellClick
-
removeTableCellClickListener
- Specified by:
removeTableCellClickListenerin interfaceJmixEnhancedTable
-
getColumnSortable
- Specified by:
getColumnSortablein interfaceJmixEnhancedTable
-
setColumnSortable
- Specified by:
setColumnSortablein interfaceJmixEnhancedTable
-
requestFocus
- Specified by:
requestFocusin interfaceJmixEnhancedTable
-
getSortableContainerPropertyIds
- Specified by:
getSortableContainerPropertyIdsin interfacecom.vaadin.v7.data.Container.Sortable- Overrides:
getSortableContainerPropertyIdsin classcom.vaadin.v7.ui.Table
-
beforeClientResponse
public void beforeClientResponse(boolean initial) - Specified by:
beforeClientResponsein interfacecom.vaadin.server.ClientConnector- Overrides:
beforeClientResponsein classcom.vaadin.v7.ui.Table
-
getItemByRowKey
- Specified by:
getItemByRowKeyin interfaceJmixEnhancedTable- Parameters:
rowKey- row index in the table- Returns:
- item
-
updateClickableTableColumnKeys
protected void updateClickableTableColumnKeys() -
getClickableColumnKeys
-
showCustomPopup
public void showCustomPopup(com.vaadin.ui.Component popupComponent) - Specified by:
showCustomPopupin interfaceJmixEnhancedTable
-
getCustomPopupAutoClose
public boolean getCustomPopupAutoClose()- Specified by:
getCustomPopupAutoClosein interfaceJmixEnhancedTable
-
setCustomPopupAutoClose
public void setCustomPopupAutoClose(boolean popupAutoClose) - Specified by:
setCustomPopupAutoClosein interfaceJmixEnhancedTable
-
setColumnDescription
- Specified by:
setColumnDescriptionin interfaceJmixEnhancedTable
-
getColumnDescription
- Specified by:
getColumnDescriptionin interfaceJmixEnhancedTable
-
setAggregationDescription
- Specified by:
setAggregationDescriptionin interfaceJmixEnhancedTable
-
getAggregationDescription
- Specified by:
getAggregationDescriptionin interfaceJmixEnhancedTable
-
setShowEmptyState
public void setShowEmptyState(boolean show) - Specified by:
setShowEmptyStatein interfaceJmixEnhancedTable
-
setEmptyStateMessage
- Specified by:
setEmptyStateMessagein interfaceJmixEnhancedTable
-
getEmptyStateMessage
- Specified by:
getEmptyStateMessagein interfaceJmixEnhancedTable
-
setEmptyStateLinkMessage
- Specified by:
setEmptyStateLinkMessagein interfaceJmixEnhancedTable
-
getEmptyStateLinkMessage
- Specified by:
getEmptyStateLinkMessagein interfaceJmixEnhancedTable
-
setEmptyStateLinkClickHandler
- Specified by:
setEmptyStateLinkClickHandlerin interfaceJmixEnhancedTable
-
getMinHeight
- Specified by:
getMinHeightin interfaceJmixEnhancedTable
-
getMinHeightSizeUnit
@Nullable public com.vaadin.server.Sizeable.Unit getMinHeightSizeUnit()- Specified by:
getMinHeightSizeUnitin interfaceJmixEnhancedTable
-
setMinHeight
- Specified by:
setMinHeightin interfaceJmixEnhancedTable
-
getMinWidth
- Specified by:
getMinWidthin interfaceJmixEnhancedTable
-
getMinWidthSizeUnit
@Nullable public com.vaadin.server.Sizeable.Unit getMinWidthSizeUnit()- Specified by:
getMinWidthSizeUnitin interfaceJmixEnhancedTable
-
setMinWidth
- Specified by:
setMinWidthin interfaceJmixEnhancedTable
-
getHtmlAttributesExtension
-
updateColumnDescriptions
protected void updateColumnDescriptions() -
updateAggregatableTooltips
protected void updateAggregatableTooltips() -
createOrderedWrapper
protected com.vaadin.v7.data.Container createOrderedWrapper(com.vaadin.v7.data.Container newDataSource) - Overrides:
createOrderedWrapperin classcom.vaadin.v7.ui.Table
-
setBeforePaintListener
- Specified by:
setBeforePaintListenerin interfaceJmixEnhancedTable
-
paintContent
public void paintContent(com.vaadin.server.PaintTarget target) throws com.vaadin.server.PaintException - Specified by:
paintContentin interfacecom.vaadin.ui.LegacyComponent- Overrides:
paintContentin classcom.vaadin.v7.ui.Table- Throws:
com.vaadin.server.PaintException
-
fireValueChange
protected void fireValueChange(boolean repaintIsNotNeeded) - Overrides:
fireValueChangein classcom.vaadin.v7.ui.AbstractField<Object>
-
getAfterUnregisterComponentHandler
- Specified by:
getAfterUnregisterComponentHandlerin interfaceJmixEnhancedTable
-
setAfterUnregisterComponentHandler
public void setAfterUnregisterComponentHandler(Consumer<com.vaadin.ui.Component> afterUnregisterComponentHandler) - Specified by:
setAfterUnregisterComponentHandlerin interfaceJmixEnhancedTable
-
unregisterComponent
protected void unregisterComponent(com.vaadin.ui.Component component) - Overrides:
unregisterComponentin classcom.vaadin.v7.ui.Table
-
getBeforeRefreshRowCacheHandler
- Specified by:
getBeforeRefreshRowCacheHandlerin interfaceJmixEnhancedTable
-
setBeforeRefreshRowCacheHandler
- Specified by:
setBeforeRefreshRowCacheHandlerin interfaceJmixEnhancedTable
-
refreshRowCache
public void refreshRowCache()- Overrides:
refreshRowCachein classcom.vaadin.v7.ui.Table
-
setSortOptions
Description copied from interface:JmixEnhancedTableSets column id to sort and sorting direction. It doesn't invoke sorting after setting parameters.- Specified by:
setSortOptionsin interfaceJmixEnhancedTable- Parameters:
propertyId- column idsortAscending- sort ascending option
-
findItemIndex
- Overrides:
findItemIndexin classcom.vaadin.v7.ui.Table
-
updateNewIndexOnLastPage
protected int updateNewIndexOnLastPage(int newIndex, int indexOnLastPage) - Overrides:
updateNewIndexOnLastPagein classcom.vaadin.v7.ui.Table
-