org.zkoss.gmaps.event
Class MapDropEvent
java.lang.Object
org.zkoss.zk.ui.event.Event
org.zkoss.zk.ui.event.MouseEvent
org.zkoss.zk.ui.event.DropEvent
org.zkoss.gmaps.event.MapDropEvent
public class MapDropEvent
- extends org.zkoss.zk.ui.event.DropEvent
When drag and drop on a Gmaps
or
Gmarker
; this event was sent to the dropped
component.
- Since:
- 2.0_9
- Author:
- henrichen
- See Also:
MapMouseEvent
Fields inherited from class org.zkoss.zk.ui.event.MouseEvent |
ALT_KEY, CTRL_KEY, SHIFT_KEY |
Constructor Summary |
MapDropEvent(java.lang.String name,
org.zkoss.zk.ui.Component target,
org.zkoss.zk.ui.Component dragged,
double lat,
double lng,
int x,
int y,
int clientX,
int clientY,
int keys)
Constructs a drop event. |
Method Summary |
int |
getClientX()
Get the x in pixels related to the browser client |
int |
getClientY()
Get the y in pixels related to the browser client |
double |
getLat()
Returns the latitude of the clicked position. |
double |
getLng()
Returns the longitude of the clicked position. |
Methods inherited from class org.zkoss.zk.ui.event.DropEvent |
getArea, getDragged |
Methods inherited from class org.zkoss.zk.ui.event.MouseEvent |
getKeys, getX, getY |
Methods inherited from class org.zkoss.zk.ui.event.Event |
getData, getName, getPage, getTarget, isPropagatable, stopPropagation, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MapDropEvent
public MapDropEvent(java.lang.String name,
org.zkoss.zk.ui.Component target,
org.zkoss.zk.ui.Component dragged,
double lat,
double lng,
int x,
int y,
int clientX,
int clientY,
int keys)
- Constructs a drop event.
- Parameters:
dragged
- The component being dragged and drop to Event.getTarget()
.
getLat
public double getLat()
- Returns the latitude of the clicked position.
getLng
public double getLng()
- Returns the longitude of the clicked position.
getClientX
public final int getClientX()
- Get the x in pixels related to the browser client
getClientY
public final int getClientY()
- Get the y in pixels related to the browser client
Copyright © 2005-2007 Potix Corporation. All Rights Reserved.