Class zwt.ui.Toolbar
Extends
zwt.ui.container.MultipleContainer.
A tool bar widget is used to provide rapid access to commonly used controls.
CSS rules
.zwt_toolbar {}
.zwt_toolbar-vertical {}
.zwt_toolbar-horizontal {}
Defined in: Toolbar.js.
Constructor Attributes | Constructor Name and Description |
---|---|
zwt.ui.Toolbar(int_orientation)
Construct a tool bar.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
zwt.ui.Toolbar.HORIZONTAL
Indicate a horizontal tool bar
|
<static> |
zwt.ui.Toolbar.VERTICAL
Indicate a vertical tool bar
|
Method Attributes | Method Name and Description |
---|---|
Add a separator at the end of the tool bar.
|
|
insert(zwt_ui_Widget_widget, int_index)
Insert a Widget to the tool bar at the specified index.
|
|
insertSeparator(int_index)
Insert a separator to the tool bar at the specified index.
|
|
removeAt(int_index)
Remove the widget at the specified index.
|
- Methods borrowed from class zwt.ui.container.MultipleContainer:
- add, clear, get, getLength, indexOf, isFocusable, processFocusEvent, remove
- Methods borrowed from class zwt.ui.container.Container:
- getContentEventManager, isFocusContainer, processContentEvent, setFocusContainer
- Methods borrowed from class zwt.ui.Widget:
- addStyle, draw, getContextFill, getDimension, getElement, getElementDimension, getFill, getFocusEventManager, getId, getKeyboardEventManager, getParent, getRelativeLeft, getRelativeTop, getStyle, getWheelEventManager, hasFocus, hasStyle, isVisible, onEvent, processEvent, processKeyboardEvent, processWheelEvent, redraw, removeStyle, replaceStyle, setFill, setFocusable, setId, setStyle, setVisible
Class Detail
zwt.ui.Toolbar(int_orientation)
Construct a tool bar.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- Parameters:
- {Integer} int_orientation
- Specify the orientation of the tool bar. One of zwt.ui.Toolbar.VERTICAL or zwt.ui.Toolbar.HORIZONTAL.
Field Detail
<static>
{Integer}
zwt.ui.Toolbar.HORIZONTAL
Indicate a horizontal tool bar
<static>
{Integer}
zwt.ui.Toolbar.VERTICAL
Indicate a vertical tool bar
Method Detail
addSeparator()
Add a separator at the end of the tool bar.
insert(zwt_ui_Widget_widget, int_index)
Insert a Widget to the tool bar at the specified index.
- Parameters:
- {zwt.ui.Widget} zwt_ui_Widget_widget
- The widget to add.
- {Integer} int_index
- The position where to insert the widget.
insertSeparator(int_index)
Insert a separator to the tool bar at the specified index.
- Parameters:
- {Integer} int_index
- The position where to insert the widget.
removeAt(int_index)
Remove the widget at the specified index.
- Parameters:
- {Integer} int_index
- The index of the widget to remove