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

Class HTML

source code

UIObject --+        
           |        
      Widget --+    
               |    
           Label --+
                   |
                  HTML

A widget that can contain arbitrary HTML.

If you only need a simple label (text, but not HTML), then the Label widget is more appropriate, as it disallows the use of HTML, which can lead to potential security issues if not used properly.

Instance Methods [hide private]
 
__init__(self, html=None, wordWrap=True) source code
 
getHTML(self) source code
 
setHTML(self, html) source code

Inherited from Label: addClickListener, addMouseListener, getHorizontalAlignment, getText, getWordWrap, onBrowserEvent, removeClickListener, removeMouseListener, setHorizontalAlignment, setText, setWordWrap

Inherited from Widget: getID, getLayoutData, getParent, isAttached, onAttach, onDetach, 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, html=None, wordWrap=True)
(Constructor)

source code 
Overrides: Widget.__init__