|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.ui.AbstractClickEventHandler
public abstract class AbstractClickEventHandler
| Field Summary | |
|---|---|
protected ComponentConnector |
connector
|
| Constructor Summary | |
|---|---|
AbstractClickEventHandler(ComponentConnector connector,
java.lang.String clickEventIdentifier)
|
|
| Method Summary | ||
|---|---|---|
protected abstract void |
fireClick(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(ContextMenuEvent event)
Event handler for context menu. |
|
void |
onDoubleClick(DoubleClickEvent event)
Event handler for double clicks. |
|
void |
onMouseDown(MouseDownEvent event)
|
|
void |
onMouseUp(MouseUpEvent event)
|
|
protected
|
registerHandler(H handler,
Registers the given handler to the widget so that the necessary events are passed to this ClickEventHandler. |
|
protected boolean |
shouldFireEvent(
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,
java.lang.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,
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(ContextMenuEvent event)
public void onMouseDown(MouseDownEvent event)
public void onMouseUp(MouseUpEvent event)
protected abstract void fireClick(NativeEvent event)
event - The native event that caused this click eventprotected boolean shouldFireEvent(event)
event - The user event
public void onDoubleClick(DoubleClickEvent event)
protected com.google.gwt.user.client.Element getRelativeToElement()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||