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

Class Button

source code

UIObject --+            
           |            
      Widget --+        
               |        
     FocusWidget --+    
                   |    
          ButtonBase --+
                       |
                      Button

Button is a clickable button.

Instance Methods [hide private]
 
__init__(self, html=None, listener=None)
Create a new button widget.
source code
 
adjustType(self, button) source code
 
click(self)
Simulate a button click.
source code

Inherited from ButtonBase: getHTML, getText, setHTML, setText

Inherited from FocusWidget: addClickListener, addFocusListener, addKeyboardListener, getTabIndex, isEnabled, onBrowserEvent, removeClickListener, removeFocusListener, removeKeyboardListener, setAccessKey, setEnabled, setFocus, setTabIndex

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

source code 

Create a new button widget.

Parameters:
  • html - Html content (e.g. the button label); see setHTML()
  • listener - A new click listener; see addClickListener()
Overrides: Widget.__init__