IlvObject | +--IlvEmptyView | +--IlvButton
IlvButton
is a DHTML button component that will call some
JavaScript code or function when clicked. The button images are scaled to
fit the button bounds specified in the constructor or by the
setBounds
method.Constructor Attributes | Constructor Name and Description |
---|---|
IlvButton(left, top, width, height, image, action)
|
Method Attributes | Method Name and Description |
---|---|
childrenToHTML(parentNode)
Creates the HTML for this component's children.
|
|
dispose()
Disposes of all resources being used by the button.
|
|
doClick()
This method is invoked when the user clicks the button.
|
|
Returns the action to be triggered each time this button is pressed.
|
|
return the baseTextDirection.
|
|
Returns the cursor of the button.
|
|
getImage()
Returns the image of the button.
|
|
Returns the message to be displayed when the mouse is over the button.
|
|
Returns the message panel where the messages will be displayed.
|
|
Returns the rollover image of the button.
|
|
Returns the selected image of the button.
|
|
Returns the tooltip text of the button.
|
|
getWidth()
|
|
Returns whether this button is enabled.
|
|
Indicates whether or not this button is selected.
|
|
Indicates whether or not this button is in toggle mode.
|
|
mouseDown(e)
This method is invoked when the mouse is pressed.
|
|
mouseOut(e)
This method is invoked when the mouse leaves the button.
|
|
mouseOver(e)
This method is invoked when the mouse is over the button.
|
|
mouseUp(e)
This method is invoked when the mouse is released.
|
|
setAction(action)
Sets the action to be triggered each time this button is pressed.
|
|
setBaseTextDirection(baseTextDirection)
Sets the baseTextDirection.
|
|
setChildrenBounds(left, top, width, height)
Changes the size of the button's child views.
|
|
setCursor(cursor)
Changes the cursor of the button.
|
|
setEnabled(enabled)
Sets whether this button is enabled.
|
|
setImage(image)
Sets the image of the button.
|
|
setMessage(message)
Sets the message to be displayed when the mouse is over the button.
|
|
setMessagePanel(ilvHTMLPanel)
Sets the message panel where the message will be displayed.
|
|
setRolloverImage(image)
Sets the rollover image of the button.
|
|
setSelected(selected)
Sets the button in selected mode.
|
|
setSelectedImage(image)
Sets the selected image of the button.
|
|
setToggleButton(selected)
Sets or removes the toggle mode for the button.
|
|
setToolTipText(string)
Sets the tooltip text of the button.
|
addSizeListener, getBounds, getLeft, getLocation, getSize, getTop, isStateInCookie, removeSizeListener, restoreState, saveState, setBounds, setLocation, setSize, setStateInCookie, toHTML |
getClassName, hashCode, instanceOf, invoke, registerDispose, registerDisposeByClientId, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility |
IlvButton
's internal implementation
and is not a public API.
IlvObject.callDispose()
function on the onunload
event
of the page:
<body onunload="IlvObject.callDispose()">
IlvHTMLPanel
or null
.IlvButton
's internal
implementation and is not a public API.
setMessagePanel
method.
IlvHTMLPanel
.