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

Class StackPanel

source code

UIObject --+            
           |            
      Widget --+        
               |        
           Panel --+    
                   |    
        ComplexPanel --+
                       |
                      StackPanel

A panel that stacks its children vertically, displaying only one at a time, with a header for each child which the user can click to display.

Instance Methods [hide private]
 
__init__(self) source code
 
add(self, widget, stackText="", asHTML=False) source code
 
getWidget(self, index) source code
 
getWidgetCount(self) source code
 
getWidgetIndex(self, child) source code
 
onBrowserEvent(self, event) source code
 
remove(self, child, index=None) source code
 
setStackText(self, index, text, asHTML=False) source code
 
showStack(self, index) source code
 
getDividerIndex(self, elem) source code
 
setStackVisible(self, index, visible) source code
 
getSelectedIndex(self) source code

Inherited from ComplexPanel: getChildren, insert

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

Inherited from Widget: getID, getLayoutData, getParent, isAttached, 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, stackText="", asHTML=False)

source code 
Overrides: Panel.add

onBrowserEvent(self, event)

source code 
Overrides: Widget.onBrowserEvent

remove(self, child, index=None)

source code 
Overrides: Panel.remove