| PREV CLASS Documentation homepage NEXT CLASS |
IlvObject
|
+--IlvEmptyView
|
+--IlvToolBar
IlvToolBar is a DHTML toolbar.
Instances of IlvButton can be added,
or sorted in this toolbar. Once the buttons are arranged in
the appropriate way, you can create an HTML representation of the toolbar
using the toHTML method.
This class also offers special support for computing the width and height
of the toolbar and the associated notification mechanism. | Constructor Summary | |
|---|---|
IlvToolBar(left, top)
|
|
| Method Summary | |
|---|---|
addButton(button, index)
Adds a button to the toolbar at the specified index. |
|
childrenToHTML()
Creates the HTML for this toolbar's children. |
|
computeHeight()
Computes and returns the height of this toolbar in pixels. |
|
computeWidth()
Computes and returns the width of this toolbar in pixels. |
|
getBackgroundColor()
Returns the background color of the toolbar. |
|
getBackgroundImage()
Returns the background image of the toolbar. |
|
getBorderColor()
Returns the color of the toolbar border. |
|
getBorderThickness()
Returns the border thickness in pixels. |
|
getButtonSpacing()
Returns the button spacing in pixels. |
|
getButtons()
Returns an array containing the buttons in this toolbar. |
|
getIndex(button)
Returns the index of an IlvButton in the toolbar, or -1 if
the button is not in the toolbar. |
|
getOrientation()
Returns the orientation of this toolbar. |
|
setBackgroundColor(color)
Sets the background color of the toolbar. |
|
setBackgroundImage(image)
Sets the background image of the toolbar. |
|
setBorderColor(color)
Sets the color of the toolbar border. |
|
setBorderThickness(pixels)
Sets the border thickness in pixels. |
|
setBounds(left, top, width, height)
Changes the size of the toolbar. |
|
setButtonSpacing(pixels)
Sets the button spacing in pixels. |
|
setChildrenBounds(left, top, width, height)
Changes the size of the toolbar's children. |
|
setOrientation(string)
Sets the orientation of this toolbar. |
|
| Constructor Detail |
IlvToolBar(left, top)
| Method Detail |
addButton(button, index)
button - An IlvButton to be added to the toolbar.index - The position at which the button should be added to the toolbar.
This parameter is optional.childrenToHTML()
IlvToolBar's internal implementation
and is not a public API. computeHeight()
computeWidth()
getBackgroundColor()
getBackgroundImage()
getBorderColor()
null if
the color of the border is the same as the color of the toolbar.getBorderThickness()
getButtonSpacing()
getButtons()
addButton to modify the toolbar. getIndex(button)
IlvButton in the toolbar, or -1 if
the button is not in the toolbar. button - The IlvButton whose index should be returned.getOrientation()
setBackgroundColor(color)
color - A string describing the color.
For example, "#FFFFFF" corresponds to white.setBackgroundImage(image)
image - The URL of an image.setBorderColor(color)
color - A string describing the color or null to set
the color of the border to be the same as the color of the toolbar.setBorderThickness(pixels)
setBounds(left, top, width, height)
left - The absolute x position of the toolbar on the page.top - The absolute y position of the toolbar on the page.width - The width of the toolbar. This argument is ignored.height - The height of the toolbar. This argument is ignored.setButtonSpacing(pixels)
setChildrenBounds(left, top, width, height)
IlvToolBar's internal implementation
and is not a public API. left - The absolute x position of the toolbar on the page.top - The absolute y position of the toolbar on the page.width - The width of the toolbar.height - The height of the toolbar.setOrientation(string)
IlvToolBar.VERTICAL or IlvToolBar.HORIZONTAL.
The default value is IlvToolBar.HORIZONTAL. | Inherited Methods from IlvEmptyView |
| Inherited Methods from IlvObject |
| PREV CLASS Documentation homepage NEXT CLASS |