<s> """<STR_LIT>""" <EOL> from pyjamas import DOM <EOL> from pyjamas . ui import Event <EOL> from pyjamas . ui import Focus <EOL> """<STR_LIT>""" <EOL> class RichTextAreaImpl : <EOL> def __init__ ( self ) : <EOL> self . elem = self . createElement ( ) <EOL> def getElement ( self ) : <EOL> return self . elem <EOL> def getHTML ( self ) : <EOL> return DOM . getElementProperty ( self . elem , "<STR_LIT:value>" ) <EOL> def getText ( self ) : <EOL> return DOM . getElementProperty ( self . elem , "<STR_LIT:value>" ) <EOL> def initElement ( self ) : <EOL> onElementInitialized ( ) <EOL> def isBasicEditingSupported ( self ) : <EOL> return False <EOL> def isExtendedEditingSupported ( self ) : <EOL> return False <EOL> def setHTML ( self , html ) : <EOL> DOM . setElementProperty ( self . elem , "<STR_LIT:value>" , html ) <EOL> def setText ( self , text ) : <EOL> DOM . setElementProperty ( self . elem , "<STR_LIT:value>" , text ) <EOL> def uninitElement ( self ) : <EOL> pass <EOL> def setFocus ( self , focused ) : <EOL> if ( focused ) : <EOL> Focus . focus ( self . getElement ( ) ) <EOL> else : <EOL> Focus . blur ( self . getElement ( ) ) <EOL> def createElement ( self ) : <EOL> return DOM . createTextArea ( ) <EOL> def hookEvents ( self ) : <EOL> DOM . sinkEvents ( self . elem , Event . MOUSEEVENTS | Event . KEYEVENTS | Event . ONCHANGE <EOL> | Event . ONCLICK | Event . FOCUSEVENTS ) <EOL> def onElementInitialized ( self ) : <EOL> self . hookEvents ( ) </s>
