Databases Reference
In-Depth Information
091 uiw._scope = 'ui.' + uiw.widgetName; //For debugging
092
093 uiw._values = {
094 wrapperId : uiw.widgetName + '_' + parseInt(Math.random()*10000000000000000),
//Random number to identify wrapper
095 beforeShowVisible: false //Visible state before show
096 };
097
098 uiw._elements = {
099 $element : $(uiw.element[0]), //Affected element
100 $wrapper : null
101 };
102
103 }, //_setWidgetVars
104
105 /**
106 * Create function: Called the first time widget is associated to the object
107 * Does all the required setup, etc. and binds change event
108 */
109 _create: function(){
110 var uiw = this;
111
112 uiw._setWidgetVars();
113
114 var consoleGroupName = uiw._scope + '._create';
115 $.console.groupCollapsed(consoleGroupName);
116 $.console.log('this:', uiw);
117 $.console.log('element:', uiw.element[0]);
118
119 //Create wrapper so that we keep object in its current place on the DOM
120 uiw._elements.$element.wrap('<div id="' + uiw._values.wrapperId + '"/>');
121 uiw._elements.$wrapper = $('#' + uiw._values.wrapperId);
122 $.console.log('wrapperId: ', uiw._values.wrapperId);
123
124 $.console.groupEnd(consoleGroupName);
125 },//_create
126
127 /**
128 * Removes all functionality associated with the clarifitDialog
129 * Will remove the change event as well
130 * Odds are this will not be called from APEX.
131 */
132 destroy: function() {
133 var uiw = this;
134
135 $.console.log(uiw._scope, 'destroy', uiw);
136 $.Widget.prototype.destroy.apply(uiw, arguments); // default destroy
137 // unregister datepicker
138 uiw._elements.$element.dialog( "destroy" )
139 }//destroy
140 }); //ui.clarifitDialog
141
Search WWH ::




Custom Search