Class Index | File Index

Classes


Class zwt.ui.panel.DeckPanel


Extends zwt.ui.container.MultipleContainer.

A deck panel. It can contain many widgets but only one widget is displayed at a time.

CSS rules

.zwt_deckPanel {}

Defined in: DeckPanel.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Construct a deck panel.
Method Summary
Method Attributes Method Name and Description
 
Deselect the current active widget.
 
Return the current active widget.
 
insert(zwt_ui_Widget_widget, int_index)
Insert a widget to the container at the specified index.
 
Return true if the panel is focusable and if the current active widget is focusable.
 
remove(zwt_ui_Widget_widget, boolean_selectNeighbor)
Remove the specified widget and optionally select the neighbor widget if the widget to remove is active.
 
removeAt(int_index, boolean_selectNeighbor)
Remove the Widget at the specified index from the container.
 
selectAt(int_index)
Select and show the widget at the specified index (and hide the previous visible widget).
Methods borrowed from class zwt.ui.container.MultipleContainer:
add, clear, get, getLength, indexOf, processFocusEvent
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.DeckPanel()
Construct a deck panel.
Author: Jeremy KUHN.
Method Detail
deselect()
Deselect the current active widget.

{zwt.ui.Widget} getActiveWidget()
Return the current active widget.
Returns:
The active widget

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 panel is focusable and if the current active widget is focusable.
Returns:
true if the panel is focusable

remove(zwt_ui_Widget_widget, boolean_selectNeighbor)
Remove the specified widget and optionally select the neighbor widget if the widget to remove is active.
Parameters:
{Integer} zwt_ui_Widget_widget
The widget to remove
{Boolean} boolean_selectNeighbor
true to select the neighbor widget, false otherwise

removeAt(int_index, boolean_selectNeighbor)
Remove the Widget at the specified index from the container.
Parameters:
{Integer} int_index
The index of the Widget to remove
{Boolean} boolean_selectNeighbor
true to select the neighbor widget, false otherwise

selectAt(int_index)
Select and show the widget at the specified index (and hide the previous visible widget).
Parameters:
{Integer} int_index
The index of the widget to show

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