def isReadonly(self): try: return not DOM.getBooleanAttribute(self.getElement(), "readOnly") except TypeError: return True except AttributeError: return True
def isChecked(self): if self.isAttached(): propName = "checked" else: propName = "defaultChecked" return DOM.getBooleanAttribute(self.inputElem, propName)
def isChecked(self): if self.isAttached(): propName = "checked" else: propName = "defaultChecked" return DOM.getBooleanAttribute(self.inputElem, propName)
def isEnabled(self): try: return not DOM.getBooleanAttribute(self.getElement(), "disabled") except TypeError: return True except AttributeError: return True
def isReadonly(self): try: return not DOM.getBooleanAttribute(self.getElement(), "readOnly") except TypeError: return True except AttributeError: return True
def isEnabled(self): try: return not DOM.getBooleanAttribute(self.getElement(), "disabled") except TypeError: return True except AttributeError: return True
def isEnabled(self): return not DOM.getBooleanAttribute(self.inputElem, "disabled")
def isEnabled(self): return not DOM.getBooleanAttribute(self.inputElem, "disabled")
def hasControls(self): DOM.getBooleanAttribute(self.getElement(), "controls")
def hasControls(self): DOM.getBooleanAttribute(self.getElement(), "controls")
def isItemSelected(self, index): self.checkIndex(index) option = DOM.getChild(self.getElement(), index) return DOM.getBooleanAttribute(option, "selected")
def getMultipleSelect(self): return DOM.getBooleanAttribute(self.getElement(), "multiple")
def getBoolProp(obj, propertyName): return DOM.getBooleanAttribute(obj, propertyName)
def getBoolProp(obj, propertyName): return DOM.getBooleanAttribute(obj, propertyName)