|
Sydney | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Widget | +--ToolbarButton
Raises:
click
null
.Fields inherited from class Widget |
html, id, parent, layoutData, eventTable
|
Constructor Summary | |
ToolbarButton
(<string> icon, <string> label, <boolean> isVertical, <Quantity> size, <Function> clickEvent, <boolean> disabled)
Creates a new button that should be used in a toolbar. |
Method Summary | |
void
|
setIcon(icon)
|
void
|
setLabel(label)
|
void
|
toggleStatus()
|
Constructor Detail |
function ToolbarButton(<string> icon, <string> label, <boolean> isVertical, <Quantity> size, <Function> clickEvent, <boolean> disabled)
icon
- the source URL for the icon's image file. icon
is relative to Icon.base
.
label
- the label to display on the button
isVertical
- this variable is supposed to control whether the label is below the icon or to the right of the icon. This doesn't currently work, and the label is always below the icon.
size
- the desired size of the button
clickEvent
- (Optional) - a click-listener for this button. Defaults to no listener, but listeners can always be attached to the button via Widget.addEventListener()
.
disabled
- (Optional) - a flag indicating whether or not the button is initially disabled. Defaults to false
, meaning that the button is enabled by default.
Method Detail |
void setIcon(icon)
void setLabel(label)
void toggleStatus()
|
Sydney | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |