1// Name: HTMLEditor.Toolbar_buttons.FixedColorButton.debug.js 2// Assembly: AjaxControlToolkit 3// Version: 4.1.7.1213 4// FileVersion: 4.1.7.1213 5Type.registerNamespace("Sys.Extended.UI.HTMLEditor.ToolbarButton"); 6 7Sys.Extended.UI.HTMLEditor.ToolbarButton.FixedColorButton = function(element) { 8 Sys.Extended.UI.HTMLEditor.ToolbarButton.FixedColorButton.initializeBase(this, [element]); 9 10 this._defaultColor = "#000000"; 11 this._colorDiv = null; 12 this._methodButton = null; 13} 14 15Sys.Extended.UI.HTMLEditor.ToolbarButton.FixedColorButton.prototype = { 16 get_defaultColor : function() { 17 return this._defaultColor; 18 }, 19 set_defaultColor : function(value) { 20 this._defaultColor = value; 21 if (this._colorDiv != null) { 22 this._colorDiv.get_element().style.backgroundColor = value; 23 } 24 }, 25 26 get_colorDiv : function() { 27 return this._colorDiv; 28 }, 29 set_colorDiv : function(value) { 30 this._colorDiv = value; 31 }, 32 33 get_methodButton : function() { 34 return this._methodButton; 35 }, 36 set_methodButton : function(value) { 37 this._methodButton = value; 38 }, 39 40 callMethod : function() { 41 if(!Sys.Extended.UI.HTMLEditor.ToolbarButton.FixedColorButton.callBaseMethod(this, "callMethod")) return false; 42 this.setColor(this.get_defaultColor()); 43 }, 44 45 setColor : function(color) { 46 }, 47 48 initialize : function() { 49 Sys.Extended.UI.HTMLEditor.ToolbarButton.FixedColorButton.callBaseMethod(this, "initialize"); 50 51 if (this._methodButton != null) { 52 this._methodButton.callMethod = Function.createDelegate(this, this.callMethod); 53 } 54 if (this._colorDiv != null) { 55 this._colorDiv.callMethod = Function.createDelegate(this, this.callMethod); 56 } 57 } 58} 59 60Sys.Extended.UI.HTMLEditor.ToolbarButton.FixedColorButton.registerClass("Sys.Extended.UI.HTMLEditor.ToolbarButton.FixedColorButton", Sys.Extended.UI.HTMLEditor.ToolbarButton.DesignModeBoxButton); 61
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.