com.vaadin.terminal.gwt.client.ui
Class ClickEventHandler

java.lang.Object
  extended by com.vaadin.terminal.gwt.client.ui.AbstractClickEventHandler
      extended by com.vaadin.terminal.gwt.client.ui.ClickEventHandler
All Implemented Interfaces:
com.google.gwt.event.dom.client.ContextMenuHandler, com.google.gwt.event.dom.client.DoubleClickHandler, com.google.gwt.event.dom.client.MouseDownHandler, com.google.gwt.event.dom.client.MouseUpHandler, com.google.gwt.event.shared.EventHandler

public abstract class ClickEventHandler
extends AbstractClickEventHandler


Field Summary
static String CLICK_EVENT_IDENTIFIER
           
 
Fields inherited from class com.vaadin.terminal.gwt.client.ui.AbstractClickEventHandler
connector
 
Constructor Summary
ClickEventHandler(ComponentConnector connector)
           
ClickEventHandler(ComponentConnector connector, String clickEventIdentifier)
           
 
Method Summary
protected  void fireClick(com.google.gwt.dom.client.NativeEvent event)
          Sends the click event based on the given native event.
protected abstract  void fireClick(com.google.gwt.dom.client.NativeEvent event, MouseEventDetails mouseDetails)
          Sends the click event to the server.
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.AbstractClickEventHandler
getRelativeToElement, handleEventHandlerRegistration, hasEventListener, onContextMenu, onDoubleClick, onMouseDown, onMouseUp, registerHandler, shouldFireEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLICK_EVENT_IDENTIFIER

public static final String CLICK_EVENT_IDENTIFIER
See Also:
Constant Field Values
Constructor Detail

ClickEventHandler

public ClickEventHandler(ComponentConnector connector)

ClickEventHandler

public ClickEventHandler(ComponentConnector connector,
                         String clickEventIdentifier)
Method Detail

fireClick

protected void fireClick(com.google.gwt.dom.client.NativeEvent event)
Sends the click event based on the given native event. Delegates actual sending to #fireClick(MouseEventDetails).

Specified by:
fireClick in class AbstractClickEventHandler
Parameters:
event - The native event that caused this click event

fireClick

protected abstract void fireClick(com.google.gwt.dom.client.NativeEvent event,
                                  MouseEventDetails mouseDetails)
Sends the click event to the server. Must be implemented by sub classes, typically by calling an RPC method.

Parameters:
event - The event that caused this click to be fired
mouseDetails - The mouse details for the event


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.