Class zwt.ui.panel.HorizontalPanel
Extends
zwt.ui.container.MultipleContainer.
A horizontal panel is used to display Widgets horizontally.
CSS rules
.zwt_horizontalPanel {}
Defined in: HorizontalPanel.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Construct a HorizontalPanel object.
|
Method Attributes | Method Name and Description |
---|---|
add(zwt_ui_Widget_widget, int_weight)
Add a widget to the panel.
|
|
insert(zwt_ui_Widget_widget, int_index, int_weight)
Insert a widget to the panel at the specified index.
|
|
Determine whether the panel is scrollable.
|
|
removeAt(int_index)
Remove the widget at the specified index.
|
|
setScrollable(boolean_scrollable)
Make this panel scrollable.
|
- Methods borrowed from class zwt.ui.container.MultipleContainer:
- 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.panel.HorizontalPanel()
Construct a HorizontalPanel object.
Author: Jeremy KUHN.
Author: Jeremy KUHN.
- See:
- zwt.ui.panel.Divider
Method Detail
add(zwt_ui_Widget_widget, int_weight)
Add a widget to the panel. You can specify a weight on the widget to add, this weight is used to determine the space occupied by the widget in the panel. If no weight is specified then the widget won't be resized and the panel will use its inner width.
- Parameters:
- {zwt.ui.Widget} zwt_ui_Widget_widget
- The widget to add
- {Integer} int_weight
- The weight of the widget in the panel
insert(zwt_ui_Widget_widget, int_index, int_weight)
Insert a widget to the panel at the specified index. You can specify a weight on the widget to add, this weight is used to determine the space occupied by the widget in the panel. If no weight is specified then the widget won't be resized and the panel will use its inner width.
- Parameters:
- {zwt.ui.Widget} zwt_ui_Widget_widget
- The widget to add
- {Integer} int_index
- The position where to insert the widget
- {Integer} int_weight
- The weight of the widget in the panel
{Boolean}
isScrollable()
Determine whether the panel is scrollable.
- Returns:
- true if the panel is scrollable, false otherwise
removeAt(int_index)
Remove the widget at the specified index.
- Parameters:
- {Integer} int_index
- The index of the widget to remove
setScrollable(boolean_scrollable)
Make this panel scrollable.
- Parameters:
- {Boolean} boolean_scrollable
- true to make this panel scrollable, false otherwise