public abstract class AbstractEventInputCell<T,V>
extends <any>
Modifier and Type | Field and Description |
---|---|
protected List<CellGestureAdapter<? extends GestureRecognizer,T>> |
cellGestureAdapters |
protected Set<String> |
consumedEvents |
protected boolean |
disableEvents |
protected HandlerManager |
handlerManager |
Constructor and Description |
---|
AbstractEventInputCell(Set<String> consumedEvents) |
AbstractEventInputCell(String... consumedEvents) |
Modifier and Type | Method and Description |
---|---|
void |
addCellGestureAdapter(CellGestureAdapter<? extends GestureRecognizer,T> cellGestureAdapter) |
<H extends EventHandler> |
addHandler(H handler,
<any> type)
Adds this handler to the widget.
|
protected HandlerManager |
createHandlerManager()
Creates the
HandlerManager used by this Widget. |
protected boolean |
fireCancellableEvent(<any> event) |
protected boolean |
fireCancellableEvent(Context context,
<any> event) |
void |
fireEvent(<any> event) |
protected void |
fireEvent(Context context,
<any> event) |
CellGestureAdapter<? extends GestureRecognizer,T> |
getCellGestureAdapter(int index) |
int |
getCellGestureAdapterCount() |
Set<String> |
getConsumedEvents() |
boolean |
isDisableEvents() |
void |
onBrowserEvent(Context context,
Element parent,
T value,
NativeEvent event,
<any> valueUpdater) |
protected void |
onTouch(Context context,
Element parent,
T value,
NativeEvent event,
<any> valueUpdater) |
void |
removeCellGestureAdapter(CellGestureAdapter<? extends GestureRecognizer,T> cellGestureAdapter) |
protected void |
setConsumedEventsInternal(Set<String> events) |
void |
setDisableEvents(boolean disableEvents) |
protected HandlerManager handlerManager
protected boolean disableEvents
protected List<CellGestureAdapter<? extends GestureRecognizer,T>> cellGestureAdapters
public AbstractEventInputCell(String... consumedEvents)
public void addCellGestureAdapter(CellGestureAdapter<? extends GestureRecognizer,T> cellGestureAdapter)
public void removeCellGestureAdapter(CellGestureAdapter<? extends GestureRecognizer,T> cellGestureAdapter)
public CellGestureAdapter<? extends GestureRecognizer,T> getCellGestureAdapter(int index)
public int getCellGestureAdapterCount()
public void onBrowserEvent(Context context, Element parent, T value, NativeEvent event, <any> valueUpdater)
public final <H extends EventHandler> HandlerRegistration addHandler(H handler, <any> type)
H
- the type of handler to addtype
- the event typehandler
- the handlerHandlerRegistration
used to remove the handlerpublic void fireEvent(<any> event)
public boolean isDisableEvents()
public void setDisableEvents(boolean disableEvents)
protected HandlerManager createHandlerManager()
HandlerManager
used by this Widget. You can override
this method to create a custom HandlerManager
.HandlerManager
you want to useprotected boolean fireCancellableEvent(Context context, <any> event)
protected boolean fireCancellableEvent(<any> event)
protected void fireEvent(Context context, <any> event)
protected void onTouch(Context context, Element parent, T value, NativeEvent event, <any> valueUpdater)
Copyright © 2020. All rights reserved.