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