Class Index | File Index

Classes


Class zwt.ui.container.Container


Extends zwt.ui.Widget.

Container is the base class for all container widgets.


Defined in: Container.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Construct a Container object.
Method Summary
Method Attributes Method Name and Description
 
Return the content event manager attached to the container.
 
Determine whether this container is a focus container.
 
processContentEvent(zwt_ui_container_ContentEvent_event)
Process the specified content event.
 
setFocusContainer(boolean_focus)
Set this container as a focus container to define a focus area.
Methods borrowed from class zwt.ui.Widget:
addStyle, draw, getContextFill, getDimension, getElement, getElementDimension, getFill, getFocusEventManager, getId, getKeyboardEventManager, getParent, getRelativeLeft, getRelativeTop, getStyle, getWheelEventManager, hasFocus, hasStyle, isFocusable, isVisible, onEvent, processEvent, processFocusEvent, processKeyboardEvent, processWheelEvent, redraw, removeStyle, replaceStyle, setFill, setFocusable, setId, setStyle, setVisible
Class Detail
zwt.ui.container.Container()
Construct a Container object.
Author: Jeremy KUHN.
See:
zwt.ui.container.SingleContainer
zwt.ui.container.MultipleContainer
Method Detail
{zwt.ui.container.ContentEventManager} getContentEventManager()
Return the content event manager attached to the container.
Returns:
The content event manager

{Boolean} isFocusContainer()
Determine whether this container is a focus container. The container is not a focus container by default.
Returns:
true if the container is a focus container, false otherwise.

processContentEvent(zwt_ui_container_ContentEvent_event)
Process the specified content event.

This implementation calls the redraw method of the container on a content change event, and determines whether this change has to be propagated to parent container, basically when the dimensions of the container have changed after the redraw.

Parameters:
{zwt.ui.container.ContentEvent} zwt_ui_container_ContentEvent_event
The content event to process

setFocusContainer(boolean_focus)
Set this container as a focus container to define a focus area. In a focus container, keyboard navigation is cycling through the Widgets in the container.
Parameters:
{Boolean} boolean_focus
true to set the container as a focus container, otherwise false.

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