Package pyjamas :: Module ui :: Class DeckPanel
[hide private]
[frames] | no frames]

Class DeckPanel

source code

UIObject --+            
           |            
      Widget --+        
               |        
           Panel --+    
                   |    
        ComplexPanel --+
                       |
                      DeckPanel

A panel that displays all of its child widgets in a 'deck', where only one can be visible at a time. It is used by TabPanel.

Once a widget has been added to a DeckPanel, its visibility, width, and height attributes will be manipulated. When the widget is removed from the DeckPanel, it will be visible, and its width and height attributes will be cleared.

Instance Methods [hide private]
 
__init__(self) source code
 
add(self, widget) source code
 
getVisibleWidget(self) source code
 
getWidget(self, index) source code
 
getWidgetCount(self) source code
 
getWidgetIndex(self, child) source code
 
insert(self, widget, beforeIndex) source code
 
remove(self, widget) source code
 
showWidget(self, index) source code
 
checkIndex(self, index) source code

Inherited from ComplexPanel: getChildren

Inherited from Panel: __iter__, adopt, clear, disown, onAttach, onDetach

Inherited from Widget: getID, getLayoutData, getParent, isAttached, onBrowserEvent, onLoad, removeFromParent, setID, setLayoutData, setParent

Inherited from UIObject: addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setTitle, setVisible, setWidth, setzIndex, sinkEvents, unsinkEvents

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Overrides: Widget.__init__

add(self, widget)

source code 
Overrides: Panel.add

insert(self, widget, beforeIndex)

source code 
Overrides: ComplexPanel.insert

remove(self, widget)

source code 
Overrides: Panel.remove