Class MouseEditEvent
java.lang.Object
com.levigo.jadice.web.client.tool.events.EventObject
com.levigo.jadice.web.client.tool.events.EditEvent
com.levigo.jadice.web.client.tool.events.PointedEditEvent
com.levigo.jadice.web.client.tool.events.MouseEditEvent
-
Field Summary
FieldsFields inherited from class com.levigo.jadice.web.client.tool.events.EditEvent
document, pageBoundsFields inherited from class com.levigo.jadice.web.client.tool.events.EventObject
source -
Method Summary
Modifier and TypeMethodDescriptiongetAbsolutePoint(int finger) intintReturn the point relative to the RenderedPage's origin in screen coordinates.com.google.gwt.event.dom.client.MouseEvent<?> Creates and returns anInputEvent.getPoint()getPoint(int finger) Return the point relative to the RenderedPage's origin in screen coordinates.intgetX()intgetY()booleanMethods inherited from class com.levigo.jadice.web.client.tool.events.PointedEditEvent
getConstrainedDocumentPoint, getConstrainedDocumentPoint, getConstrainedPoint, getDocumentPoint, getDocumentPoint, getPointerRelativeX, getPointerRelativeY, getX, getY, isWithinPageBounds, setOldPositionMethods inherited from class com.levigo.jadice.web.client.tool.events.EditEvent
consume, create, getDocument, getInputEventType, getModifiers, getModifiersEx, getPage, getPageIndex, getPageRenderControls, getRenderedPageBounds, getRenderedSize, getWhen, hasCanvasTargetSource, hasPageContext, isAltDown, isAltGraphDown, isConsumed, isControlDown, isMetaDown, isPreventPageViewFocus, isShiftDown, preventPageViewFocus, toStringMethods inherited from class com.levigo.jadice.web.client.tool.events.EventObject
getSource
-
Field Details
-
clickCount
public final int clickCount
-
-
Method Details
-
getGwtEvent
public com.google.gwt.event.dom.client.MouseEvent<?> getGwtEvent()- Overrides:
getGwtEventin classEditEvent
-
getButton
public int getButton()- Returns:
- The underlying native event.
- See Also:
-
getClickCount
public int getClickCount()- Returns:
- The number of clicks recognized by this Event.
- See Also:
-
getPoint
-
getPoint
Description copied from class:PointedEditEventReturn the point relative to the RenderedPage's origin in screen coordinates.- Specified by:
getPointin classPointedEditEvent- Parameters:
finger- the finger of the touch (only for touch event)- Returns:
- The point relative to the RenderedPage's origin.
- See Also:
-
getAbsolutePoint
-
getAbsolutePoint
- Specified by:
getAbsolutePointin classPointedEditEvent- Parameters:
finger- the finger of the touch (only for touch event)- Returns:
- the Point relative to the PageView-TopLeft
-
getInputEvent
Creates and returns anInputEvent.For legacy purposes only.
- Specified by:
getInputEventin classEditEvent- Returns:
- An input event that can be used for legacy purposes.
-
getConstrainedPoint
Return the point relative to the RenderedPage's origin in screen coordinates. If the point is outside the rendered page's bounds, the point is constrained to lie within the bounds.Caveat: Clients must not attempt to call this method unless
EditEvent.hasPageContext()returnedtrue.- Returns:
- The point.
- Throws:
IllegalStateException- if the event does not have a page context.- See Also:
-
getX
public int getX()- Returns:
- The x coordinate of the point where the mouse was clicked.
- See Also:
-
getY
public int getY()- Returns:
- The y coordinate of the point where the mouse was clicked.
- See Also:
-
isWithinPageBounds
public boolean isWithinPageBounds()- Returns:
- True, if the event was fired by a click within the bounds, false else.
-