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

Class SimplePanel

source code

UIObject --+        
           |        
      Widget --+    
               |    
           Panel --+
                   |
                  SimplePanel

A panel which contains a single widget. Useful if you have an area where you'd like to be able to replace the widget with another, or if you need to wrap something in a DIV.

Instance Methods [hide private]
 
__init__(self, element=None) source code
 
add(self, widget) source code
 
getWidget(self) source code
 
remove(self, widget) source code
 
getContainerElement(self) source code
 
setWidget(self, widget) source code

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, element=None)
(Constructor)

source code 
Overrides: Widget.__init__

add(self, widget)

source code 
Overrides: Panel.add

remove(self, widget)

source code 
Overrides: Panel.remove