IlvObject | +--IlvEmptyView | +--IlvImageView | +--IlvImageEventView
IlvImageEventView
is an extension of
IlvImageView
designed to display an image and forward all input
events to an event handler.Constructor Attributes | Constructor Name and Description |
---|---|
IlvImageEventView(left, top, width, height, image)
|
Method Attributes | Method Name and Description |
---|---|
childrenToHTML(parentNode)
Creates the HTML for this component's child views.
|
|
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 whether the view is enabled.
|
|
removeHTML()
|
|
setChildrenBounds(left, top, width, height)
Changes the size of the view's child views.
|
|
setCursor(cursor)
Sets 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 image.
|
|
setVisible(visible)
Sets the visibility of this view.
|
addSizeListener, getBounds, getHeight, getLeft, getLocation, getSize, getTop, getWidth, isStateInCookie, removeSizeListener, restoreState, saveState, setBounds, setLocation, setSize, setStateInCookie, toHTML |
getClassName, hashCode, instanceOf, invoke, registerDispose, registerDisposeByClientId, setClassName, superConstructor, superInvoke, toString, updateVisibility |
setImage()
method to set the image URL.
IlvImageView
's internal implementation and is not a public API.
e.mouseX
coordinate when mouse events are forwarded to the event
handler. This implementation returns the left coordinate of this image 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 image view.
Override this function to forward mouse events that are relative to a
different origin.
IlvImageEventView
's internal implementation and is not a public
API.
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.
mouseDown(e)
handles Mouse down events.e
- The mouse event.
mouseDrag(e)
handles Mouse drag events.e
- The mouse event.
mouseUp(e)
handles Mouse up events.e
- The mouse event.
mouseOver(e)
handles Mouse over events.e
- The mouse event.
mouseOut(e)
handles Mouse out events.e
- The mouse event.
Mouse events have the following 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.