|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.terminal.gwt.client.ui.AbstractClickEventHandler
public abstract class AbstractClickEventHandler
| Field Summary | |
|---|---|
protected ComponentConnector |
connector
|
| Constructor Summary | |
|---|---|
AbstractClickEventHandler(ComponentConnector connector,
String clickEventIdentifier)
|
|
| Method Summary | ||
|---|---|---|
protected abstract void |
fireClick(com.google.gwt.dom.client.NativeEvent event)
Sends the click event based on the given native event. |
|
protected com.google.gwt.user.client.Element |
getRelativeToElement()
Click event calculates and returns coordinates relative to the element returned by this method. |
|
void |
handleEventHandlerRegistration()
|
|
boolean |
hasEventListener()
Checks if there is a server side event listener registered for clicks |
|
void |
onContextMenu(com.google.gwt.event.dom.client.ContextMenuEvent event)
Event handler for context menu. |
|
void |
onDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent event)
Event handler for double clicks. |
|
void |
onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
Event handler for mouse up. |
|
protected
|
registerHandler(H handler,
com.google.gwt.event.dom.client.DomEvent.Type<H> type)
Registers the given handler to the widget so that the necessary events are passed to this ClickEventHandler. |
|
protected boolean |
shouldFireEvent(com.google.gwt.event.dom.client.DomEvent<?> event)
Called before firing a click event. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ComponentConnector connector
| Constructor Detail |
|---|
public AbstractClickEventHandler(ComponentConnector connector,
String clickEventIdentifier)
| Method Detail |
|---|
public void handleEventHandlerRegistration()
protected <H extends com.google.gwt.event.shared.EventHandler> com.google.gwt.event.shared.HandlerRegistration registerHandler(H handler,
com.google.gwt.event.dom.client.DomEvent.Type<H> type)
ClickEventHandler.
By default registers the handler with the connector root widget.
H - handler - The handler to registertype - The type of the handler.
public boolean hasEventListener()
public void onContextMenu(com.google.gwt.event.dom.client.ContextMenuEvent event)
onContextMenu in interface com.google.gwt.event.dom.client.ContextMenuHandlerpublic void onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
onMouseUp in interface com.google.gwt.event.dom.client.MouseUpHandlerprotected abstract void fireClick(com.google.gwt.dom.client.NativeEvent event)
event - The native event that caused this click eventprotected boolean shouldFireEvent(com.google.gwt.event.dom.client.DomEvent<?> event)
event - The user event
public void onDoubleClick(com.google.gwt.event.dom.client.DoubleClickEvent event)
onDoubleClick in interface com.google.gwt.event.dom.client.DoubleClickHandlerprotected com.google.gwt.user.client.Element getRelativeToElement()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||