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.TableTransferable
Nested 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.VerticalLocationIs
Nested classes/interfaces inherited from class com.vaadin.v7.ui.AbstractField
com.vaadin.v7.ui.AbstractField.FocusShortcut, com.vaadin.v7.ui.AbstractField.ReadOnlyStatusChangeEvent
Nested classes/interfaces inherited from class com.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler
Nested classes/interfaces inherited from interface io.jmix.ui.widget.data.AggregationContainer
AggregationContainer.Context, AggregationContainer.Type
Nested classes/interfaces inherited from interface com.vaadin.v7.data.Buffered
com.vaadin.v7.data.Buffered.SourceException
Nested 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.DetachListener
Nested 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.Listener
Nested classes/interfaces inherited from interface com.vaadin.ui.Component.HasContextHelp
com.vaadin.ui.Component.HasContextHelp.ContextHelpIconClickEvent, com.vaadin.ui.Component.HasContextHelp.ContextHelpIconClickListener
Nested 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.Viewer
Nested classes/interfaces inherited from interface com.vaadin.v7.ui.Field
com.vaadin.v7.ui.Field.ValueChangeEvent
Nested classes/interfaces inherited from interface com.vaadin.ui.HasChildMeasurementHint
com.vaadin.ui.HasChildMeasurementHint.ChildMeasurementHint
Nested 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.ComponentDetachListener
Nested 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.TableCellClickListener
Nested 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.Viewer
Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable
com.vaadin.server.Sizeable.Unit
-
Field Summary
Modifier and TypeFieldDescriptionprotected Consumer<com.vaadin.ui.Component>
protected JmixEnhancedTable.AggregationStyle
protected boolean
protected Runnable
protected Runnable
protected Map<Object,
JmixEnhancedTable.TableCellClickListener> protected JmixEnhancedTable.CellValueFormatter
protected Runnable
protected Object
protected Object
protected String
protected HtmlAttributesExtension
protected com.vaadin.event.ActionManager
Keeps track of the ShortcutListeners added to this component, and manages the painting and handling as well.protected boolean
protected com.vaadin.shared.Registration
Fields 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, sortContainerPropertyId
Fields 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, resetValueToNullOnContainerChange
Fields inherited from class com.vaadin.ui.AbstractComponent
componentErrorProvider, DESIGN_ATTR_PLAIN_TEXT
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAggregationEditableColumn
(Object columnId) void
addContainerPropertyAggregation
(Object propertyId, AggregationContainer.Type type) void
addGeneratedColumn
(Object id, com.vaadin.v7.ui.Table.ColumnGenerator generatedColumn) com.vaadin.shared.Registration
addShortcutListener
(com.vaadin.event.ShortcutListener shortcut) void
addTableCellClickListener
(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.void
beforeClientResponse
(boolean initial) void
changeVariables
(Object source, Map<String, Object> variables) protected boolean
changeVariables
(Map<String, Object> variables) protected com.vaadin.v7.data.Container
createOrderedWrapper
(com.vaadin.v7.data.Container newDataSource) boolean
void
enableContentBufferRefreshing
(boolean refreshContent) protected int
findItemIndex
(Object currentPageFirstItemId) protected void
fireValueChange
(boolean repaintIsNotNeeded) protected String
formatPropertyValue
(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) boolean
getColumnCaptionAsHtml
(Object columnId) getColumnDescription
(Object columnId) boolean
getColumnSortable
(Object columnId) boolean
Object[]
protected HtmlAttributesExtension
getItemByRowKey
(String rowKey) com.vaadin.server.Resource
getItemIcon
(Object itemId) com.vaadin.server.Sizeable.Unit
com.vaadin.server.Sizeable.Unit
com.vaadin.ui.Component
protected Object
getPropertyValue
(Object rowId, Object colId, com.vaadin.v7.data.Property property) Collection<?>
protected JmixTableState
getState()
protected JmixTableState
getState
(boolean markAsDirty) protected void
handleAggregationGroupInputChange
(String columnKey, String groupKey, String value, boolean isFocused) void
void
boolean
boolean
boolean
isColumnEditable
(Object columnId) protected boolean
isColumnEditable
(Object columnId, boolean editable) boolean
boolean
boolean
boolean
Iterator<com.vaadin.ui.Component>
iterator()
protected void
protected void
paintActions
(com.vaadin.server.PaintTarget target, Set<com.vaadin.event.Action> actionSet) protected void
paintAdditionalData
(com.vaadin.server.PaintTarget target) protected void
paintAggregationRow
(com.vaadin.server.PaintTarget target, Map<Object, Object> aggregations) void
paintContent
(com.vaadin.server.PaintTarget target) protected void
paintEditableAggregationColumns
(com.vaadin.server.PaintTarget target) void
void
boolean
removeContainerProperty
(Object propertyId) void
removeContainerPropertyAggregation
(Object propertyId) void
removeShortcutListener
(com.vaadin.event.ShortcutListener shortcut) void
removeTableCellClickListener
(Object propertyId) void
requestFocus
(Object itemId, Object columnId) void
void
setAfterUnregisterComponentHandler
(Consumer<com.vaadin.ui.Component> afterUnregisterComponentHandler) void
setAggregatable
(boolean aggregatable) void
setAggregationDescription
(Object columnId, String tooltip) void
setAggregationDistributionProvider
(Function<JmixEnhancedTable.AggregationInputValueChangeContext, Boolean> distributionProvider) void
setAggregationStyle
(JmixEnhancedTable.AggregationStyle aggregationStyle) void
setAutowirePropertyDsForFields
(boolean autowirePropertyDsForFields) void
setBeforePaintListener
(Runnable beforePaintListener) void
setBeforeRefreshRowCacheHandler
(Runnable beforeRefreshRowCacheHandler) void
setColumnCaptionAsHtml
(Object columnId, boolean captionAsHtml) Sets whether caption of column with the givencolumnId
should be interpreted as HTML or not.void
setColumnDescription
(Object columnId, String description) void
setColumnSortable
(Object columnId, boolean sortable) void
setContextMenuEnabled
(boolean contextMenuEnabled) void
setContextMenuPopup
(com.vaadin.ui.Layout contextMenu) void
setCustomCellValueFormatter
(JmixEnhancedTable.CellValueFormatter customCellValueFormatter) void
setCustomPopupAutoClose
(boolean popupAutoClose) void
setDeselectAllLabel
(String deselectAllLabel) void
setEditable
(boolean editable) void
setEditableColumns
(Object[] editableColumns) void
setEmptyStateLinkClickHandler
(Runnable handler) void
setEmptyStateLinkMessage
(String linkMessage) void
setEmptyStateMessage
(String message) void
setIconProvider
(Function<Object, com.vaadin.server.Resource> iconProvider) void
setMinHeight
(String minHeight) void
setMinWidth
(String minWidth) void
setMultiLineCells
(boolean multiLineCells) void
setPresentationsLayout
(com.vaadin.ui.Component presentations) void
setSelectAllLabel
(String selectAllLabel) void
setShowEmptyState
(boolean show) void
setShowTotalAggregation
(boolean showTotalAggregation) void
setSortAscendingLabel
(String tableSortAscendingLabel) void
setSortDescendingLabel
(String tableSortDescendingLabel) void
setSortOptions
(Object propertyId, boolean sortAscending) Sets column id to sort and sorting direction.void
setSortResetLabel
(String tableSortResetLabel) void
void
setTextSelectionEnabled
(boolean textSelectionEnabled) void
showCustomPopup
(com.vaadin.ui.Component popupComponent) protected void
unregisterComponent
(com.vaadin.ui.Component component) protected void
protected void
protected void
protected void
protected void
protected int
updateNewIndexOnLastPage
(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, writeItems
Methods 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, unselect
Methods 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, validate
Methods inherited from class com.vaadin.v7.ui.AbstractLegacyComponent
getExplicitImmediateValue, isImmediate, setImmediate
Methods 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, setWidthUndefined
Methods 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, updateDiffstate
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, removeAttachListener, removeDetachListener, removeExtension, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
Methods 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, setStyleName
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
Methods inherited from interface com.vaadin.v7.data.Container
addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeItem, size
Methods inherited from interface com.vaadin.v7.data.Container.Ordered
addItemAfter, addItemAfter, firstItemId, isFirstId, isLastId, lastItemId, nextItemId, prevItemId
Methods inherited from interface com.vaadin.v7.data.Container.Sortable
sort
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface com.vaadin.server.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefined
Methods 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:
getState
in classcom.vaadin.v7.ui.Table
-
getState
- Overrides:
getState
in classcom.vaadin.v7.ui.Table
-
getPresentationsLayout
public com.vaadin.ui.Component getPresentationsLayout()- Specified by:
getPresentationsLayout
in interfaceJmixEnhancedTable
-
setPresentationsLayout
public void setPresentationsLayout(com.vaadin.ui.Component presentations) - Specified by:
setPresentationsLayout
in interfaceJmixEnhancedTable
-
hidePresentationsPopup
public void hidePresentationsPopup()- Specified by:
hidePresentationsPopup
in interfaceJmixEnhancedTable
-
setContextMenuPopup
public void setContextMenuPopup(com.vaadin.ui.Layout contextMenu) - Specified by:
setContextMenuPopup
in interfaceJmixEnhancedTable
-
hideContextMenuPopup
public void hideContextMenuPopup()- Specified by:
hideContextMenuPopup
in interfaceJmixEnhancedTable
-
isTextSelectionEnabled
public boolean isTextSelectionEnabled()- Specified by:
isTextSelectionEnabled
in interfaceJmixEnhancedTable
-
setTextSelectionEnabled
public void setTextSelectionEnabled(boolean textSelectionEnabled) - Specified by:
setTextSelectionEnabled
in interfaceJmixEnhancedTable
-
setSortResetLabel
- Specified by:
setSortResetLabel
in interfaceJmixEnhancedTable
-
getSortResetLabel
- Specified by:
getSortResetLabel
in interfaceJmixEnhancedTable
-
setSortAscendingLabel
- Specified by:
setSortAscendingLabel
in interfaceJmixEnhancedTable
-
getSortAscendingLabel
- Specified by:
getSortAscendingLabel
in interfaceJmixEnhancedTable
-
setSortDescendingLabel
- Specified by:
setSortDescendingLabel
in interfaceJmixEnhancedTable
-
getSelectAllLabel
- Specified by:
getSelectAllLabel
in interfaceJmixEnhancedTable
-
setSelectAllLabel
- Specified by:
setSelectAllLabel
in interfaceJmixEnhancedTable
-
getDeselectAllLabel
- Specified by:
getDeselectAllLabel
in interfaceJmixEnhancedTable
-
setDeselectAllLabel
- Specified by:
setDeselectAllLabel
in interfaceJmixEnhancedTable
-
getSortDescendingLabel
- Specified by:
getSortDescendingLabel
in interfaceJmixEnhancedTable
-
disableContentBufferRefreshing
public boolean disableContentBufferRefreshing()- Specified by:
disableContentBufferRefreshing
in interfaceJmixEnhancedTable
-
enableContentBufferRefreshing
public void enableContentBufferRefreshing(boolean refreshContent) - Specified by:
enableContentBufferRefreshing
in interfaceJmixEnhancedTable
-
getPropertyValue
- Overrides:
getPropertyValue
in classcom.vaadin.v7.ui.Table
-
isAutowirePropertyDsForFields
public boolean isAutowirePropertyDsForFields()- Specified by:
isAutowirePropertyDsForFields
in interfaceJmixEnhancedTable
-
setAutowirePropertyDsForFields
public void setAutowirePropertyDsForFields(boolean autowirePropertyDsForFields) - Specified by:
setAutowirePropertyDsForFields
in interfaceJmixEnhancedTable
-
isContextMenuEnabled
public boolean isContextMenuEnabled()- Specified by:
isContextMenuEnabled
in interfaceJmixEnhancedTable
-
setContextMenuEnabled
public void setContextMenuEnabled(boolean contextMenuEnabled) - Specified by:
setContextMenuEnabled
in interfaceJmixEnhancedTable
-
setMultiLineCells
public void setMultiLineCells(boolean multiLineCells) - Specified by:
setMultiLineCells
in interfaceJmixEnhancedTable
-
isMultiLineCells
public boolean isMultiLineCells()- Specified by:
isMultiLineCells
in interfaceJmixEnhancedTable
-
getCustomCellValueFormatter
- Specified by:
getCustomCellValueFormatter
in interfaceJmixEnhancedTable
-
setCustomCellValueFormatter
public void setCustomCellValueFormatter(@Nullable JmixEnhancedTable.CellValueFormatter customCellValueFormatter) - Specified by:
setCustomCellValueFormatter
in interfaceJmixEnhancedTable
-
updateHtmlCaptionColumns
protected void updateHtmlCaptionColumns() -
setColumnCaptionAsHtml
Description copied from interface:JmixEnhancedTable
Sets whether caption of column with the givencolumnId
should be interpreted as HTML or not.- Specified by:
setColumnCaptionAsHtml
in interfaceJmixEnhancedTable
- Parameters:
columnId
- column idcaptionAsHtml
- interpret caption as HTML or not
-
getColumnCaptionAsHtml
- Specified by:
getColumnCaptionAsHtml
in interfaceJmixEnhancedTable
- Parameters:
columnId
- column id- Returns:
- whether caption of column with the given
columnId
should be interpreted as HTML or not
-
formatPropertyValue
protected String formatPropertyValue(Object rowId, Object colId, com.vaadin.v7.data.Property<?> property) - Overrides:
formatPropertyValue
in classcom.vaadin.v7.ui.Table
-
changeVariables
- Specified by:
changeVariables
in interfacecom.vaadin.server.VariableOwner
- Overrides:
changeVariables
in classcom.vaadin.v7.ui.Table
-
getEditableColumns
- Specified by:
getEditableColumns
in interfaceJmixEnhancedTable
-
setEditableColumns
- Specified by:
setEditableColumns
in interfaceJmixEnhancedTable
-
isColumnEditable
- Overrides:
isColumnEditable
in classcom.vaadin.v7.ui.Table
-
isColumnEditable
- Specified by:
isColumnEditable
in interfaceJmixEnhancedTable
-
addGeneratedColumn
- Overrides:
addGeneratedColumn
in classcom.vaadin.v7.ui.Table
-
setEditable
public void setEditable(boolean editable) - Overrides:
setEditable
in classcom.vaadin.v7.ui.Table
-
addShortcutListener
public com.vaadin.shared.Registration addShortcutListener(com.vaadin.event.ShortcutListener shortcut) - Specified by:
addShortcutListener
in interfacecom.vaadin.event.Action.ShortcutNotifier
- Overrides:
addShortcutListener
in classcom.vaadin.ui.AbstractComponent
-
removeShortcutListener
public void removeShortcutListener(com.vaadin.event.ShortcutListener shortcut) - Specified by:
removeShortcutListener
in interfacecom.vaadin.event.Action.ShortcutNotifier
- Overrides:
removeShortcutListener
in 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:
paintActions
in classcom.vaadin.v7.ui.Table
- Throws:
com.vaadin.server.PaintException
-
changeVariables
- Overrides:
changeVariables
in classcom.vaadin.v7.ui.Table
-
setSpecificVariablesHandler
- Specified by:
setSpecificVariablesHandler
in interfaceJmixEnhancedTable
-
getSpecificVariablesHandler
- Specified by:
getSpecificVariablesHandler
in interfaceJmixEnhancedTable
-
resetSortOrder
public void resetSortOrder()- Specified by:
resetSortOrder
in interfaceTableSortableContainer
-
getItemIcon
- Overrides:
getItemIcon
in classcom.vaadin.v7.ui.AbstractSelect
-
getIconProvider
- Specified by:
getIconProvider
in interfaceJmixEnhancedTable
-
setIconProvider
- Specified by:
setIconProvider
in interfaceJmixEnhancedTable
-
iterator
-
refreshCellStyles
public void refreshCellStyles()- Specified by:
refreshCellStyles
in interfaceJmixEnhancedTable
-
removeContainerProperty
- Specified by:
removeContainerProperty
in interfacecom.vaadin.v7.data.Container
- Overrides:
removeContainerProperty
in classcom.vaadin.v7.ui.Table
- Throws:
UnsupportedOperationException
-
isAggregatable
public boolean isAggregatable()- Specified by:
isAggregatable
in interfaceJmixEnhancedTable
-
setAggregatable
public void setAggregatable(boolean aggregatable) - Specified by:
setAggregatable
in interfaceJmixEnhancedTable
-
getAggregationStyle
- Specified by:
getAggregationStyle
in interfaceJmixEnhancedTable
-
setAggregationStyle
- Specified by:
setAggregationStyle
in interfaceJmixEnhancedTable
-
isShowTotalAggregation
public boolean isShowTotalAggregation()- Specified by:
isShowTotalAggregation
in interfaceJmixEnhancedTable
-
setShowTotalAggregation
public void setShowTotalAggregation(boolean showTotalAggregation) - Specified by:
setShowTotalAggregation
in interfaceJmixEnhancedTable
-
getAggregationPropertyIds
- Specified by:
getAggregationPropertyIds
in interfaceAggregationContainer
-
addContainerPropertyAggregation
- Specified by:
addContainerPropertyAggregation
in interfaceAggregationContainer
-
removeContainerPropertyAggregation
- Specified by:
removeContainerPropertyAggregation
in interfaceAggregationContainer
-
aggregate
Description copied from interface:AggregationContainer
Perform aggregation and return map with formatted string values.- Specified by:
aggregate
in interfaceAggregationContainer
- Parameters:
context
- aggregation context- Returns:
- map with aggregation info and formatted string values
-
aggregateValues
Description copied from interface:AggregationContainer
Perform 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:
aggregateValues
in 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:
paintAdditionalData
in 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:
addAggregationEditableColumn
in interfaceJmixEnhancedTable
-
setAggregationDistributionProvider
public void setAggregationDistributionProvider(Function<JmixEnhancedTable.AggregationInputValueChangeContext, Boolean> distributionProvider) - Specified by:
setAggregationDistributionProvider
in interfaceJmixEnhancedTable
-
getAggregationDistributionProvider
public Function<JmixEnhancedTable.AggregationInputValueChangeContext,Boolean> getAggregationDistributionProvider()- Specified by:
getAggregationDistributionProvider
in interfaceJmixEnhancedTable
-
handleAggregationGroupInputChange
-
addTableCellClickListener
public void addTableCellClickListener(Object propertyId, JmixEnhancedTable.TableCellClickListener listener) - Specified by:
addTableCellClickListener
in interfaceJmixEnhancedTable
-
onTableCellClick
-
removeTableCellClickListener
- Specified by:
removeTableCellClickListener
in interfaceJmixEnhancedTable
-
getColumnSortable
- Specified by:
getColumnSortable
in interfaceJmixEnhancedTable
-
setColumnSortable
- Specified by:
setColumnSortable
in interfaceJmixEnhancedTable
-
requestFocus
- Specified by:
requestFocus
in interfaceJmixEnhancedTable
-
getSortableContainerPropertyIds
- Specified by:
getSortableContainerPropertyIds
in interfacecom.vaadin.v7.data.Container.Sortable
- Overrides:
getSortableContainerPropertyIds
in classcom.vaadin.v7.ui.Table
-
beforeClientResponse
public void beforeClientResponse(boolean initial) - Specified by:
beforeClientResponse
in interfacecom.vaadin.server.ClientConnector
- Overrides:
beforeClientResponse
in classcom.vaadin.v7.ui.Table
-
getItemByRowKey
- Specified by:
getItemByRowKey
in 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:
showCustomPopup
in interfaceJmixEnhancedTable
-
getCustomPopupAutoClose
public boolean getCustomPopupAutoClose()- Specified by:
getCustomPopupAutoClose
in interfaceJmixEnhancedTable
-
setCustomPopupAutoClose
public void setCustomPopupAutoClose(boolean popupAutoClose) - Specified by:
setCustomPopupAutoClose
in interfaceJmixEnhancedTable
-
setColumnDescription
- Specified by:
setColumnDescription
in interfaceJmixEnhancedTable
-
getColumnDescription
- Specified by:
getColumnDescription
in interfaceJmixEnhancedTable
-
setAggregationDescription
- Specified by:
setAggregationDescription
in interfaceJmixEnhancedTable
-
getAggregationDescription
- Specified by:
getAggregationDescription
in interfaceJmixEnhancedTable
-
setShowEmptyState
public void setShowEmptyState(boolean show) - Specified by:
setShowEmptyState
in interfaceJmixEnhancedTable
-
setEmptyStateMessage
- Specified by:
setEmptyStateMessage
in interfaceJmixEnhancedTable
-
getEmptyStateMessage
- Specified by:
getEmptyStateMessage
in interfaceJmixEnhancedTable
-
setEmptyStateLinkMessage
- Specified by:
setEmptyStateLinkMessage
in interfaceJmixEnhancedTable
-
getEmptyStateLinkMessage
- Specified by:
getEmptyStateLinkMessage
in interfaceJmixEnhancedTable
-
setEmptyStateLinkClickHandler
- Specified by:
setEmptyStateLinkClickHandler
in interfaceJmixEnhancedTable
-
getMinHeight
- Specified by:
getMinHeight
in interfaceJmixEnhancedTable
-
getMinHeightSizeUnit
@Nullable public com.vaadin.server.Sizeable.Unit getMinHeightSizeUnit()- Specified by:
getMinHeightSizeUnit
in interfaceJmixEnhancedTable
-
setMinHeight
- Specified by:
setMinHeight
in interfaceJmixEnhancedTable
-
getMinWidth
- Specified by:
getMinWidth
in interfaceJmixEnhancedTable
-
getMinWidthSizeUnit
@Nullable public com.vaadin.server.Sizeable.Unit getMinWidthSizeUnit()- Specified by:
getMinWidthSizeUnit
in interfaceJmixEnhancedTable
-
setMinWidth
- Specified by:
setMinWidth
in 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:
createOrderedWrapper
in classcom.vaadin.v7.ui.Table
-
setBeforePaintListener
- Specified by:
setBeforePaintListener
in interfaceJmixEnhancedTable
-
paintContent
public void paintContent(com.vaadin.server.PaintTarget target) throws com.vaadin.server.PaintException - Specified by:
paintContent
in interfacecom.vaadin.ui.LegacyComponent
- Overrides:
paintContent
in classcom.vaadin.v7.ui.Table
- Throws:
com.vaadin.server.PaintException
-
fireValueChange
protected void fireValueChange(boolean repaintIsNotNeeded) - Overrides:
fireValueChange
in classcom.vaadin.v7.ui.AbstractField<Object>
-
getAfterUnregisterComponentHandler
- Specified by:
getAfterUnregisterComponentHandler
in interfaceJmixEnhancedTable
-
setAfterUnregisterComponentHandler
public void setAfterUnregisterComponentHandler(Consumer<com.vaadin.ui.Component> afterUnregisterComponentHandler) - Specified by:
setAfterUnregisterComponentHandler
in interfaceJmixEnhancedTable
-
unregisterComponent
protected void unregisterComponent(com.vaadin.ui.Component component) - Overrides:
unregisterComponent
in classcom.vaadin.v7.ui.Table
-
getBeforeRefreshRowCacheHandler
- Specified by:
getBeforeRefreshRowCacheHandler
in interfaceJmixEnhancedTable
-
setBeforeRefreshRowCacheHandler
- Specified by:
setBeforeRefreshRowCacheHandler
in interfaceJmixEnhancedTable
-
refreshRowCache
public void refreshRowCache()- Overrides:
refreshRowCache
in classcom.vaadin.v7.ui.Table
-
setSortOptions
Description copied from interface:JmixEnhancedTable
Sets column id to sort and sorting direction. It doesn't invoke sorting after setting parameters.- Specified by:
setSortOptions
in interfaceJmixEnhancedTable
- Parameters:
propertyId
- column idsortAscending
- sort ascending option
-
findItemIndex
- Overrides:
findItemIndex
in classcom.vaadin.v7.ui.Table
-
updateNewIndexOnLastPage
protected int updateNewIndexOnLastPage(int newIndex, int indexOnLastPage) - Overrides:
updateNewIndexOnLastPage
in classcom.vaadin.v7.ui.Table
-