public interface GroupTable<E extends Entity> extends Table<E>
Modifier and Type | Interface and Description |
---|---|
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.AggregationStyle, Table.CellClickListener, Table.Column, Table.ColumnAlignment, Table.ColumnCollapseListener, Table.ColumnGenerator<E extends Entity>, Table.PlainTextCell, Table.Printable<E extends Entity,P>, Table.PrintableColumnGenerator<E extends Entity,P>, Table.RowHeaderMode, Table.SortDirection, Table.SortInfo, Table.StyleProvider<E extends Entity>
ListComponent.IconProvider<E extends Entity>
Component.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.ContextHelpIconClickEvent, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasContextHelp, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasOptionsStyleProvider, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OptionsStyleProvider, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.Wrapper
LookupComponent.LookupSelectionChangeEvent, LookupComponent.LookupSelectionChangeListener, LookupComponent.LookupSelectionChangeNotifier
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, 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.
|
boolean |
getColumnGroupAllowed(java.lang.String columnId) |
boolean |
getColumnGroupAllowed(Table.Column column) |
GroupDatasource |
getDatasource() |
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() |
void |
setColumnGroupAllowed(java.lang.String columnId,
boolean allowed) |
void |
setColumnGroupAllowed(Table.Column column,
boolean allowed) |
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.
|
addAggregationProperty, addAggregationProperty, addColumn, addColumnCollapsedListener, addGeneratedColumn, addGeneratedColumn, addPrintable, addStyleProvider, addValidator, addValidator, getAggregationResults, getAggregationStyle, getColumn, getColumnControlVisible, getColumnReorderingAllowed, getColumns, getColumnSortable, getColumnSortable, getEnterPressAction, getItemClickAction, getItemDatasource, getNotCollapsedColumns, getPrintable, getPrintable, getRowHeaderWidth, getSortInfo, isAggregatable, isColumnHeaderVisible, isContextMenuEnabled, isMultiLineCells, isShowSelection, isShowTotalAggregation, isSortable, isTextSelectionEnabled, refresh, removeAggregationProperty, removeClickListener, removeColumn, removeColumnCollapseListener, removeGeneratedColumn, removePrintable, removeStyleProvider, repaint, requestFocus, scrollTo, selectAll, setAggregatable, setAggregationStyle, setClickListener, setColumnAlignment, setColumnAlignment, setColumnCaption, setColumnCaption, setColumnCollapsed, setColumnCollapsed, setColumnControlVisible, setColumnDescription, setColumnDescription, setColumnHeaderVisible, setColumnReorderingAllowed, setColumnSortable, setColumnSortable, setColumnWidth, setColumnWidth, setContextMenuEnabled, setDatasource, setEnterPressAction, setIconProvider, setItemClickAction, 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, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
isEditable, isEditableWithParent, setEditable
getButtonsPanel, setButtonsPanel
applyPresentation, applyPresentationAsDefault, getDefaultPresentationId, getPresentations, isUsePresentations, loadPresentations, resetPresentation, usePresentations
applySettings, isSettingsEnabled, saveSettings, setSettingsEnabled
getCaption, getDescription, setCaption, setDescription
getIcon, setIcon, setIconFromSet
getRowsCount, setRowsCount
getLookupSelectedItems, setLookupSelectHandler
getTabIndex, isFocusable, setFocusable, setTabIndex
static final java.lang.String NAME
GroupDatasource getDatasource()
getDatasource
in interface ListComponent<E extends Entity>
void 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()
boolean getColumnGroupAllowed(java.lang.String columnId)
void setColumnGroupAllowed(java.lang.String columnId, boolean allowed)
boolean getColumnGroupAllowed(Table.Column column)
void setColumnGroupAllowed(Table.Column column, boolean allowed)
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