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

Class FocusWidget

source code

UIObject --+    
           |    
      Widget --+
               |
              FocusWidget

FocusWidget is the base widget for objects which take user-input, such as Buttons, ListBoxes and Text input widgets. It is only necessary to instantiate from this class if you intend to make your own custom input widget.

Instance Methods [hide private]
 
__init__(self, element) source code
 
addClickListener(self, listener) source code
 
addFocusListener(self, listener) source code
 
addKeyboardListener(self, listener) source code
 
getTabIndex(self) source code
 
isEnabled(self) source code
 
onBrowserEvent(self, event) source code
 
removeClickListener(self, listener) source code
 
removeFocusListener(self, listener) source code
 
removeKeyboardListener(self, listener) source code
 
setAccessKey(self, key) source code
 
setEnabled(self, enabled) source code
 
setFocus(self, focused) source code
 
setTabIndex(self, index) source code

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

source code 
Overrides: Widget.__init__

onBrowserEvent(self, event)

source code 
Overrides: Widget.onBrowserEvent