@HtmlImport(value="frontend://webapi/touch.html") @Tag(value="rap-touch") public class Touch extends JavascriptTemplate<Touch.TouchTemplateModel>
| Modifier and Type | Class and Description |
|---|---|
static interface |
Touch.TouchTemplateModel |
| Constructor and Description |
|---|
Touch(com.vaadin.flow.component.HasElement target) |
| Modifier and Type | Method and Description |
|---|---|
com.vaadin.flow.shared.Registration |
addTouchListener(com.vaadin.flow.function.SerializableConsumer<TouchEvent> touchListener)
Registers a touch listener.
|
clearConsumers, notifyConsumers, registerConsumer, registerConsumer, unregisterAllConsumers, unregisterAllConsumersgetModel, getModelType, getModelType, getStateNode, initModel, isSupportedClassaddListener, fireEvent, from, get, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisiblepublic Touch(com.vaadin.flow.component.HasElement target)
target - the target to register the touch listener onpublic com.vaadin.flow.shared.Registration addTouchListener(com.vaadin.flow.function.SerializableConsumer<TouchEvent> touchListener)
touchListener - The callback that is triggered when the event occurs. It will consume a TouchEvent.Copyright © 2020 XDEV Software Corp.. All rights reserved.