Package io.jmix.ui.component
Interface Table<E>
- Type Parameters:
E
- row item type
- All Superinterfaces:
ActionsHolder
,Component
,Component.BelongToFrame
,Component.Editable
,Component.Focusable
,Component.HasCaption
,Component.HasDescription
,Component.HasIcon
,HasButtonsPanel
,HasContextHelp
,HasHtmlCaption
,HasHtmlDescription
,HasHtmlSanitizer
,HasMinSize
,HasPagination
,HasSubParts
,HasTablePresentations
,ListComponent<E>
,LookupComponent<E>
- All Known Subinterfaces:
GroupTable<E>
,TreeTable<E>
- All Known Implementing Classes:
AbstractTable
,GroupTableImpl
,TableImpl
,TreeTableImpl
@StudioComponent(caption="Table",
category="Components",
xmlElement="table",
icon="io/jmix/ui/icon/component/table.svg",
canvasBehaviour=TABLE,
documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/components/table.html")
public interface Table<E>
extends ListComponent<E>, Component.Editable, HasButtonsPanel, HasTablePresentations, Component.HasCaption, HasContextHelp, Component.HasIcon, LookupComponent<E>, Component.Focusable, HasSubParts, HasHtmlCaption, HasHtmlDescription, HasHtmlSanitizer, HasPagination, HasMinSize
Table UI component bound to entity type.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Object that contains information about aggregation distribution.static interface
Allows to handle a group or total aggregation value changes.static enum
The location of the aggregation row.static interface
Table column.static enum
Column alignment.static class
Event sent every time column collapse state changes.static interface
Allows rendering of an arbitraryComponent
inside a table cell.static class
An event that is fired when a columns are reordered by the user.static class
Describes empty state link click event.static class
Special component for generated columns which will be rendered as simple text cell.static interface
Deprecated.Use export action APIs instead.static interface
Deprecated.Use export action APIs instead.static enum
Row header mode.static class
Event sent when the selection changes.static enum
Describes sorting direction.static class
Object that contains information about column sorting.static interface
Allows to define different styles for table cells.Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
Nested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEvent
Nested classes/interfaces inherited from interface io.jmix.ui.component.LookupComponent
LookupComponent.LookupSelectionChangeEvent<T>, LookupComponent.LookupSelectionChangeNotifier<T>
-
Field Summary
Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addColumn
(Table.Column<E> column) Adds the given column to Table.void
addColumn
(Table.Column<E> column, int index) Adds the given column at the specified index to Table.Creates new column with given Id, then adds this column to Table.Creates new column with given Id at the specified index, then adds this column to Table.addColumnCollapseListener
(Consumer<Table.ColumnCollapseEvent<E>> listener) Adds a listener for column collapse events.addColumnReorderListener
(Consumer<Table.ColumnReorderEvent<E>> listener) Registers a new column reorder listener.void
addGeneratedColumn
(String columnId, int index, Table.ColumnGenerator<? super E> generator) Adds a generated column at the specified index to Table.void
addGeneratedColumn
(String columnId, Table.ColumnGenerator<? super E> generator) Adds a generated column to the table.void
addGeneratedColumn
(String columnId, Table.ColumnGenerator<? super E> generator, Class<? extends Component> componentClass) Adds a generated column to the table.void
addPrintable
(String columnId, Table.Printable<? super E, ?> printable) Deprecated.Use export action APIs instead.addSelectionListener
(Consumer<Table.SelectionEvent<E>> listener) Registers a new selection listenervoid
addStyleProvider
(Table.StyleProvider<? super E> styleProvider) Add style provider for the table.
Table can use several providers to obtain many style names for cells and rows.Returns a map with aggregation results, where keys are table column ids and values are aggregation values.Returns a column by id.boolean
boolean
Returns whether column reordering is allowed.Returns a copy of currently configured columns in their current visual order in this Table.getInstanceContainer
(E item) This method returns the InstanceContainer which contains the provided item.BiFunction<? super E,
String, String> Gets the item description provider.getItems()
getPrintable
(Table.Column column) Deprecated.Use export action APIs instead.getPrintable
(String columnId) Deprecated.Use export action APIs instead.int
default Object
getSubPart
(String name) boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
static <T> org.springframework.core.ParameterizedTypeReference<Table<T>>
void
removeColumn
(Table.Column<E> column) Removes the given column from Table or do nothing if column isnull
.void
removeGeneratedColumn
(String columnId) Removes generated column from the Table by column id.void
removePrintable
(String columnId) Deprecated.Use export action APIs instead.void
removeStyleProvider
(Table.StyleProvider<? super E> styleProvider) Removes style provider for the table.void
repaint()
Repaints UI representation of the table (columns, generated columns) without refreshing the table data.void
requestFocus
(E entity, String columnId) Sets focus on inner field of editable/generated column.void
Scrolls table to specified row.void
Marks all the items in the current data source as selected.void
setAggregatable
(boolean aggregatable) Sets whether aggregation is enabled.void
setAggregationDistributionProvider
(Table.AggregationDistributionProvider<E> distributionProvider) Sets aggregation distribution provider to handle distribution of data on rows.void
setAggregationStyle
(Table.AggregationStyle aggregationStyle) Sets the location of the aggregation row.void
setColumnControlVisible
(boolean columnControlVisible) Sets whether user can hide columns using the columnControlButton dropdown on the right side of the table header.void
setColumnHeaderVisible
(boolean columnHeaderVisible) Sets whether table header is displayed.void
setColumnReorderingAllowed
(boolean columnReorderingAllowed) Sets whether or not column reordering is allowed.void
setContextMenuEnabled
(boolean contextMenuEnabled) Sets whether context menu is enabled.void
Sets click handler for link message.void
setEmptyStateLinkMessage
(String linkMessage) Sets a link message to the middle of Table body that should be appeared when Table is empty.void
setEmptyStateMessage
(String message) Sets a message to the middle of Table body that should be appeared when Table is empty.void
setEnterPressAction
(Action action) Assign action to be executed on Enter key press.void
setIconProvider
(Function<? super E, String> iconProvider) Sets the row icon provider for the Table.void
setItemClickAction
(Action action) Assign action to be executed on double click inside a table row.void
setItemDescriptionProvider
(BiFunction<? super E, String, String> provider) Sets the item description provider that is used for generating tooltip descriptions for items.void
setItems
(TableItems<E> tableItems) Sets an instance ofTableItems
as the Table data source.void
setMinHeight
(String minHeight) SetsminHeight
CSS property value to the Table (not a composition).void
setMinWidth
(String minWidth) SetsminWidth
CSS property value to the Table (not a composition).void
setMultiLineCells
(boolean multiLineCells) Sets whether multi-line display is enabled for cells containing several lines of text.void
setMultiSelect
(boolean multiselect) Sets whether multiple selection mode is enabled.void
setRequired
(Table.Column<E> column, boolean required, String message) Sets whether the component inside a column must contain a non-null value.void
Sets the row header mode.void
setRowHeaderWidth
(int width) Sets the width of row header column.void
setShowSelection
(boolean showSelection) Sets whether a current row is highlighted.void
setShowTotalAggregation
(boolean showAggregation) Shows in which aggregation the changes occurred: in the total or group.void
setSortable
(boolean sortable) Defines if sortable attribute can be changed for individual column or not.void
setStyleProvider
(Table.StyleProvider<? super E> styleProvider) Sets the cell style provider for the table.
All style providers added before this call will be removed.void
setTextSelectionEnabled
(boolean textSelectionEnabled) Sets whether text selection in Table cells is enabled.void
showCustomPopup
(Component popupComponent) Shows popup inside of Table, relative to last cell click event.
Call this method fromTable.Column.ClickEvent
implementation.void
showCustomPopupActions
(List<Action> actions) Shows autocloseable popup view with actions, relative to last cell click event.
Call this method fromTable.Column.ClickEvent
implementation.
Autocloseable means that after any click on action popup will be closed.void
sort
(String columnId, Table.SortDirection direction) Sorts the Table data for passed column id in the chosen sort direction.Methods inherited from interface io.jmix.ui.component.ActionsHolder
addAction, addAction, getAction, getActionNN, getActions, removeAction, removeAction, removeAllActions
Methods inherited from interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
Methods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrame
Methods inherited from interface io.jmix.ui.component.Component.Editable
isEditable, isEditableWithParent, setEditable
Methods inherited from interface io.jmix.ui.component.Component.Focusable
focus, getTabIndex, isFocusable, setFocusable, setTabIndex
Methods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaption
Methods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescription
Methods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSet
Methods inherited from interface io.jmix.ui.component.HasButtonsPanel
getButtonsPanel, setButtonsPanel
Methods inherited from interface io.jmix.ui.component.HasContextHelp
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
Methods inherited from interface io.jmix.ui.component.HasHtmlCaption
isCaptionAsHtml, setCaptionAsHtml
Methods inherited from interface io.jmix.ui.component.HasHtmlDescription
isDescriptionAsHtml, setDescriptionAsHtml
Methods inherited from interface io.jmix.ui.component.HasHtmlSanitizer
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
Methods inherited from interface io.jmix.ui.component.HasPagination
getPagination, setPagination
Methods inherited from interface io.jmix.ui.component.HasTablePresentations
applyPresentation, applyPresentationAsDefault, getDefaultPresentationId, getDefaultSettings, getPresentations, loadPresentations, resetPresentation, setDefaultSettings
Methods inherited from interface io.jmix.ui.component.ListComponent
getSelected, getSingleSelected, isMultiSelect, setSelected, setSelected
Methods inherited from interface io.jmix.ui.component.LookupComponent
getLookupSelectedItems, setLookupSelectHandler
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
of
-
getColumns
@StudioElementsGroup(xmlElement="columns", caption="Columns", icon="io/jmix/ui/icon/element/columns.svg") List<Table.Column<E>> getColumns()Returns a copy of currently configured columns in their current visual order in this Table.- Returns:
- unmodifiable copy of current columns
- See Also:
-
getColumn
Returns a column by id.- Parameters:
id
- the column id- Returns:
- the column or
null
if not found
-
addColumn
Adds the given column to Table.Note that column id should be an instance of
MetaPropertyPath
.- Parameters:
column
- the column to add- See Also:
-
addColumn
Adds the given column at the specified index to Table.Note that column id should be an instance of
MetaPropertyPath
.- Parameters:
column
- the column to addindex
- index of a new column- See Also:
-
addColumn
Creates new column with given Id, then adds this column to Table.- Parameters:
id
- the column id or the instance ofMetaPropertyPath
representing a relative path to a property from certainMetaClass
- Returns:
- the newly created column
- See Also:
-
addColumn
Creates new column with given Id at the specified index, then adds this column to Table.- Parameters:
id
- the column id or the instance ofMetaPropertyPath
representing a relative path to a property from certainMetaClass
index
- index of a new column- Returns:
- the newly created column
- See Also:
-
removeColumn
Removes the given column from Table or do nothing if column isnull
.- Parameters:
column
- the column to remove
-
getAggregationResults
Returns a map with aggregation results, where keys are table column ids and values are aggregation values.- Returns:
- map with aggregation results
-
setItems
Sets an instance ofTableItems
as the Table data source.- Parameters:
tableItems
- the Table data source
-
getItems
- Specified by:
getItems
in interfaceListComponent<E>
- Returns:
- the Table data source
-
setRequired
Sets whether the component inside a column must contain a non-null value.- Parameters:
column
- a columnrequired
- requiredmessage
- required message
-
setTextSelectionEnabled
Sets whether text selection in Table cells is enabled.- Parameters:
textSelectionEnabled
- whether text selection in Table cells is enabled
-
isTextSelectionEnabled
boolean isTextSelectionEnabled()- Returns:
- whether text selection in Table cells is enabled
-
setItemClickAction
Assign action to be executed on double click inside a table row.If such action is not set, the table responds to double click by trying to find and execute the following actions:
- action, assigned to Enter key press by setting its
shortcut
property - action named "edit"
- action named "view"
- action, assigned to Enter key press by setting its
-
getItemClickAction
- Returns:
- an action that is performed when the user double-clicks inside a table row
- See Also:
-
setEnterPressAction
Assign action to be executed on Enter key press.If such action is not set, the table responds to pressing Enter by trying to find and execute the following actions:
- action, assigned by
setItemClickAction(Action)
- action, assigned to Enter key press by setting its
shortcut
property - action named "edit"
- action named "view"
- action, assigned by
-
getEnterPressAction
- Returns:
- an action to be executed on Enter key press, assigned by
setEnterPressAction(Action)
-
getNotCollapsedColumns
List<Table.Column> getNotCollapsedColumns()- Returns:
- a list of visible columns
-
setSortable
Defines if sortable attribute can be changed for individual column or not. Default value istrue
.- Parameters:
sortable
-true
if individual column sortable attribute can be set totrue
,false
otherwise
-
isSortable
boolean isSortable()- Returns:
true
if individual column sortable attribute can be set totrue
,false
otherwise
-
setAggregatable
Sets whether aggregation is enabled. Default value is false.- Parameters:
aggregatable
- whether aggregation is enabled.
-
isAggregatable
boolean isAggregatable()- Returns:
- true if the Table is aggregatable
-
setShowTotalAggregation
Shows in which aggregation the changes occurred: in the total or group.- Parameters:
showAggregation
-true
if the aggregation column should show changes in total aggregation,false
if in the group aggregation
-
isShowTotalAggregation
boolean isShowTotalAggregation()- Returns:
true
if the aggregation column should show changes in total aggregation,false
if in the group aggregation
-
setColumnReorderingAllowed
@StudioProperty(name="reorderingAllowed", defaultValue="true") void setColumnReorderingAllowed(boolean columnReorderingAllowed) Sets whether or not column reordering is allowed. Default value istrue
.- Parameters:
columnReorderingAllowed
- specifies whether column reordering is allowed
-
getColumnReorderingAllowed
boolean getColumnReorderingAllowed()Returns whether column reordering is allowed. Default value istrue
.- Returns:
true
if reordering is allowed
-
addColumnReorderListener
Registers a new column reorder listener.- Parameters:
listener
- the listener to add- Returns:
- a registration object for removing an event listener
-
setColumnControlVisible
Sets whether user can hide columns using the columnControlButton dropdown on the right side of the table header.- Parameters:
columnControlVisible
- whether user can hide columns using the columnControlButton dropdown on the right side of the table header
-
getColumnControlVisible
boolean getColumnControlVisible()- Returns:
- whether user can hide columns using the columnControlButton dropdown on the right side of the table header
-
requestFocus
Sets focus on inner field of editable/generated column.- Parameters:
entity
- entitycolumnId
- column id
-
scrollTo
Scrolls table to specified row.- Parameters:
entity
- entity
-
sort
Sorts the Table data for passed column id in the chosen sort direction.- Parameters:
columnId
- id of the column to sortdirection
- sort direction
-
getSortInfo
- Returns:
- current sort information or null if no column is sorted
-
selectAll
void selectAll()Marks all the items in the current data source as selected. -
isMultiLineCells
boolean isMultiLineCells()- Returns:
- whether multi-line display is enabled for cells containing several lines of text
-
setMultiLineCells
Sets whether multi-line display is enabled for cells containing several lines of text. The default value is false.- Parameters:
multiLineCells
- whether multi-line display is enabled for cells containing several lines of text
-
isContextMenuEnabled
boolean isContextMenuEnabled()- Returns:
- whether context menu is enabled
-
setContextMenuEnabled
Sets whether context menu is enabled.- Parameters:
contextMenuEnabled
- whether context menu is enabled
-
setRowHeaderWidth
void setRowHeaderWidth(int width) Sets the width of row header column. Row header shows icons if Icon Provider is specified.- Parameters:
width
- width of row header column in px
-
getRowHeaderWidth
int getRowHeaderWidth()- Returns:
- width of row header column in px
-
setMultiSelect
Sets whether multiple selection mode is enabled.- Parameters:
multiselect
- whether multiple selection mode is enabled
-
repaint
void repaint()Repaints UI representation of the table (columns, generated columns) without refreshing the table data. -
getSubPart
- Specified by:
getSubPart
in interfaceActionsHolder
- Specified by:
getSubPart
in interfaceHasSubParts
-
setEmptyStateMessage
@StudioProperty(name="emptyStateMessage", type=LOCALIZED_STRING) void setEmptyStateMessage(@Nullable String message) Sets a message to the middle of Table body that should be appeared when Table is empty.- Parameters:
message
- message that appears when Table is empty
-
getEmptyStateMessage
- Returns:
- message that should be appeared when Table is empty
-
setEmptyStateLinkMessage
@StudioProperty(name="emptyStateLinkMessage", type=LOCALIZED_STRING) void setEmptyStateLinkMessage(@Nullable String linkMessage) Sets a link message to the middle of Table body that should be appeared when Table is empty.- Parameters:
linkMessage
- message that appears when Table is empty- See Also:
-
getEmptyStateLinkMessage
- Returns:
- link message that should be appeared when Table is empty
-
setEmptyStateLinkClickHandler
Sets click handler for link message. Link message can be shown when Table is empty.- Parameters:
handler
- handler to set- See Also:
-
getEmptyStateLinkClickHandler
- Returns:
- click handler for link message
-
getMinHeight
- Specified by:
getMinHeight
in interfaceHasMinSize
- Returns:
min-height
CSS property value of the Table (not a composition) ornull
if not set
-
getMinHeightSizeUnit
- Specified by:
getMinHeightSizeUnit
in interfaceHasMinSize
- Returns:
- unit size of
min-height
CSS property value of the Table (not a composition)
-
setMinHeight
SetsminHeight
CSS property value to the Table (not a composition). To set CSS properties to the composition usecss
attribute in the XML descriptor orHtmlAttributes.applyCss(Component, String)
.- Specified by:
setMinHeight
in interfaceHasMinSize
- Parameters:
minHeight
- property value
-
getMinWidth
- Specified by:
getMinWidth
in interfaceHasMinSize
- Returns:
min-width
CSS property value of the Table (not a composition) ornull
if not set
-
getMinWidthSizeUnit
- Specified by:
getMinWidthSizeUnit
in interfaceHasMinSize
- Returns:
- unit size of
min-width
CSS property value of the Table (not a composition)
-
setMinWidth
SetsminWidth
CSS property value to the Table (not a composition). To set CSS properties to the composition usecss
attribute in the XML descriptor orHtmlAttributes.applyCss(Component, String)
.- Specified by:
setMinWidth
in interfaceHasMinSize
- Parameters:
minWidth
- property value
-
addColumnCollapseListener
Adds a listener for column collapse events.- Parameters:
listener
- a listener to add- Returns:
- a
Subscription
object
-
setRowHeaderMode
@StudioProperty(type=ENUMERATION, defaultValue="NONE", options={"NONE","ICON"}) void setRowHeaderMode(Table.RowHeaderMode mode) Sets the row header mode.- Parameters:
mode
- row header mode
-
setAggregationStyle
@StudioProperty(type=ENUMERATION, defaultValue="TOP", options={"TOP","BOTTOM"}) void setAggregationStyle(Table.AggregationStyle aggregationStyle) Sets the location of the aggregation row.- Parameters:
aggregationStyle
- the location of the aggregation row
-
getAggregationStyle
Table.AggregationStyle getAggregationStyle()- Returns:
- the location of the aggregation row
-
setStyleProvider
Sets the cell style provider for the table.
All style providers added before this call will be removed.- Parameters:
styleProvider
- a style provider to set
-
addStyleProvider
Add style provider for the table.
Table can use several providers to obtain many style names for cells and rows.- Parameters:
styleProvider
- a style provider to add
-
removeStyleProvider
Removes style provider for the table.- Parameters:
styleProvider
- a style provider to remove
-
setIconProvider
Sets the row icon provider for the Table.- Parameters:
iconProvider
- an icon provider to set- See Also:
-
setItemDescriptionProvider
Sets the item description provider that is used for generating tooltip descriptions for items.All unhandled exceptions from ItemDescriptionProvider in Web components by default are logged with ERROR level and not shown to users.
- Parameters:
provider
- the item description provider to use ornull
to remove a previously set provider if any
-
getItemDescriptionProvider
Gets the item description provider.- Returns:
- the item description provider
-
getInstanceContainer
This method returns the InstanceContainer which contains the provided item. It can be used in data-aware components, created in generated columns.
Do not save to final variables, just get it from table when you need.carsTable.addGeneratedColumn("name", car -> { TextField<String> textField = uiComponents.create(TextField.NAME); textField.setValueSource(new ContainerValueSource<>(carsTable.getInstanceContainer(car),"name")); textField.setValue(car.getName()); return textField; });
- Parameters:
item
- entity item- Returns:
- InstanceContainer containing the item
-
addGeneratedColumn
Adds a generated column to the table.- Parameters:
columnId
- column identifier as defined in XML descriptor. May or may not correspond to an entity property.generator
- column generator instance
-
addGeneratedColumn
Adds a generated column at the specified index to Table.- Parameters:
columnId
- column identifier as defined in XML descriptor. May correspond to an entity propertyindex
- index of a new columngenerator
- column generator instance
-
addGeneratedColumn
void addGeneratedColumn(String columnId, Table.ColumnGenerator<? super E> generator, Class<? extends Component> componentClass) Adds a generated column to the table.
This method useful for desktop UI. Table can make additional look, feel and performance tweaks if it knows the class of components that will be generated.- Parameters:
columnId
- column identifier as defined in XML descriptor. May or may not correspond to an entity property.generator
- column generator instancecomponentClass
- class of components that generator will provide
-
removeGeneratedColumn
Removes generated column from the Table by column id.- Parameters:
columnId
- the column id
-
addPrintable
Deprecated.Use export action APIs instead.AddsTable.Printable
representation for column.
Explicitly added Printable will be used instead of inherited from generated column.- Parameters:
columnId
- column idprintable
- printable representation
-
removePrintable
Deprecated.Use export action APIs instead.RemovesTable.Printable
representation of column.
Unable to remove Printable representation inherited from generated column.- Parameters:
columnId
- column id
-
getPrintable
Deprecated.Use export action APIs instead.GetsTable.Printable
representation for column.- Parameters:
column
- table column- Returns:
- printable
-
getPrintable
Deprecated.Use export action APIs instead.GetsTable.Printable
representation for column.- Parameters:
columnId
- column id- Returns:
- printable
-
setAggregationDistributionProvider
void setAggregationDistributionProvider(@Nullable Table.AggregationDistributionProvider<E> distributionProvider) Sets aggregation distribution provider to handle distribution of data on rows. Supports only TOP aggregation style.- Parameters:
distributionProvider
- distribution provider
-
getAggregationDistributionProvider
- Returns:
- aggregation distribution provider
-
showCustomPopup
Shows popup inside of Table, relative to last cell click event.
Call this method fromTable.Column.ClickEvent
implementation.- Parameters:
popupComponent
- popup content
-
showCustomPopupActions
Shows autocloseable popup view with actions, relative to last cell click event.
Call this method fromTable.Column.ClickEvent
implementation.
Autocloseable means that after any click on action popup will be closed.- Parameters:
actions
- actions
-
setColumnHeaderVisible
Sets whether table header is displayed.- Parameters:
columnHeaderVisible
- whether table header is displayed
-
isColumnHeaderVisible
boolean isColumnHeaderVisible()- Returns:
- whether table header is displayed
-
setShowSelection
Sets whether a current row is highlighted.- Parameters:
showSelection
- whether a current row is highlighted
-
isShowSelection
boolean isShowSelection()- Returns:
- whether a current row is highlighted
-
addSelectionListener
Registers a new selection listener- Parameters:
listener
- the listener to register
-