Class Index | File Index

Classes


Class zwt.ui.container.MultipleContainer


Extends zwt.ui.container.Container.

A multiple container is used to display multiple Widgets.


Defined in: MultipleContainer.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Construct a multiple container.
Method Summary
Method Attributes Method Name and Description
 
add(zwt_ui_Widget_widget)
Add a Widget to the Container.
 
Remove all Widgets from the Container.
 
get(int_index)
Return Widget at the specified index in the container.
 
Return the size of the container.
 
indexOf(zwt_ui_Widget_widget)
Return the index of the specified Widget in the container.
 
insert(zwt_ui_Widget_widget, int_index)
Insert a Widget to the Container at the specified index.
 
Return true if the container is focusable and if at least one of the widgets in the container is focusable.
 
processFocusEvent(zwt_event_FocusEvent_event)
Process the specified focus event.
 
remove(zwt_ui_Widget_widget)
Remove a Widget from the Container.
 
removeAt(int_index)
Remove the Widget at the specified index from the container.
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.container.MultipleContainer()
Construct a multiple container.
Author: Jeremy KUHN.
See:
zwt.ui.panel.HorizontalPanel
zwt.ui.panel.VerticalPanel
zwt.ui.panel.DeckPanel
Method Detail
add(zwt_ui_Widget_widget)
Add a Widget to the Container.

This method uses the insert method to add the Widget at the end of the container.

Parameters:
{zwt.ui.Widget} zwt_ui_Widget_widget
The Widget to add

clear()
Remove all Widgets from the Container.

{zwt.ui.Widget} get(int_index)
Return Widget at the specified index in the container.
Parameters:
{Integer} int_index
The index of the widget
Returns:
The widget or null if there's no widget at the specified index

{Integer} getLength()
Return the size of the container.
Returns:
The size of the container

{Integer} indexOf(zwt_ui_Widget_widget)
Return the index of the specified Widget in the container.
Parameters:
{zwt.ui.Widget} zwt_ui_Widget_widget
A widget
Returns:
The index of the widget in the panel or -1 if it is not present in the container

insert(zwt_ui_Widget_widget, int_index)
Insert a Widget to the Container 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

{Boolean} isFocusable()
Return true if the container is focusable and if at least one of the widgets in the container is focusable.
Returns:
true if the container is focusable

processFocusEvent(zwt_event_FocusEvent_event)
Process the specified focus event.
Parameters:
{zwt.event.FocusEvent} zwt_event_FocusEvent_event
The focus event to process

remove(zwt_ui_Widget_widget)
Remove a Widget from the Container.

This method uses the removeAt method to remove the specified Widget from the container.

Parameters:
{zwt.ui.Widget} zwt_ui_Widget_widget
The Widget to remove

removeAt(int_index)
Remove the Widget at the specified index from the container.
Parameters:
{Integer} int_index
The index of the Widget to remove

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