Package io.jmix.ui.widget
Interface JmixEnhancedTable
- All Superinterfaces:
AggregationContainer
,com.vaadin.v7.data.Container
,Serializable
- All Known Implementing Classes:
GroupTableImpl.JmixGroupTableExt
,JmixGroupTable
,JmixTable
,JmixTreeTable
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static enum
static interface
Receives the events if the user clicks on text in a cell or the 'maxTextLength' is set for column cell.static interface
static interface
Marker interface for generated columns which return String value.static interface
static class
An event is fired when the user clicks inside the table cell.static interface
Receives the events when the user clicks on a cell.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.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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAggregationEditableColumn
(Object columnId) void
addTableCellClickListener
(Object propertyId, JmixEnhancedTable.TableCellClickListener listener) boolean
void
enableContentBufferRefreshing
(boolean refreshContent) Consumer<com.vaadin.ui.Component>
getAggregationDescription
(Object columnId) boolean
getColumnCaptionAsHtml
(Object columnId) getColumnDescription
(Object columnId) boolean
getColumnSortable
(Object columnId) boolean
Object[]
getItemByRowKey
(String rowKey) com.vaadin.server.Sizeable.Unit
com.vaadin.server.Sizeable.Unit
com.vaadin.ui.Component
void
void
boolean
boolean
boolean
isColumnEditable
(Object columnId) boolean
boolean
boolean
boolean
void
void
removeTableCellClickListener
(Object propertyId) void
requestFocus
(Object itemId, Object columnId) void
setAfterUnregisterComponentHandler
(Consumer<com.vaadin.ui.Component> afterUnregisterComponentHandler) void
setAggregatable
(boolean aggregatable) void
setAggregationDescription
(Object columnId, String description) 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 cellValueFormatter) void
setCustomPopupAutoClose
(boolean popupAutoClose) void
setDeselectAllLabel
(String deselectAllLabel) 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) Methods inherited from interface io.jmix.ui.widget.data.AggregationContainer
addContainerPropertyAggregation, aggregate, aggregateValues, getAggregationPropertyIds, removeContainerPropertyAggregation
Methods inherited from interface com.vaadin.v7.data.Container
addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeContainerProperty, removeItem, size
-
Method Details
-
setContextMenuPopup
void setContextMenuPopup(com.vaadin.ui.Layout contextMenu) -
hideContextMenuPopup
void hideContextMenuPopup() -
getPresentationsLayout
@Nullable com.vaadin.ui.Component getPresentationsLayout() -
setPresentationsLayout
void setPresentationsLayout(com.vaadin.ui.Component presentations) -
hidePresentationsPopup
void hidePresentationsPopup() -
getEditableColumns
Object[] getEditableColumns() -
setEditableColumns
-
getSortDescendingLabel
String getSortDescendingLabel() -
setSortDescendingLabel
-
getSortAscendingLabel
String getSortAscendingLabel() -
setSortAscendingLabel
-
getSortResetLabel
String getSortResetLabel() -
setSortResetLabel
-
getSelectAllLabel
String getSelectAllLabel() -
setSelectAllLabel
-
getDeselectAllLabel
String getDeselectAllLabel() -
setDeselectAllLabel
-
isColumnEditable
-
setMultiLineCells
void setMultiLineCells(boolean multiLineCells) -
isMultiLineCells
boolean isMultiLineCells() -
isContextMenuEnabled
boolean isContextMenuEnabled() -
setContextMenuEnabled
void setContextMenuEnabled(boolean contextMenuEnabled) -
isTextSelectionEnabled
boolean isTextSelectionEnabled() -
setTextSelectionEnabled
void setTextSelectionEnabled(boolean textSelectionEnabled) -
disableContentBufferRefreshing
boolean disableContentBufferRefreshing() -
enableContentBufferRefreshing
void enableContentBufferRefreshing(boolean refreshContent) -
isAutowirePropertyDsForFields
boolean isAutowirePropertyDsForFields() -
setAutowirePropertyDsForFields
void setAutowirePropertyDsForFields(boolean autowirePropertyDsForFields) -
refreshCellStyles
void refreshCellStyles() -
isAggregatable
boolean isAggregatable() -
setAggregatable
void setAggregatable(boolean aggregatable) -
setAggregationStyle
-
getAggregationStyle
JmixEnhancedTable.AggregationStyle getAggregationStyle() -
isShowTotalAggregation
boolean isShowTotalAggregation() -
setShowTotalAggregation
void setShowTotalAggregation(boolean showTotalAggregation) -
addTableCellClickListener
void addTableCellClickListener(Object propertyId, JmixEnhancedTable.TableCellClickListener listener) -
removeTableCellClickListener
-
showCustomPopup
void showCustomPopup(com.vaadin.ui.Component popupComponent) -
getCustomPopupAutoClose
boolean getCustomPopupAutoClose() -
setCustomPopupAutoClose
void setCustomPopupAutoClose(boolean popupAutoClose) -
getColumnDescription
-
setColumnDescription
-
getAggregationDescription
-
setAggregationDescription
-
getColumnSortable
-
setColumnSortable
-
requestFocus
-
getIconProvider
-
setIconProvider
-
setSpecificVariablesHandler
-
getSpecificVariablesHandler
JmixEnhancedTable.SpecificVariablesHandler getSpecificVariablesHandler() -
getAfterUnregisterComponentHandler
Consumer<com.vaadin.ui.Component> getAfterUnregisterComponentHandler() -
setAfterUnregisterComponentHandler
void setAfterUnregisterComponentHandler(Consumer<com.vaadin.ui.Component> afterUnregisterComponentHandler) -
getBeforeRefreshRowCacheHandler
Runnable getBeforeRefreshRowCacheHandler() -
setBeforeRefreshRowCacheHandler
-
addAggregationEditableColumn
-
setAggregationDistributionProvider
void setAggregationDistributionProvider(Function<JmixEnhancedTable.AggregationInputValueChangeContext, Boolean> distributionProvider) -
getAggregationDistributionProvider
Function<JmixEnhancedTable.AggregationInputValueChangeContext,Boolean> getAggregationDistributionProvider() -
setSortOptions
Sets column id to sort and sorting direction. It doesn't invoke sorting after setting parameters.- Parameters:
propertyId
- column idsortAscending
- sort ascending option
-
setBeforePaintListener
-
setCustomCellValueFormatter
-
getCustomCellValueFormatter
-
setColumnCaptionAsHtml
Sets whether caption of column with the givencolumnId
should be interpreted as HTML or not.- Parameters:
columnId
- column idcaptionAsHtml
- interpret caption as HTML or not
-
getColumnCaptionAsHtml
- Parameters:
columnId
- column id- Returns:
- whether caption of column with the given
columnId
should be interpreted as HTML or not
-
getItemByRowKey
- Parameters:
rowKey
- row index in the table- Returns:
- item
-
setShowEmptyState
void setShowEmptyState(boolean show) -
setEmptyStateMessage
-
getEmptyStateMessage
-
setEmptyStateLinkMessage
-
getEmptyStateLinkMessage
-
setEmptyStateLinkClickHandler
-
getMinHeight
-
getMinHeightSizeUnit
@Nullable com.vaadin.server.Sizeable.Unit getMinHeightSizeUnit() -
setMinHeight
-
getMinWidth
-
getMinWidthSizeUnit
@Nullable com.vaadin.server.Sizeable.Unit getMinWidthSizeUnit() -
setMinWidth
-