Class EditEvent
java.lang.Object
com.levigo.jadice.web.client.tool.events.EventObject
com.levigo.jadice.web.client.tool.events.EditEvent
- Direct Known Subclasses:
KeyEditEvent
,MouseWheelEditEvent
,PointedEditEvent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Document
protected final com.google.gwt.event.dom.client.DomEvent
<?> protected final Rectangle
Fields inherited from class com.levigo.jadice.web.client.tool.events.EventObject
source
-
Method Summary
Modifier and TypeMethodDescriptionvoid
consume()
static EditEvent
create
(PageView source, com.google.gwt.event.dom.client.DomEvent<?> e, Page page, int pageIndex, Rectangle renderBounds, RenderControls renderControls, int clickCount, boolean isPopupTrigger) Create the correct EditEvent for the given InputEvent.com.google.gwt.event.dom.client.DomEvent
<?> abstract InputEvent
Overridden in subclasses.com.google.gwt.event.dom.client.DomEvent.Type
<?> int
Deprecated.int
Deprecated.use for example isAltDown,...getPage()
Return the Page to which this event pertains to.int
ReturnRenderControls
used to render the page this event pertains to.Return bounds of the rendered page this event pertains to.Return size of the rendered page this event pertains to.long
getWhen()
Deprecated.not supported in GWTboolean
boolean
Return whether this event has aPage
as a context.boolean
boolean
Deprecated.dont use this, see http://msdn.microsoft.com/en-us/library/windows/desktop/aa511502.aspx and search for AltGr: "Don't use Ctrl+Alt combinations, because Windows interprets this combination in some language versions as an AltGR key, which generates alphanumeric characters."boolean
boolean
boolean
boolean
boolean
void
Prevent, that the PageView gets the Focus after anMouseDownEvent
.toString()
Returns a String representation of this EventObject.Methods inherited from class com.levigo.jadice.web.client.tool.events.EventObject
getSource
-
Field Details
-
inputEvent
protected final com.google.gwt.event.dom.client.DomEvent<?> inputEvent -
pageBounds
-
document
-
-
Method Details
-
getDocument
-
getRenderedSize
Return size of the rendered page this event pertains to.Caveat: Clients must not attempt to call this method unless
hasPageContext()
returnedtrue
.- Returns:
- The rendered size
- Throws:
IllegalStateException
- if the event does not have a page context
-
getRenderedPageBounds
Return bounds of the rendered page this event pertains to.Caveat: Clients must not attempt to call this method unless
hasPageContext()
returnedtrue
.- Returns:
- The rendered page bounds
- Throws:
IllegalStateException
- if the event does not have a page context
-
getInputEvent
Overridden in subclasses.Implement only for legacy purposes.
- Returns:
- The inputEvent used for legacy purposes.
-
getGwtEvent
public com.google.gwt.event.dom.client.DomEvent<?> getGwtEvent() -
getPageRenderControls
ReturnRenderControls
used to render the page this event pertains to.Caveat: Clients must not attempt to call this method unless
hasPageContext()
returnedtrue
.- Returns:
- The
RenderControls
- Throws:
IllegalStateException
- if the event does not have a page context- See Also:
-
isConsumed
public boolean isConsumed() -
consume
public void consume() -
preventPageViewFocus
public void preventPageViewFocus()Prevent, that the PageView gets the Focus after anMouseDownEvent
. Use this if you have your own focus on some elements, so the PageView will not steal the focus. -
isPreventPageViewFocus
public boolean isPreventPageViewFocus() -
getModifiers
Deprecated.- Returns:
- deprecated - don't use
- See Also:
-
getModifiersEx
Deprecated.use for example isAltDown,...- Returns:
- deprecated - don't use
- See Also:
-
getWhen
Deprecated.not supported in GWT- Returns:
- deprecated - don't use
- See Also:
-
isAltDown
public boolean isAltDown()- Returns:
true
if the alt key is pressed. Otherwisefalse
- See Also:
-
isAltGraphDown
Deprecated.dont use this, see http://msdn.microsoft.com/en-us/library/windows/desktop/aa511502.aspx and search for AltGr: "Don't use Ctrl+Alt combinations, because Windows interprets this combination in some language versions as an AltGR key, which generates alphanumeric characters."- Returns:
- deprecated - don't use
- See Also:
-
isControlDown
public boolean isControlDown()- Returns:
- True if control is down, false else
- See Also:
-
isMetaDown
public boolean isMetaDown()- Returns:
- True if meta is down, false else
- See Also:
-
isShiftDown
public boolean isShiftDown()- Returns:
- True if shift is down, false else
- See Also:
-
getInputEventType
public com.google.gwt.event.dom.client.DomEvent.Type<?> getInputEventType()- Returns:
- the Type of the InputEvent
-
getPage
Return the Page to which this event pertains to. This may benull
for events happening outside the scope of a page.- Returns:
- the page
-
getPageIndex
public int getPageIndex()- Returns:
- The page index
-
hasPageContext
public boolean hasPageContext()Return whether this event has aPage
as a context. An event typically has a page as its context, if the mouse currently resides within the bounds of some rendered page. In some cases, an event can have a context page, event if the mouse is not currently within the page's render bounds, such as for drag events for a drag gesture that started within the bounds but have since left it.Caveat: Clients must not attempt to call this method unless
hasPageContext()
returnedtrue
.- Returns:
- whether the current event has a page as its context
- Throws:
IllegalStateException
- if the event does not have a page context- See Also:
-
hasCanvasTargetSource
public boolean hasCanvasTargetSource() -
toString
Description copied from class:EventObject
Returns a String representation of this EventObject.- Overrides:
toString
in classEventObject
- Returns:
- A a String representation of this EventObject.