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

Class RadioButton

source code

UIObject --+                
           |                
      Widget --+            
               |            
     FocusWidget --+        
                   |        
          ButtonBase --+    
                       |    
                CheckBox --+
                           |
                          RadioButton

RadioButton is a form of checkbox, which must be grouped with other RadioButtons. Only one of the RadioButtons in the group can be checked at any one time.

Instance Methods [hide private]
 
__init__(self, group, label=None, asHTML=False)
Create a new checkbox widget.
source code

Inherited from CheckBox: getHTML, getName, getText, getUniqueID, initElement, isChecked, isEnabled, onDetach, setChecked, setEnabled, setFocus, setHTML, setName, setTabIndex, setText

Inherited from FocusWidget: addClickListener, addFocusListener, addKeyboardListener, getTabIndex, onBrowserEvent, removeClickListener, removeFocusListener, removeKeyboardListener, setAccessKey

Inherited from Widget: getID, getLayoutData, getParent, isAttached, onAttach, 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, group, label=None, asHTML=False)
(Constructor)

source code 

Create a new checkbox widget.

Parameters:
  • group - A string naming the group that the RadioButton is to be associated with. All RadioButtons with the same group string name will be in the same mutually-exclusive group.
  • label - Text content to be associated with the RadioButton (e.g. the RadioButton label); see setHTML() and setText()
  • asHTML - the label is HTML rather than plain text
Overrides: Widget.__init__