       @getDomElement().trigger "focus"
       @getDomElement().trigger "click"
 
-  getLabel:()-> @inputLabel
-
-  setCallback:()-> @inputCallback = @options.callback
-
-  getCallback:()-> @inputCallback
-
-  setType:(type = "text")-> @inputType = type
-
-  getType:()-> @inputType
-
-  getName:()-> @inputName
+  getLabel:-> @inputLabel
+
+  setCallback:-> @inputCallback = @getOptions().callback
+  getCallback:-> @inputCallback
+
+  setType:(@inputType = "text")->
+  getType:-> @inputType
+
+  setName:(@inputName)->
+  getName:-> @inputName
 
   setFocus:()->
     (@getSingleton "windowController").setKeyView @

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

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

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