public interface HasEnterPressHandler
Modifier and Type | Interface and Description |
---|---|
static class |
HasEnterPressHandler.EnterPressEvent
Event is fired when the user presses the enter key when the text field is on focus.
|
Modifier and Type | Method and Description |
---|---|
java.util.function.Consumer<HasEnterPressHandler.EnterPressEvent> |
getEnterPressHandler() |
void |
setEnterPressHandler(java.util.function.Consumer<HasEnterPressHandler.EnterPressEvent> handler)
Sets an ENTER press handler.
|
@Nullable java.util.function.Consumer<HasEnterPressHandler.EnterPressEvent> getEnterPressHandler()
void setEnterPressHandler(@Nullable java.util.function.Consumer<HasEnterPressHandler.EnterPressEvent> handler)
handler
- an ENTER press handler to set