def __init__(self, **kwargs): if not kwargs.has_key('StyleName'): kwargs['StyleName']="gwt-TextBox" if kwargs.has_key('Element'): element = kwargs.pop('Element') else: element = DOM.createInputText() TextBoxBase.__init__(self, element, **kwargs)
def __init__(self, **kwargs): if not kwargs.has_key('StyleName'): kwargs['StyleName'] = "gwt-TextArea" if kwargs.has_key('Element'): element = kwargs.pop('Element') else: element = DOM.createTextArea() TextBoxBase.__init__(self, element, **kwargs)
def __init__(self, **kwargs): if kwargs.has_key('Element'): element = kwargs.pop('Element') else: element = DOM.createInputPassword() self.setElement(element) if not kwargs.has_key('StyleName'): kwargs['StyleName'] = "gwt-PasswordTextBox" TextBoxBase.__init__(self, element, **kwargs)
def getCursorPos(self): return TextBoxBase.getCursorPos(self)