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

Class FocusPanel

source code

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

A simple panel that makes its contents focusable, and adds the ability to catch mouse and keyboard events.

Instance Methods [hide private]
 
__init__(self, child=None) source code
 
addClickListener(self, listener) source code
 
addFocusListener(self, listener) source code
 
addKeyboardListener(self, listener) source code
 
addMouseListener(self, listener) source code
 
getTabIndex(self) source code
 
onBrowserEvent(self, event) source code
 
removeClickListener(self, listener) source code
 
removeFocusListener(self, listener) source code
 
removeKeyboardListener(self, listener) source code
 
removeMouseListener(self, listener) source code
 
setAccessKey(self, key) source code
 
setFocus(self, focused) source code
 
setTabIndex(self, index) source code

Inherited from SimplePanel: add, getContainerElement, getWidget, remove, setWidget

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

source code 
Overrides: Widget.__init__

onBrowserEvent(self, event)

source code 
Overrides: Widget.onBrowserEvent