示例#1
0
文件: Focus.py 项目: Afey/pyjs
 def isReadonly(self):
     try:
         return not DOM.getBooleanAttribute(self.getElement(), "readOnly")
     except TypeError:
         return True
     except AttributeError:
         return True
示例#2
0
    def isChecked(self):
        if self.isAttached():
            propName = "checked"
        else:
            propName = "defaultChecked"

        return DOM.getBooleanAttribute(self.inputElem, propName)
示例#3
0
    def isChecked(self):
        if self.isAttached():
            propName = "checked"
        else:
            propName = "defaultChecked"

        return DOM.getBooleanAttribute(self.inputElem, propName)
示例#4
0
文件: Focus.py 项目: Afey/pyjs
 def isEnabled(self):
     try:
         return not DOM.getBooleanAttribute(self.getElement(), "disabled")
     except TypeError:
         return True
     except AttributeError:
         return True
示例#5
0
 def isReadonly(self):
     try:
         return not DOM.getBooleanAttribute(self.getElement(), "readOnly")
     except TypeError:
         return True
     except AttributeError:
         return True
示例#6
0
 def isEnabled(self):
     try:
         return not DOM.getBooleanAttribute(self.getElement(), "disabled")
     except TypeError:
         return True
     except AttributeError:
         return True
示例#7
0
 def isEnabled(self):
     return not DOM.getBooleanAttribute(self.inputElem, "disabled")
示例#8
0
 def isEnabled(self):
     return not DOM.getBooleanAttribute(self.inputElem, "disabled")
示例#9
0
 def hasControls(self):
     DOM.getBooleanAttribute(self.getElement(), "controls")
示例#10
0
 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")
示例#13
0
def getBoolProp(obj, propertyName):
    return DOM.getBooleanAttribute(obj, propertyName)
示例#14
0
def getBoolProp(obj, propertyName):
    return DOM.getBooleanAttribute(obj, propertyName)