Package io.jmix.flowui.component
Interface SupportsEnterPress<C extends com.vaadin.flow.component.Component>
- All Known Implementing Classes:
DataGrid
,TreeDataGrid
public interface SupportsEnterPress<C extends com.vaadin.flow.component.Component>
A component that supports Enter key handling.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
SupportsEnterPress.EnterPressEvent<C extends com.vaadin.flow.component.Component>
Event when Enter shortcut is detected. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets code to execute when Enter key is pressed.
-
Method Details
-
setEnterPressHandler
Sets code to execute when Enter key is pressed.- Parameters:
handler
- code to execute when Enter key is pressed ornull
to remove previously set.
-