E
- row item typepublic interface GroupTable<E extends Entity> extends Table<E>
Modifier and Type | Interface and Description |
---|---|
static class |
GroupTable.GroupAggregationDistributionContext<V>
Object that contains information about group aggregation distribution.
|
static class |
GroupTable.GroupCellContext<E> |
static interface |
GroupTable.GroupCellValueFormatter<E> |
static interface |
GroupTable.GroupStyleProvider<E extends Entity>
Allows to define different styles for table cells.
|
Table.AggregationDistributionContext<E>, Table.AggregationDistributionProvider<E>, Table.AggregationStyle, Table.CellClickEvent<T extends Entity>, Table.CellClickListener<T extends Entity>, Table.Column<T extends Entity>, Table.ColumnAlignment, Table.ColumnCollapseEvent<E extends Entity>, Table.ColumnCollapseListener, Table.ColumnGenerator<E extends Entity>, Table.PlainTextCell, Table.Printable<E extends Entity,P>, Table.PrintableColumnGenerator<E extends Entity,P>, Table.RowHeaderMode, Table.SelectionEvent<E extends Entity>, Table.SortDirection, Table.SortInfo, Table.StyleProvider<E extends Entity>
ListComponent.IconProvider<E extends Entity>
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider, Component.Wrapper
HasContextHelp.ContextHelpIconClickEvent
LookupComponent.LookupSelectionChangeEvent<T extends Entity>, LookupComponent.LookupSelectionChangeNotifier<T extends Entity>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS
Modifier and Type | Method and Description |
---|---|
void |
collapse(GroupInfo groupId) |
void |
collapseAll() |
void |
expand(GroupInfo groupId) |
void |
expandAll() |
void |
expandPath(Entity item)
Expand all groups for specified item.
|
java.util.Map<java.lang.Object,java.lang.Object> |
getAggregationResults(GroupInfo info)
Returns a map with aggregation results for the given group info instance,
where keys are table column ids and values are aggregation value.
|
default GroupDatasource |
getDatasource()
Deprecated.
|
GroupTable.GroupCellValueFormatter<E> |
getGroupCellValueFormatter() |
void |
groupBy(java.lang.Object[] properties)
Performs grouping by the given
properties . |
void |
groupByColumns(java.lang.String... columnIds)
Performs grouping by the given ids of table columns.
|
boolean |
isExpanded(GroupInfo groupId) |
boolean |
isFixedGrouping() |
boolean |
isShowItemsCountForGroup() |
static <T extends Entity> |
of(java.lang.Class<T> itemClass) |
default void |
setDatasource(CollectionDatasource datasource)
Deprecated.
|
void |
setFixedGrouping(boolean fixedGrouping) |
void |
setGroupCellValueFormatter(GroupTable.GroupCellValueFormatter<E> formatter) |
void |
setShowItemsCountForGroup(boolean showItemsCountForGroup)
Show or hide items count for GroupTable groups.
|
void |
ungroup()
Resets grouping at all.
|
void |
ungroupByColumns(java.lang.String... columnIds)
Resets grouping by the given ids of table columns.
|
addColumn, addColumn, addColumnCollapsedListener, addColumnCollapseListener, addGeneratedColumn, addGeneratedColumn, addGeneratedColumn, addPrintable, addSelectionListener, addStyleProvider, addValidator, addValidator, getAggregationDistributionProvider, getAggregationResults, getAggregationStyle, getColumn, getColumnControlVisible, getColumnReorderingAllowed, getColumns, getEnterPressAction, getInstanceContainer, getItemClickAction, getItemDatasource, getItems, getNotCollapsedColumns, getPrintable, getPrintable, getRowHeaderWidth, getSortInfo, getSubPart, isAggregatable, isAutoScrolling, isColumnHeaderVisible, isContextMenuEnabled, isMultiLineCells, isShowSelection, isShowTotalAggregation, isSortable, isTextSelectionEnabled, refresh, removeClickListener, removeColumn, removeColumnCollapseListener, removeColumnCollapseListener, removeGeneratedColumn, removePrintable, removeStyleProvider, repaint, requestFocus, scrollTo, selectAll, setAggregatable, setAggregationDistributionProvider, setAggregationStyle, setAutoScrolling, setCellClickListener, setClickListener, setColumnControlVisible, setColumnHeaderVisible, setColumnReorderingAllowed, setContextMenuEnabled, setEnterPressAction, setIconProvider, setItemClickAction, setItems, setMultiLineCells, setMultiSelect, setRequired, setRowHeaderMode, setRowHeaderWidth, setShowSelection, setShowTotalAggregation, setSortable, setStyleProvider, setTextSelectionEnabled, showCustomPopup, showCustomPopupActions, sort, sortBy
getSelected, getSingleSelected, isMultiSelect, setSelected, setSelected
getFrame, setFrame
addAction, addAction, getAction, getActionNN, getActions, removeAction, removeAction, removeAllActions
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, getWidthUnits, isEnabled, isEnabledItself, isEnabledRecursive, isResponsive, isVisible, isVisibleItself, isVisibleRecursive, removeStyleName, requestFocus, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
isEditable, isEditableWithParent, setEditable
applyDataLoadingSettings
getButtonsPanel, setButtonsPanel
applyPresentation, applyPresentationAsDefault, getDefaultPresentationId, getPresentations, isUsePresentations, loadPresentations, resetPresentation, usePresentations
applySettings, isSettingsEnabled, saveSettings, setSettingsEnabled
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
getIcon, setIcon, setIconFromSet
getRowsCount, setRowsCount, setRowsCountTotalCountDelegate
getLookupSelectedItems, setLookupSelectHandler
focus, getTabIndex, isFocusable, setFocusable, setTabIndex
isCaptionAsHtml, setCaptionAsHtml
getCaption, setCaption
getDescription, setDescription
isDescriptionAsHtml, setDescriptionAsHtml
static final java.lang.String NAME
static <T extends Entity> com.google.common.reflect.TypeToken<GroupTable<T>> of(java.lang.Class<T> itemClass)
@Deprecated default GroupDatasource getDatasource()
getDatasource
in interface ListComponent<E extends Entity>
getDatasource
in interface Table<E extends Entity>
@Deprecated default void setDatasource(CollectionDatasource datasource)
setDatasource
in interface Table<E extends Entity>
datasource
- datasourcevoid groupBy(java.lang.Object[] properties)
properties
.properties
- an array of MetaPropertyPath
void groupByColumns(java.lang.String... columnIds)
columnIds
- column idsvoid ungroupByColumns(java.lang.String... columnIds)
columnIds
- column idsvoid ungroup()
GroupTable.GroupCellValueFormatter<E> getGroupCellValueFormatter()
void setGroupCellValueFormatter(GroupTable.GroupCellValueFormatter<E> formatter)
void expandAll()
void expand(GroupInfo groupId)
void expandPath(Entity item)
void collapseAll()
void collapse(GroupInfo groupId)
boolean isExpanded(GroupInfo groupId)
boolean isFixedGrouping()
void setFixedGrouping(boolean fixedGrouping)
boolean isShowItemsCountForGroup()
void setShowItemsCountForGroup(boolean showItemsCountForGroup)
java.util.Map<java.lang.Object,java.lang.Object> getAggregationResults(GroupInfo info)
info
- the group info instance