org.symbian.tools.wrttools/projecttemplates/WRTKit/UI/TextField.js
changeset 102 30e0796f3ebb
parent 73 c56c874eef47
child 210 0f7abfd6ae62
equal deleted inserted replaced
101:15f3b303bbb1 102:30e0796f3ebb
    70     // bind event listeners
    70     // bind event listeners
    71     this.bindTextEntryControlListeners();
    71     this.bindTextEntryControlListeners();
    72     
    72     
    73     // update the style
    73     // update the style
    74     this.updateStyleFromState();
    74     this.updateStyleFromState();
    75 }
    75 };
    76 
    76 
    77 // Updates the style of the control to reflects the state of the control.
    77 // Updates the style of the control to reflects the state of the control.
    78 TextField.prototype.updateStyleFromState = function() {
    78 TextField.prototype.updateStyleFromState = function() {
    79     uiLogger.debug("TextField.updateStyleFromState()");
    79     uiLogger.debug("TextField.updateStyleFromState()");
    80     
    80     
    88     this.setClassName(this.captionElement, "ControlCaption ControlCaption" + stateName);
    88     this.setClassName(this.captionElement, "ControlCaption ControlCaption" + stateName);
    89     
    89     
    90     // set peer element class names
    90     // set peer element class names
    91     var peerStateName = this.isEnabled() ? stateName : "Disabled";
    91     var peerStateName = this.isEnabled() ? stateName : "Disabled";
    92     this.setClassName(this.peerElement, "TextField TextField" + peerStateName);
    92     this.setClassName(this.peerElement, "TextField TextField" + peerStateName);
    93 }
    93 };