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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classObject that contains information about aggregation distribution.static interfaceAllows to handle a group or total aggregation value changes.static enumThe location of the aggregation row.static interfaceTable column.static enumColumn alignment.static classEvent sent every time column collapse state changes.static interfaceAllows rendering of an arbitraryComponentinside a table cell.static classAn event that is fired when a columns are reordered by the user.static classDescribes empty state link click event.static classSpecial component for generated columns which will be rendered as simple text cell.static interfaceDeprecated.Use export action APIs instead.static interfaceDeprecated.Use export action APIs instead.static enumRow header mode.static classEvent sent when the selection changes.static enumDescribes sorting direction.static classObject that contains information about column sorting.static interfaceAllows 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.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEventNested classes/interfaces inherited from interface io.jmix.ui.component.LookupComponent
LookupComponent.LookupSelectionChangeEvent<T>, LookupComponent.LookupSelectionChangeNotifier<T> -
Field Summary
FieldsFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumn(Table.Column<E> column) Adds the given column to Table.voidaddColumn(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.voidaddGeneratedColumn(String columnId, int index, Table.ColumnGenerator<? super E> generator) Adds a generated column at the specified index to Table.voidaddGeneratedColumn(String columnId, Table.ColumnGenerator<? super E> generator) Adds a generated column to the table.voidaddGeneratedColumn(String columnId, Table.ColumnGenerator<? super E> generator, Class<? extends Component> componentClass) Adds a generated column to the table.voidaddPrintable(String columnId, Table.Printable<? super E, ?> printable) Deprecated.Use export action APIs instead.addSelectionListener(Consumer<Table.SelectionEvent<E>> listener) Registers a new selection listenervoidaddStyleProvider(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.booleanbooleanReturns 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.intdefault ObjectgetSubPart(String name) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanstatic <T> org.springframework.core.ParameterizedTypeReference<Table<T>>voidremoveColumn(Table.Column<E> column) Removes the given column from Table or do nothing if column isnull.voidremoveGeneratedColumn(String columnId) Removes generated column from the Table by column id.voidremovePrintable(String columnId) Deprecated.Use export action APIs instead.voidremoveStyleProvider(Table.StyleProvider<? super E> styleProvider) Removes style provider for the table.voidrepaint()Repaints UI representation of the table (columns, generated columns) without refreshing the table data.voidrequestFocus(E entity, String columnId) Sets focus on inner field of editable/generated column.voidScrolls table to specified row.voidMarks all the items in the current data source as selected.voidsetAggregatable(boolean aggregatable) Sets whether aggregation is enabled.voidsetAggregationDistributionProvider(Table.AggregationDistributionProvider<E> distributionProvider) Sets aggregation distribution provider to handle distribution of data on rows.voidsetAggregationStyle(Table.AggregationStyle aggregationStyle) Sets the location of the aggregation row.voidsetColumnControlVisible(boolean columnControlVisible) Sets whether user can hide columns using the columnControlButton dropdown on the right side of the table header.voidsetColumnHeaderVisible(boolean columnHeaderVisible) Sets whether table header is displayed.voidsetColumnReorderingAllowed(boolean columnReorderingAllowed) Sets whether or not column reordering is allowed.voidsetContextMenuEnabled(boolean contextMenuEnabled) Sets whether context menu is enabled.voidSets click handler for link message.voidsetEmptyStateLinkMessage(String linkMessage) Sets a link message to the middle of Table body that should be appeared when Table is empty.voidsetEmptyStateMessage(String message) Sets a message to the middle of Table body that should be appeared when Table is empty.voidsetEnterPressAction(Action action) Assign action to be executed on Enter key press.voidsetIconProvider(Function<? super E, String> iconProvider) Sets the row icon provider for the Table.voidsetItemClickAction(Action action) Assign action to be executed on double click inside a table row.voidsetItemDescriptionProvider(BiFunction<? super E, String, String> provider) Sets the item description provider that is used for generating tooltip descriptions for items.voidsetItems(TableItems<E> tableItems) Sets an instance ofTableItemsas the Table data source.voidsetMinHeight(String minHeight) SetsminHeightCSS property value to the Table (not a composition).voidsetMinWidth(String minWidth) SetsminWidthCSS property value to the Table (not a composition).voidsetMultiLineCells(boolean multiLineCells) Sets whether multi-line display is enabled for cells containing several lines of text.voidsetMultiSelect(boolean multiselect) Sets whether multiple selection mode is enabled.voidsetRequired(Table.Column<E> column, boolean required, String message) Sets whether the component inside a column must contain a non-null value.voidSets the row header mode.voidsetRowHeaderWidth(int width) Sets the width of row header column.voidsetShowSelection(boolean showSelection) Sets whether a current row is highlighted.voidsetShowTotalAggregation(boolean showAggregation) Shows in which aggregation the changes occurred: in the total or group.voidsetSortable(boolean sortable) Defines if sortable attribute can be changed for individual column or not.voidsetStyleProvider(Table.StyleProvider<? super E> styleProvider) Sets the cell style provider for the table.
All style providers added before this call will be removed.voidsetTextSelectionEnabled(boolean textSelectionEnabled) Sets whether text selection in Table cells is enabled.voidshowCustomPopup(Component popupComponent) Shows popup inside of Table, relative to last cell click event.
Call this method fromTable.Column.ClickEventimplementation.voidshowCustomPopupActions(List<Action> actions) Shows autocloseable popup view with actions, relative to last cell click event.
Call this method fromTable.Column.ClickEventimplementation.
Autocloseable means that after any click on action popup will be closed.voidsort(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, removeAllActionsMethods 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, withUnwrappedCompositionMethods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrameMethods inherited from interface io.jmix.ui.component.Component.Editable
isEditable, isEditableWithParent, setEditableMethods inherited from interface io.jmix.ui.component.Component.Focusable
focus, getTabIndex, isFocusable, setFocusable, setTabIndexMethods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaptionMethods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescriptionMethods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSetMethods inherited from interface io.jmix.ui.component.HasButtonsPanel
getButtonsPanel, setButtonsPanelMethods inherited from interface io.jmix.ui.component.HasContextHelp
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledMethods inherited from interface io.jmix.ui.component.HasHtmlCaption
isCaptionAsHtml, setCaptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlDescription
isDescriptionAsHtml, setDescriptionAsHtmlMethods inherited from interface io.jmix.ui.component.HasHtmlSanitizer
isHtmlSanitizerEnabled, setHtmlSanitizerEnabledMethods inherited from interface io.jmix.ui.component.HasPagination
getPagination, setPaginationMethods inherited from interface io.jmix.ui.component.HasTablePresentations
applyPresentation, applyPresentationAsDefault, getDefaultPresentationId, getDefaultSettings, getPresentations, loadPresentations, resetPresentation, setDefaultSettingsMethods inherited from interface io.jmix.ui.component.ListComponent
getSelected, getSingleSelected, isMultiSelect, setSelected, setSelectedMethods 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
nullif 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 ofMetaPropertyPathrepresenting 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 ofMetaPropertyPathrepresenting a relative path to a property from certainMetaClassindex- 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 ofTableItemsas the Table data source.- Parameters:
tableItems- the Table data source
-
getItems
- Specified by:
getItemsin 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
shortcutproperty - 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
shortcutproperty - 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-trueif individual column sortable attribute can be set totrue,falseotherwise
-
isSortable
boolean isSortable()- Returns:
trueif individual column sortable attribute can be set totrue,falseotherwise
-
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-trueif the aggregation column should show changes in total aggregation,falseif in the group aggregation
-
isShowTotalAggregation
boolean isShowTotalAggregation()- Returns:
trueif the aggregation column should show changes in total aggregation,falseif 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:
trueif 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:
getSubPartin interfaceActionsHolder- Specified by:
getSubPartin 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:
getMinHeightin interfaceHasMinSize- Returns:
min-heightCSS property value of the Table (not a composition) ornullif not set
-
getMinHeightSizeUnit
- Specified by:
getMinHeightSizeUnitin interfaceHasMinSize- Returns:
- unit size of
min-heightCSS property value of the Table (not a composition)
-
setMinHeight
SetsminHeightCSS property value to the Table (not a composition). To set CSS properties to the composition usecssattribute in the XML descriptor orHtmlAttributes.applyCss(Component, String).- Specified by:
setMinHeightin interfaceHasMinSize- Parameters:
minHeight- property value
-
getMinWidth
- Specified by:
getMinWidthin interfaceHasMinSize- Returns:
min-widthCSS property value of the Table (not a composition) ornullif not set
-
getMinWidthSizeUnit
- Specified by:
getMinWidthSizeUnitin interfaceHasMinSize- Returns:
- unit size of
min-widthCSS property value of the Table (not a composition)
-
setMinWidth
SetsminWidthCSS property value to the Table (not a composition). To set CSS properties to the composition usecssattribute in the XML descriptor orHtmlAttributes.applyCss(Component, String).- Specified by:
setMinWidthin interfaceHasMinSize- Parameters:
minWidth- property value
-
addColumnCollapseListener
Adds a listener for column collapse events.- Parameters:
listener- a listener to add- Returns:
- a
Subscriptionobject
-
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 ornullto 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.Printablerepresentation 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.Printablerepresentation of column.
Unable to remove Printable representation inherited from generated column.- Parameters:
columnId- column id
-
getPrintable
Deprecated.Use export action APIs instead.GetsTable.Printablerepresentation for column.- Parameters:
column- table column- Returns:
- printable
-
getPrintable
Deprecated.Use export action APIs instead.GetsTable.Printablerepresentation 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.ClickEventimplementation.- Parameters:
popupComponent- popup content
-
showCustomPopupActions
Shows autocloseable popup view with actions, relative to last cell click event.
Call this method fromTable.Column.ClickEventimplementation.
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
-