IlvObject | +--IlvEmptyView | +--IlvGlassView
IlvGlassView
is an extension of IlvEmptyView
that is designed to capture keyboard and mouse input events and forward them
to an event handler. By default, an IlvGlassView
is transparent.
Therefore, you can place a glass view above other content as a way to
trap user input events.Constructor Attributes | Constructor Name and Description |
---|---|
IlvGlassView(left, top, width, height)
|
Method Attributes | Method Name and Description |
---|---|
childrenToHTML(parentNode)
Creates the HTML for this component's children.
|
|
Warning: This method is considered to be part of the
|
|
convertTouchEvent(e, et)
Warning: This method is considered to be part of the
|
|
dispose()
Disposes of all resources being used by the view.
|
|
enhanceEvent(e, forceClone)
This method returns an
Event suitable for the IlvGlassView |
|
Returns the HTML content of the glass view.
|
|
Returns the cursor of the view.
|
|
Returns the event handler that is receiving keyboard and mouse events from
this view.
|
|
Returns the origin along the x-axis that is used to compute the relative
e.mouseX coordinate when mouse events are forwarded to the event
handler. |
|
Returns the origin along the y-axis that is used to compute the relative
e.mouseY coordinate when mouse events are forwarded to the event
handler. |
|
Returns the ID of the HTML element that represents the
IlvGlassView in the HTML document. |
|
Returns the tooltip text of the view.
|
|
hasMoved()
Warning: This method is considered to be part of the
|
|
Returns whether the view is enabled.
|
|
isScale(e, c)
Warning: This method is considered to be part of the
|
|
Returns the visibility of this view.
|
|
Warning: This method is considered to be part of the
|
|
setBackgroundColor(color)
Sets the background color of the glass view.
|
|
setChildrenBounds(left, top, width, height)
Changes the size of this view's children.
|
|
setContent(onContentSet, onContentSet)
Sets the HTML content of the glass view.
|
|
setCursor(cursor)
Changes the cursor of the view.
|
|
setEnabled(enabled)
Enables or disables the view.
|
|
setEventHandler(eventHandler)
Sets the event handler that will receive keyboard and mouse events from
this view.
|
|
setToolTipText(string)
Sets the tooltip text of the view.
|
|
setVisible(visible)
Sets the visibility of this view.
|
|
setZIndex(zindex)
Change the Z coordinate of the view
|
|
Warning: This method is considered to be part of the
|
addSizeListener, getBounds, getHeight, getLeft, getLocation, getSize, getTop, getWidth, isStateInCookie, removeSizeListener, restoreState, saveState, setBounds, setLocation, setSize, setStateInCookie, toHTML |
getClassName, hashCode, instanceOf, invoke, registerDispose, registerDisposeByClientId, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility |
IlvGlassView
's internal implementation
and is not a public API.
Warning: This method is considered to be part of the
IlvGlassView
internal implementation, it is not
a public API.
This method clears the stored touch context; it is invoked whenever the touch action has ended (or has been cancelled).
Warning: This method is considered to be part of the
IlvGlassView
internal implementation, it is not
a public API.
This method converts a touch event into a mouse event and then dispatches it to the appropriate mouse handler.
IlvObject.callDispose()
function on the onunload
event
of the page:
<body onunload="IlvObject.callDispose()">
Event
suitable for the IlvGlassView
coordinate system from the given Event
coming from the browser
event system. The new coordinate are stored in mouseX
and
mouseY
properties of the returned event.
Event
true
to force the cloning of the event.
IlvConstants.ilvImagePath + "empty.gif"
, where
IlvConstants.ilvImagePath = "script/images/"
.
e.mouseX
coordinate when mouse events are forwarded to the event
handler. This implementation returns the left coordinate of this glass view.
Override this function to forward mouse events that are relative to a different
origin.
e.mouseY
coordinate when mouse events are forwarded to the event
handler. This implementation returns the top coordinate of this glass view.
Override this function to forward mouse events that are relative to a different
origin.
IlvGlassView
in the HTML document.
Warning: This method is considered to be part of the
IlvGlassView
internal implementation, it is not
a public API.
This method returns whether the current touch action represents a touch move or not.
Warning: This method is considered to be part of the
IlvGlassView
internal implementation, it is not
a public API.
This method returns whether the current multi-touch action represents a scale gesture or not.
Warning: This method is considered to be part of the
IlvGlassView
internal implementation, it is not
a public API.
This method records actual touch-move actions to the touch context.
This is required because touchend
events do not have the
last position when the user lifted the finger off the touch surface.
IlvGlassView
's internal implementation
and is not a public API.
IlvConstants.ilvImagePath + "empty.gif"
, where
IlvConstants.ilvImagePath = "script/images/"
.
keyPress(e)
handles Key press events.e
- The key event with the following read-only properties:
e.type: A string representing the event type. e.keyCode: The code of the key.
mouseMove(e)
handles Mouse move events.e
- The mouse event with 8 read-only properties:
e.type: A string representing the event type. e.mouseX: The mouse X coordinate relative to the value returned by the getEventOriginLeft function. e.mouseY: The mouse Y coordinate relative to the value returned by the getEventOriginTop function. e.screenX: The absolute mouse X coordinate in the screen. e.screenY: The absolute mouse Y coordinate in the screen. e.altKey: A Boolean, true when the ALT key is pressed. e.ctrlKey: A Boolean, true when the CONTROL key is pressed. e.shiftKey: A Boolean, true when the SHIFT key is pressed.
mouseDown(e)
handles Mouse down events.e
- The mouse event with 8 read-only properties:
e.type: A string representing the event type. e.mouseX: The mouse X coordinate relative to the value returned by the getEventOriginLeft function. e.mouseY: The mouse Y coordinate relative to the value returned by the getEventOriginTop function. e.screenX: The absolute mouse X coordinate in the screen. e.screenY: The absolute mouse Y coordinate in the screen. e.altKey: A Boolean, true when the ALT key is pressed. e.ctrlKey: A Boolean, true when the CONTROL key is pressed. e.shiftKey: A Boolean, true when the SHIFT key is pressed.
mouseDrag(e)
handles Mouse drag events.e
- The mouse event with 8 read-only properties:
e.type: A string representing the event type. e.mouseX: The mouse X coordinate relative to the value returned by the getEventOriginLeft function. e.mouseY: The mouse Y coordinate relative to the value returned by the getEventOriginTop function. e.screenX: The absolute mouse X coordinate in the screen. e.screenY: The absolute mouse Y coordinate in the screen. e.altKey: A Boolean, true when the ALT key is pressed. e.ctrlKey: A Boolean, true when the CONTROL key is pressed. e.shiftKey: A Boolean, true when the SHIFT key is pressed.
mouseUp(e)
handles Mouse up events.e
- The mouse event with 8 read-only properties:
e.type: A string representing the event type. e.mouseX: The mouse X coordinate relative to the value returned by the getEventOriginLeft function. e.mouseY: The mouse Y coordinate relative to the value returned by the getEventOriginTop function. e.screenX: The absolute mouse X coordinate in the screen. e.screenY: The absolute mouse Y coordinate in the screen. e.altKey: A Boolean, true when the ALT key is pressed. e.ctrlKey: A Boolean, true when the CONTROL key is pressed. e.shiftKey: A Boolean, true when the SHIFT key is pressed.
mouseOver(e)
handles Mouse over events.e
- The mouse event with 8 read-only properties:
e.type: A string representing the event type. e.mouseX: The mouse X coordinate relative to the value returned by the getEventOriginLeft function. e.mouseY: The mouse Y coordinate relative to the value returned by the getEventOriginTop function. e.screenX: The absolute mouse X coordinate in the screen. e.screenY: The absolute mouse Y coordinate in the screen. e.altKey: A Boolean, true when the ALT key is pressed. e.ctrlKey: A Boolean, true when the CONTROL key is pressed. e.shiftKey: A Boolean, true when the SHIFT key is pressed.
mouseOut(e)
handles Mouse out events.e
- The mouse event with 8 read-only properties:
e.type: A string representing the event type. e.mouseX: The mouse X coordinate relative to the value returned by the getEventOriginLeft function. e.mouseY: The mouse Y coordinate relative to the value returned by the getEventOriginTop function. e.screenX: The absolute mouse X coordinate in the screen. e.screenY: The absolute mouse Y coordinate in the screen. e.altKey: A Boolean, true when the ALT key is pressed. e.ctrlKey: A Boolean, true when the CONTROL key is pressed. e.shiftKey: A Boolean, true when the SHIFT key is pressed.
mouseWheel(e)
handles Mouse wheel events.e
- The mouse event with the following read-only property:
e.wheelDelta: The amount of scrolling: This value is positive if the mouse wheel was scrolled up and negative otherwise. This amount depends on the mouse configuration and on the browser.
Warning: This method is considered to be part of the
IlvGlassView
internal implementation, it is not
a public API.
This method records the context information when the user first starts to interact with the screen. This information is required in order to detect touch actions (such as touch-move, tap, etc).