T
- the grid bean type@DomEvent(value="grid-cell-focus") public class CellFocusEvent<T> extends ComponentEvent<Grid<T>>
Grid.addCellFocusListener(com.vaadin.flow.component.ComponentEventListener)
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
CellFocusEvent.GridSection
An enum representing the different sections of a grid.
|
source
Constructor and Description |
---|
CellFocusEvent(Grid<T> source,
boolean fromClient,
String itemKey,
String internalColumnId,
String sectionName)
Creates a new cell focus event.
|
Modifier and Type | Method and Description |
---|---|
Optional<Grid.Column<T>> |
getColumn()
Returns the column represented by the focused cell.
|
Optional<T> |
getItem()
Returns the item represented by the focused cell.
|
CellFocusEvent.GridSection |
getSection()
Returns the grid section, where this cell is located.
|
boolean |
isBodyCell()
Indicates, if the clicked cell is part of the grid's body section.
|
boolean |
isFooterCell()
Indicates, if the clicked cell is part of the grid's footer section.
|
boolean |
isHeaderCell()
Indicates, if the clicked cell is part of the grid's header section.
|
getSource, isFromClient, unregisterListener
toString
public CellFocusEvent(Grid<T> source, boolean fromClient, @EventData(value="event.detail.itemKey") String itemKey, @EventData(value="event.detail.internalColumnId") String internalColumnId, @EventData(value="event.detail.section") String sectionName)
source
- the source componentfromClient
- true
if the event originated from the clientpublic boolean isBodyCell()
public boolean isHeaderCell()
public boolean isFooterCell()
public CellFocusEvent.GridSection getSection()
public Optional<T> getItem()
public Optional<Grid.Column<T>> getColumn()
Copyright © 2025. All rights reserved.