| PREV CLASS Documentation homepage NEXT CLASS |
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 Summary | |
|---|---|
IlvImageEventView(left, top, width, height, image)
|
|
| Method Summary | |
|---|---|
childrenToHTML()
Creates the HTML for this component's child views. |
|
getEventHandler()
Returns the event handler that is receiving keyboard and mouse events from this view. |
|
getEventOriginLeft()
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. |
|
getEventOriginTop()
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. |
|
isEnabled()
Returns whether the view is enabled. |
|
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. |
|
| Constructor Detail |
IlvImageEventView(left, top, width, height, image)
| Method Detail |
childrenToHTML()
IlvImageView's internal implementation and is not a public API. getEventHandler()
getEventOriginLeft()
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. getEventOriginTop()
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. isEnabled()
setChildrenBounds(left, top, width, height)
IlvImageEventView's internal implementation and is not a public
API. left - The absolute x position of the view on the page.top - The absolute y position of the view on the page.width - The width of the view.height - The height of the view.setCursor(cursor)
cursor - The cursor name.setEnabled(enabled)
setEventHandler(eventHandler)
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.eventHandler - The handler that will receive events from this image
view.setToolTipText(string)
string - A string.setVisible(visible)
| Inherited Methods from IlvImageView |
| Inherited Methods from IlvEmptyView |
| Inherited Methods from IlvObject |
| PREV CLASS Documentation homepage NEXT CLASS |