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

Class AbsolutePanel

source code

UIObject --+            
           |            
      Widget --+        
               |        
           Panel --+    
                   |    
        ComplexPanel --+
                       |
                      AbsolutePanel

An absolute panel positions all of its children absolutely, allowing them to overlap.

Note that this panel will not automatically resize itself to allow enough room for its absolutely-positioned children. It must be explicitly sized in order to make room for them.

Once a widget has been added to an absolute panel, the panel effectively "owns" the positioning of the widget. Any existing positioning attributes on the widget may be modified by the panel.

Instance Methods [hide private]
 
__init__(self) source code
 
add(self, widget, left=None, top=None) source code
 
setWidgetPosition(self, widget, left, top) source code
 
getWidgetLeft(self, widget) source code
 
getWidgetTop(self, widget) source code
 
checkWidgetParent(self, widget) source code

Inherited from ComplexPanel: getChildren, insert, remove

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, left=None, top=None)

source code 
Overrides: Panel.add