com.smartgwt.client.widgets.events
Class ParentMovedEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<H>
com.google.gwt.event.shared.GwtEvent<H>
com.smartgwt.client.event.AbstractSmartEvent<H>
com.smartgwt.client.widgets.events.BrowserEvent<ParentMovedHandler>
com.smartgwt.client.widgets.events.ParentMovedEvent
public class ParentMovedEvent
- extends BrowserEvent<ParentMovedHandler>
| Methods inherited from class com.google.web.bindery.event.shared.Event |
setSource, toDebugString, toString |
ParentMovedEvent
public ParentMovedEvent(JavaScriptObject jsObj)
fire
public static <S extends HasParentMovedHandlers & HasHandlers> void fire(S source,
JavaScriptObject jsObj)
- Fires a open event on all registered handlers in the handler manager.If no
such handlers exist, this method will do nothing.
- Type Parameters:
S - The event source- Parameters:
source - the source of the handlersjsObj - the native event
getType
public static GwtEvent.Type<ParentMovedHandler> getType()
- Gets the type associated with this event.
- Returns:
- returns the handler type
dispatch
protected void dispatch(ParentMovedHandler handler)
- Specified by:
dispatch in class GwtEvent<ParentMovedHandler>
getAssociatedType
public final GwtEvent.Type<ParentMovedHandler> getAssociatedType()
- Overrides:
getAssociatedType in class GwtEvent<ParentMovedHandler>
getParent
public Canvas getParent()
- the ancestor that moved
- Returns:
- the ancestor that moved
getDeltaX
public int getDeltaX()
- horizontal difference between current and previous position
- Returns:
- horizontal difference between current and previous position
getDeltaY
public int getDeltaY()
- vertical difference between current and previous position
- Returns:
- vertical difference between current and previous position