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 Attributes | Constructor Name and Description |
---|---|
IlvToolBar(left, top)
|
Method Attributes | Method Name and Description |
---|---|
addButton(button, index)
Adds a button to the toolbar at the specified index.
|
|
childrenToHTML(parentNode)
Creates the HTML for this toolbar's children.
|
|
Computes and returns the height of this toolbar in pixels.
|
|
Computes and returns the width of this toolbar in pixels.
|
|
Returns the background color of the toolbar.
|
|
Returns the background image of the toolbar.
|
|
Returns the color of the toolbar border.
|
|
Returns the border thickness in pixels.
|
|
Returns an array containing the buttons in this toolbar.
|
|
Returns the button spacing in pixels.
|
|
getIndex(button)
Returns the index of an
IlvButton in the toolbar, or -1 if
the button is not in the toolbar. |
|
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.
|
addSizeListener, getBounds, getHeight, getLeft, getLocation, getSize, getTop, getWidth, isStateInCookie, removeSizeListener, restoreState, saveState, setLocation, setSize, setStateInCookie, toHTML |
dispose, getClassName, hashCode, instanceOf, invoke, registerDispose, registerDisposeByClientId, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility |
IlvButton
to be added to the toolbar.
IlvToolBar
's internal implementation
and is not a public API.
null
if
the color of the border is the same as the color of the toolbar.addButton
to modify the toolbar.
IlvButton
in the toolbar, or -1 if
the button is not in the toolbar.
IlvButton
whose index should be returned.
null
to set
the color of the border to be the same as the color of the toolbar.
IlvToolBar
's internal implementation
and is not a public API.
IlvToolBar.VERTICAL
or IlvToolBar.HORIZONTAL
.
The default value is IlvToolBar.HORIZONTAL
.