public class EventSample extends SampleBase implements com.google.gwt.event.dom.client.MouseUpHandler, com.google.gwt.event.dom.client.MouseMoveHandler, com.google.gwt.event.dom.client.MouseDownHandler
Modifier and Type | Field and Description |
---|---|
static Main.MainBundle |
mainBundle |
HTML_SRC_DIR, sourceHtml, tabPanel, UIBINDER_SRC_DIR, uiBinderHtml
Constructor and Description |
---|
EventSample() |
Modifier and Type | Method and Description |
---|---|
org.vectomatic.dom.svg.OMSVGPoint |
getLocalCoordinates(com.google.gwt.event.dom.client.MouseEvent<? extends com.google.gwt.event.shared.EventHandler> e)
Returns the coordinates of a mouse event, converted
to the SVG coordinate system
|
com.google.gwt.user.client.ui.TabLayoutPanel |
getPanel()
Instantiates the tab panel which contains the sample
|
void |
onMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event) |
void |
onMouseMove(com.google.gwt.event.dom.client.MouseMoveEvent event) |
void |
onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event) |
createCodeTabs, requestCodeContents, resize
@UiField(provided=true) public static Main.MainBundle mainBundle
public com.google.gwt.user.client.ui.TabLayoutPanel getPanel()
SampleBase
getPanel
in class SampleBase
public void onMouseUp(com.google.gwt.event.dom.client.MouseUpEvent event)
onMouseUp
in interface com.google.gwt.event.dom.client.MouseUpHandler
public void onMouseMove(com.google.gwt.event.dom.client.MouseMoveEvent event)
onMouseMove
in interface com.google.gwt.event.dom.client.MouseMoveHandler
public org.vectomatic.dom.svg.OMSVGPoint getLocalCoordinates(com.google.gwt.event.dom.client.MouseEvent<? extends com.google.gwt.event.shared.EventHandler> e)
e
- A mouse eventpublic void onMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)
onMouseDown
in interface com.google.gwt.event.dom.client.MouseDownHandler
Copyright © 2018. All Rights Reserved.