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 Attributes | Constructor Name and Description |
---|---|
IlvImageView(left, top, width, height, image)
|
Method Attributes | Method Name and Description |
---|---|
addErrorListener(listener)
Adds a listener to be called when an error occurs during the current
request for an image from the server.
|
|
addImageLoadingListener(listener)
Adds a listener to be called when the view has begun loading a new image.
|
|
addImageLoadListener(listener)
Adds a listener to be called when the view has loaded 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(parentNode)
Creates the HTML for this component's child views.
|
|
dispose()
Disposes of all resources being used by the view.
|
|
Returns whether new images will be revealed by fading the previous image.
|
|
Returns the cursor of the view.
|
|
Returns the piece of HTML for the view.
|
|
getImage()
Returns the image of the view.
|
|
Returns the size of the view's image.
|
|
Returns the scroll position of this view.
|
|
Returns the timeout interval for image requests to the server, in seconds.
|
|
Returns the tooltip text of the image.
|
|
Returns whether an image is loaded in the view.
|
|
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, left, top)
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.
|
|
Starts a timer for errors.
|
|
Stops the error timer.
|
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 |
setImage()
method to set the image URL.
view
: The IlvImageView.view
: The IlvImageView.view
: The IlvImageView.view
: The IlvImageView.view
: The IlvImageView.view
: The IlvImageView.IlvImageView
's internal implementation and is not a public API.
IlvObject.callDispose()
function on the onunload
event
of the page:
<body onunload="IlvObject.callDispose()">
true
.
width
and
height
.x
and y
.IlvImageView
.
addErrorListener
.
addImageLoadListener
.
addImagePreloadListener
.
addTimeoutErrorListener
.
true
. This method is available only on
Internet Explorer and will be ignored on Netscape Communicator.
IlvImageView
's internal implementation and is not a public API.
width < 0
, the image width will be scaled
to fit the width of the view.
height < 0
, the image height will be scaled
to fit the height of the view.
width < 0
, the image width will be
scaled to fit the width of the view.
height < 0
, the image height will
be scaled to fit the height of the view.
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.