| PREV CLASS Documentation homepage NEXT CLASS |
IlvObject
|
+--IlvEmptyView
|
+--IlvImageView
IlvImageView is an extension of IlvEmptyView
that is designed to display an image. By default, the image is scaled to fit
the view. Use the setImageSize() method to set the image size
independent of the view size. | Constructor Summary | |
|---|---|
IlvImageView(left, top, width, height, image)
|
|
| Method Summary | |
|---|---|
addErrorListener(listener)
Adds a listener to be called when an error occurs during the current request for an image from the server. |
|
addImageLoadListener(listener)
Adds a listener to be called when the view has loaded a new image. |
|
addImageLoadingListener(listener)
Adds a listener to be called when the view has begun loading a new image. |
|
addImagePreloadListener(listener)
Adds a listener to be called when the view has loaded a new image, but before the new image is made visible. |
|
addScrollListener(listener)
Adds a listener to be called when the view has been scrolled. |
|
addTimeoutErrorListener(listener)
Adds a listener to be called when a timeout has occurred during the current request for an image from the server. |
|
childrenToHTML()
Creates the HTML for this component's child views. |
|
dispose()
Disposes of all resources being used by the view. |
|
getBlendTransform()
Returns whether new images will be revealed by fading the previous image. |
|
getCursor()
Returns the cursor of the view. |
|
getHTMLContent()
Returns the piece of HTML for the view. |
|
getImage()
Returns the image of the view. |
|
getImageSize()
Returns the size of the view's image. |
|
getScrollPosition()
Returns the scroll position of this view. |
|
getTimeoutInterval()
Returns the timeout interval for image requests to the server, in seconds. |
|
getToolTipText()
Returns the tooltip text of the image. |
|
isImageLoaded()
Returns whether an image is loaded in the view. |
|
isVisible()
Returns the visibility of this view. |
|
onTimeout(view)
This method is automatically invoked when a timeout error occurs. |
|
removeErrorListener(listener)
Removes a listener installed with addErrorListener. |
|
removeImageLoadListener(listener)
Removes a listener installed with addImageLoadListener. |
|
removeImagePreloadListener(listener)
Removes a listener installed with addImagePreloadListener. |
|
removeTimeoutErrorListener(listener)
Removes a listener installed with addTimeoutErrorListener. |
|
setBackgroundColor(color)
Sets the background color of the image view. |
|
setBlendTransform(set)
Sets whether new images will be revealed by fading the previous image. |
|
setChildrenBounds(left, top, width, height)
Changes the size of the view's child views. |
|
setCursor(cursor)
Sets the cursor of the view. |
|
setImage(image, width, height)
Sets the image of the view. |
|
setImageSize(width, height, skipImageRedisplay)
Sets the size of the view's image. |
|
setScrollPosition(x, y)
Sets the scroll position of this view. |
|
setTimeoutInterval(interval)
Sets the timeout interval for loading an image from the server. |
|
setToolTipText(string)
Sets the tooltip text of the image. |
|
setVisible(visible)
Sets the visibility of this view. |
|
startErrorTimer()
Starts a timer for errors. |
|
stopErrorTimer()
Stops the error timer. |
|
| Constructor Detail |
IlvImageView(left, top, width, height, image)
| Method Detail |
addErrorListener(listener)
listener - The listener function, which must have the following
parameters:
view: The IlvImageView.addImageLoadListener(listener)
listener - The listener function, which must have the following
parameters:
view: The IlvImageView.addImageLoadingListener(listener)
listener - The listener function, which must have the following
parameters:
view: The IlvImageView.addImagePreloadListener(listener)
listener - The listener function, which must have the following
parameters:
view: The IlvImageView.addScrollListener(listener)
listener - The listener function, which must have the following
parameters:
view: The IlvImageView.addTimeoutErrorListener(listener)
listener - The listener function, which must have the following
parameters:
view: The IlvImageView.childrenToHTML()
IlvImageView's internal implementation and is not a public API. dispose()
IlvObject.callDispose() function on the onunload event
of the page:
<body onunload="IlvObject.callDispose()">
getBlendTransform()
true. getCursor()
getHTMLContent()
getImage()
getImageSize()
width and
height.getScrollPosition()
x and y.getTimeoutInterval()
getToolTipText()
isImageLoaded()
isVisible()
onTimeout(view)
view - The IlvImageView.removeErrorListener(listener)
addErrorListener. listener - The listener to remove.removeImageLoadListener(listener)
addImageLoadListener. listener - The listener to remove.removeImagePreloadListener(listener)
addImagePreloadListener. listener - The listener to remove.removeTimeoutErrorListener(listener)
addTimeoutErrorListener. listener - The listener to remove.setBackgroundColor(color)
color - A string describing the color.
For example, "#FFFFFF" corresponds to white.setBlendTransform(set)
true. This method is available only on
Internet Explorer and will be ignored on Netscape Communicator. setChildrenBounds(left, top, width, height)
IlvImageView'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.setImage(image, width, height)
image - The URL of the image.width - The optional width of the image. Both the width and height
must be specified in order to set the size of the new image.
If either the width or height parameters are omitted, the
view's image size will not be changed.
If width < 0, the image width will be scaled
to fit the width of the view.height - The optional height of the image. Both the width and height
must be specified in order to set the size of the new image.
If either the width or height parameters are omitted, the
view's image size will not be changed.
If height < 0, the image height will be scaled
to fit the height of the view.setImageSize(width, height, skipImageRedisplay)
width - The width of the image. If
width < 0, the image width will be
scaled to fit the width of the view.height - The height of the image. If
height < 0, the image height will
be scaled to fit the height of the view.skipImageRedisplay - A Boolean flag that indicates that the view's
current image should not be scaled and redisplayed
at the new size. This is useful if this call to
setImageSize() will be immediately
followed by a call to setImage. If
skipImageRedisplay is omitted or is
false, then the view's current image
will be scaled and displayed at the new size.setScrollPosition(x, y)
x - The scroll position along the x-axis, relative to the top of the
panel.y - The scroll position along the y-axis, relative to the left side of
the panel.setTimeoutInterval(interval)
interval - The timeout, specified in seconds. The default value is 600
or 10 minutes.setToolTipText(string)
string - A string.setVisible(visible)
startErrorTimer()
stopErrorTimer()
| Inherited Methods from IlvEmptyView |
| Inherited Methods from IlvObject |
| PREV CLASS Documentation homepage NEXT CLASS |