1var __aspxLabelValueSuffix = "_V"; 2ASPxClientStaticEdit = _aspxCreateClass(ASPxClientEditBase, { 3 constructor: function(name) { 4 this.constructor.prototype.constructor.call(this, name); 5 this.Click = new ASPxClientEvent(); 6 }, 7 OnClick: function(htmlEvent) { 8 this.RaiseClick(this.GetMainElement(), htmlEvent); 9 }, 10 RaiseClick: function(htmlElement, htmlEvent){ 11 if(!this.Click.IsEmpty()){ 12 var args = new ASPxClientEditClickEventArgs(htmlElement, htmlEvent); 13 this.Click.FireEvent(this, args); 14 } 15 }, 16 ChangeEnabledAttributes: function(enabled){ 17 this.ChangeMainElementAttributes(this.GetMainElement(), _aspxChangeAttributesMethod(enabled)); 18 }, 19 ChangeEnabledStateItems: function(enabled){ 20 aspxGetStateController().SetElementEnabled(this.GetMainElement(), enabled); 21 }, 22 ChangeMainElementAttributes: function(element, method){ 23 method(element, "onclick"); 24 } 25}); 26ASPxClientEditClickEventArgs = _aspxCreateClass(ASPxClientEventArgs, { 27 constructor: function(htmlElement, htmlEvent){ 28 this.constructor.prototype.constructor.call(this); 29 this.htmlElement = htmlElement; 30 this.htmlEvent = htmlEvent; 31 } 32}); 33ASPxClientHyperLink = _aspxCreateClass(ASPxClientStaticEdit, { 34 constructor: function(name) { 35 this.constructor.prototype.constructor.call(this, name); 36 this.sizingConfig.allowSetWidth = false; 37 this.sizingConfig.allowSetHeight = false; 38 }, 39 GetNavigateUrl: function(){ 40 var element = this.GetMainElement(); 41 if(_aspxIsExistsElement(element)) 42 return element.href; 43 return ""; 44 }, 45 SetNavigateUrl: function(url){ 46 var element = this.GetMainElement(); 47 if(_aspxIsExistsElement(element)) 48 element.href = url; 49 }, 50 GetText: function(){ 51 return this.GetValue(); 52 }, 53 SetText: function(value){ 54 this.SetValue(value); 55 }, 56 ChangeMainElementAttributes: function(element, method){ 57 ASPxClientStaticEdit.prototype.ChangeMainElementAttributes.call(this, element, method); 58 method(element, "href"); 59 } 60}); 61ASPxClientHyperLink.Cast = ASPxClientControl.Cast; 62ASPxClientImageBase = _aspxCreateClass(ASPxClientStaticEdit, { 63 constructor: function(name) { 64 this.constructor.prototype.constructor.call(this, name); 65 this.imageWidth = ""; 66 this.imageHeight = ""; 67 }, 68 GetWidth: function(){ 69 return this.GetSize(true); 70 }, 71 GetHeight: function(){ 72 return this.GetSize(false); 73 }, 74 SetWidth: function(width) { 75 this.SetSize(width, this.GetHeight()); 76 }, 77 SetHeight: function(height) { 78 this.SetSize(this.GetWidth(), height); 79 }, 80 SetSize: function(width, height){ 81 this.imageWidth = width + "px"; 82 this.imageHeight = height + "px"; 83 var image = this.GetMainElement(); 84 if(_aspxIsExistsElement(image)) 85 ASPxImageUtils.SetSize(image, width, height); 86 }, 87 GetSize: function(isWidth){ 88 var image = this.GetMainElement(); 89 if(_aspxIsExistsElement(image)) 90 return ASPxImageUtils.GetSize(image, isWidth); 91 return -1; 92 } 93}); 94ASPxClientImage = _aspxCreateClass(ASPxClientImageBase, { 95 constructor: function(name) { 96 this.constructor.prototype.constructor.call(this, name); 97 this.emptyImageUrl = ""; 98 this.emptyImageToolTip = ""; 99 this.emptyImageWidth = ""; 100 this.emptyImageHeight = ""; 101 this.imageAlt = ""; 102 this.imageToolTip = ""; 103 this.isEmpty = false; 104 }, 105 GetValue: function() { 106 if(!this.isEmpty) { 107 var image = this.GetMainElement(); 108 if(_aspxIsExistsElement(image)) 109 return ASPxImageUtils.GetImageSrc(image); 110 } 111 return ""; 112 }, 113 SetValue: function(value) { 114 if(value == null) value = ""; 115 this.isEmpty = (value == ""); 116 var image = this.GetMainElement(); 117 if(_aspxIsExistsElement(image)){ 118 if(this.emptyImageUrl != ""){ 119 if(value == "") 120 this.ApplyImageProperties(image, this.emptyImageUrl, this.emptyImageWidth, this.emptyImageHeight, this.emptyImageAlt, this.emptyImageToolTip); 121 else 122 this.ApplyImageProperties(image, value, this.imageWidth, this.imageHeight, this.imageAlt, this.imageToolTip); 123 } 124 else 125 ASPxImageUtils.SetImageSrc(image, value); 126 } 127 }, 128 ApplyImageProperties: function(imageElement, url, width, height, alt, toolTip){ 129 ASPxImageUtils.SetImageSrc(imageElement, url); 130 imageElement.style.width = width; 131 imageElement.style.height = height; 132 imageElement.alt = alt; 133 imageElement.title = toolTip; 134 }, 135 GetImageUrl: function(url){ 136 return this.GetValue(); 137 }, 138 SetImageUrl: function(url){ 139 this.SetValue(url); 140 } 141}); 142ASPxClientImage.Cast = ASPxClientControl.Cast; 143ASPxClientBinaryImage = _aspxCreateClass(ASPxClientImageBase, { 144 constructor: function(name) { 145 this.constructor.prototype.constructor.call(this, name); 146 }, 147 GetValue: function() { 148 return ""; 149 }, 150 SetValue: function(value) { 151 } 152}); 153ASPxClientBinaryImage.Cast = ASPxClientControl.Cast; 154ASPxClientLabel = _aspxCreateClass(ASPxClientStaticEdit, { 155 constructor: function(name) { 156 this.constructor.prototype.constructor.call(this, name); 157 this.sizingConfig.allowSetWidth = false; 158 this.sizingConfig.allowSetHeight = false; 159 }, 160 GetValue: function() { 161 var element = this.GetMainElement(); 162 if(_aspxIsExistsElement(element)) 163 return element.innerHTML; 164 }, 165 SetValue: function(value) { 166 if(value == null) 167 value = ""; 168 var element = this.GetMainElement(); 169 if(_aspxIsExistsElement(element)) 170 element.innerHTML = value; 171 }, 172 SetVisible: function(visible){ 173 if(this.clientVisible != visible){ 174 this.clientVisible = visible; 175 var element = this.GetMainElement(); 176 if(!visible) 177 element.style.display = "none"; 178 else if((element.style.width != "" || element.style.height != "") && !__aspxNetscapeFamily) 179 element.style.display = "inline-block"; 180 else 181 element.style.display = ""; 182 } 183 }, 184 GetText: function(){ 185 return this.GetValue(); 186 }, 187 SetText: function(value){ 188 this.SetValue(value); 189 }, 190 ChangeMainElementAttributes: function(element, method){ 191 ASPxClientStaticEdit.prototype.ChangeMainElementAttributes.call(this, element, method); 192 method(element, "htmlFor"); 193 } 194}); 195ASPxClientLabel.Cast = ASPxClientControl.Cast; 196function aspxSEClick(name, evt){ 197 var edit = aspxGetControlCollection().Get(name); 198 if(edit != null) { 199 edit.OnClick(evt); 200 return evt.returnValue; 201 } 202}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.