equal
deleted
inserted
replaced
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 }; |