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