Class Index | File Index

Classes


Class zwt.ui.panel.VerticalPanel


Extends zwt.ui.container.MultipleContainer.

A vertical panel. Widgets are displayed vertically.

CSS rules

.zwt_verticalPanel {}

Defined in: VerticalPanel.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Construct a VerticalPanel object.
Method Summary
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.VerticalPanel()
Construct a VerticalPanel object.
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 height.
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 height.
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

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Nov 09 2011 19:29:08 GMT+0100 (CET)