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

Class CheckBox

source code

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

CheckBox is an input widget which can be checked or unchecked

Instance Methods [hide private]
 
__init__(self, label=None, asHTML=False)
Create a new checkbox widget.
source code
 
initElement(self, element) source code
 
getUniqueID(self) source code
 
getHTML(self) source code
 
getName(self) source code
 
getText(self) source code
 
setChecked(self, checked) source code
 
isChecked(self) source code
 
isEnabled(self) source code
 
setEnabled(self, enabled) source code
 
setFocus(self, focused) source code
 
setHTML(self, html) source code
 
setName(self, name) source code
 
setTabIndex(self, index) source code
 
setText(self, text) source code
 
onDetach(self)
Called when this widget is being removed from the DOM tree of the document.
source code

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, label=None, asHTML=False)
(Constructor)

source code 

Create a new checkbox widget.

Parameters:
  • label - Text content to be associated with the checkbox (e.g. the checkbox label); see setHTML() and setText()
  • asHTML - the label is HTML rather than plain text
Overrides: Widget.__init__

getHTML(self)

source code 
Overrides: ButtonBase.getHTML

getText(self)

source code 
Overrides: ButtonBase.getText

isEnabled(self)

source code 
Overrides: FocusWidget.isEnabled

setEnabled(self, enabled)

source code 
Overrides: FocusWidget.setEnabled

setFocus(self, focused)

source code 
Overrides: FocusWidget.setFocus

setHTML(self, html)

source code 
Overrides: ButtonBase.setHTML

setTabIndex(self, index)

source code 
Overrides: FocusWidget.setTabIndex

setText(self, text)

source code 
Overrides: ButtonBase.setText

onDetach(self)

source code 

Called when this widget is being removed from the DOM tree of the document.

Overrides: Widget.onDetach
(inherited documentation)