     @inputValidationNotifications = {}
     @valid = yes
     @inputCallback = null
+    @setName options.name
     @setLabel()
     @setCallback()
     @setDefaultValue options.defaultValue

      @getDomElement().trigger "focus"
      @getDomElement().trigger "click"

  getLabel:()-> @inputLabel

  setCallback:()-> @inputCallback = @options.callback

  getCallback:()-> @inputCallback

  setType:(type = "text")-> @inputType = type

  getType:()-> @inputType

  getName:()-> @inputName

  setFocus:()->
    (@getSingleton "windowController").setKeyView @

          @setValue o.selectOptions[0].value unless o.defaultValue

  setDomElement:(cssClass = "")->
    name = "name='#{@options.name}'"
    @domElement = switch @getType()
      when "text"     then $ "<input #{name} type='text' class='kdinput text #{cssClass}'/>"
