| PREV CLASS Documentation homepage NEXT CLASS |
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 Summary | |
|---|---|
IlvButton(left, top, width, height, image, action)
|
|
| Method Summary | |
|---|---|
childrenToHTML()
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. |
|
getAction()
Returns the action to be triggered each time this button is pressed. |
|
getCursor()
Returns the cursor of the button. |
|
getHeight()
|
|
getImage()
Returns the image of the button. |
|
getMessage()
Returns the message to be displayed when the mouse is over the button. |
|
getMessagePanel()
Returns the message panel where the messages will be displayed. |
|
getRolloverImage()
Returns the rollover image of the button. |
|
getSelectedImage()
Returns the selected image of the button. |
|
getToolTipText()
Returns the tooltip text of the button. |
|
getWidth()
|
|
isEnabled()
Returns whether or not this button is enabled. |
|
isSelected()
Indicates whether or not this button is selected. |
|
isToggleButton()
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. |
|
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 or not 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(set)
Sets or removes the toggle mode for the button. |
|
setToolTipText(string)
Sets the tooltip text of the button. |
|
| Constructor Detail |
IlvButton(left, top, width, height, image, action)
| Method Detail |
childrenToHTML()
IlvButton's internal implementation
and is not a public API. dispose()
IlvObject.callDispose() function on the onunload event
of the page:
<body onunload="IlvObject.callDispose()">
doClick()
getAction()
getCursor()
getHeight()
getImage()
getMessage()
getMessagePanel()
IlvHTMLPanel or null.getRolloverImage()
getSelectedImage()
getToolTipText()
getWidth()
isEnabled()
isSelected()
isToggleButton()
mouseDown(e)
mouseOut(e)
mouseOver(e)
mouseUp(e)
setAction(action)
action - A String representing a JavaScript code or a JavaScript
function.setChildrenBounds(left, top, width, height)
IlvButton's internal
implementation and is not a public API. left - The absolute x position of the button on the page.top - The absolute y position of the button on the page.width - The width of the button.height - The height of the button.setCursor(cursor)
cursor - The cursor name.setEnabled(enabled)
enabled - the enabled flag
setImage(image)
image - The URL of the image.setMessage(message)
setMessagePanel method. message - The message.setMessagePanel(ilvHTMLPanel)
ilvHTMLPanel - An instance of IlvHTMLPanel.setRolloverImage(image)
image - The URL of the image.setSelected(selected)
selected - A Boolean value.setSelectedImage(image)
image - The URL of the image.setToggleButton(set)
selected - A Boolean value.setToolTipText(string)
string - A string.| Inherited Methods from IlvEmptyView |
| Inherited Methods from IlvObject |
| PREV CLASS Documentation homepage NEXT CLASS |