Class IlvHTMLPanel
IlvObject
|
+--IlvPanel
|
+--IlvHTMLPanel
- Category:
- Common component
- JavaScript File:
-
IlvUtil.js
- Description:
IlvHTMLPanel
is a panel designed to be updated
with the setContent
method. It is a subclass of
IlvPanel
.
Constructor Summary
Constructor Attributes |
Constructor Name and Description |
|
|
Method Summary
Method Attributes |
Method Name and Description |
|
Retrieves the document managed by the panel.
|
|
Sets the content of this panel.
|
Methods inherited from class IlvPaneldispose, getBounds, getClip, getCursor, getHeight, getLeft, getMouseEventSource, getScrollPosition, getTop, getWidth, getZIndex, isVisible, setBackgroundColor, setBackgroundImage, setBounds, setClip, setCursor, setLocation, setScrollPosition, setSize, setVisible, setZIndex, translate |
Methods inherited from class IlvObjectgetClassName, hashCode, instanceOf, invoke, registerDispose, registerDisposeByClientId, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility |
Constructor Detail
IlvHTMLPanel
IlvHTMLPanel(HTMLContent, parentNode)
- Parameters:
-
HTMLContent
- A string that contains the HTML code of this panel content.
-
parentNode
- (Optional) The parent DOM element of this panel. If this parameter is not set,
this panel HTML rendering is done in the current postion in the DOM (using document.write method).
Method Detail
getDocument
getDocument()
Retrieves the document managed by the panel.
setContent
setContent(content, onContentSet)
Sets the content of this panel.
Note: In Netscape this method cannot be called within the BODY tag.
If you need to dynamically change the content of an HTML panel,
you must wait until the BODY of the main document has been completely
parsed.
- Parameters:
-
content
- A string representing the HTML content of the panel.
-
onContentSet
- An optional JavaScript fragment or a function with
one parameter (this panel) that will be evaluated, after the browser's
DOM has stabilized from the changes made by this method.
©Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.