You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/07/15 23:00:02 UTC
[03/17] git commit: [flex-asjs] [refs/heads/develop] - back to using
. instead of _
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/88cb1f5b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/CheckBox.js b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/CheckBox.js
index 2244eb3..01182e3 100644
--- a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/CheckBox.js
+++ b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/CheckBox.js
@@ -12,21 +12,21 @@
* limitations under the License.
*/
-goog.provide('org_apache_flex_jquery_CheckBox');
+goog.provide('org.apache.flex.jquery.CheckBox');
-goog.require('org_apache_flex_core_UIBase');
+goog.require('org.apache.flex.core.UIBase');
/**
* @constructor
- * @extends {org_apache_flex_core_UIBase}
+ * @extends {org.apache.flex.core.UIBase}
*/
-org_apache_flex_jquery_CheckBox = function() {
- org_apache_flex_jquery_CheckBox.base(this, 'constructor');
+org.apache.flex.jquery.CheckBox = function() {
+ org.apache.flex.jquery.CheckBox.base(this, 'constructor');
};
-goog.inherits(org_apache_flex_jquery_CheckBox,
- org_apache_flex_core_UIBase);
+goog.inherits(org.apache.flex.jquery.CheckBox,
+ org.apache.flex.core.UIBase);
/**
@@ -34,15 +34,15 @@ goog.inherits(org_apache_flex_jquery_CheckBox,
*
* @type {Object.<string, Array.<Object>>}
*/
-org_apache_flex_jquery_CheckBox.prototype.FLEXJS_CLASS_INFO =
+org.apache.flex.jquery.CheckBox.prototype.FLEXJS_CLASS_INFO =
{ names: [{ name: 'CheckBox',
- qName: 'org_apache_flex_jquery_CheckBox'}] };
+ qName: 'org.apache.flex.jquery.CheckBox'}] };
/**
* @override
*/
-org_apache_flex_jquery_CheckBox.prototype.createElement =
+org.apache.flex.jquery.CheckBox.prototype.createElement =
function() {
var cb;
@@ -61,25 +61,25 @@ org_apache_flex_jquery_CheckBox.prototype.createElement =
};
-Object.defineProperties(org_apache_flex_jquery_CheckBox.prototype, {
+Object.defineProperties(org.apache.flex.jquery.CheckBox.prototype, {
/** @export */
text: {
- /** @this {org_apache_flex_jquery_CheckBox} */
+ /** @this {org.apache.flex.jquery.CheckBox} */
get: function() {
return this.element.childNodes.item(1).nodeValue;
},
- /** @this {org_apache_flex_jquery_CheckBox} */
+ /** @this {org.apache.flex.jquery.CheckBox} */
set: function(value) {
this.element.childNodes.item(1).nodeValue = value;
}
},
/** @export */
selected: {
- /** @this {org_apache_flex_jquery_CheckBox} */
+ /** @this {org.apache.flex.jquery.CheckBox} */
get: function() {
return this.element.childNodes.item(0).checked;
},
- /** @this {org_apache_flex_jquery_CheckBox} */
+ /** @this {org.apache.flex.jquery.CheckBox} */
set: function(value) {
this.element.childNodes.item(0).checked = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/88cb1f5b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/RadioButton.js b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/RadioButton.js
index df0f166..3ac2481 100644
--- a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/RadioButton.js
+++ b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/RadioButton.js
@@ -12,26 +12,26 @@
* limitations under the License.
*/
-goog.provide('org_apache_flex_jquery_RadioButton');
+goog.provide('org.apache.flex.jquery.RadioButton');
-goog.require('org_apache_flex_core_UIBase');
-goog.require('org_apache_flex_utils_Language');
+goog.require('org.apache.flex.core.UIBase');
+goog.require('org.apache.flex.utils.Language');
/**
* @constructor
- * @extends {org_apache_flex_core_UIBase}
+ * @extends {org.apache.flex.core.UIBase}
*/
-org_apache_flex_jquery_RadioButton = function() {
+org.apache.flex.jquery.RadioButton = function() {
- org_apache_flex_jquery_RadioButton.base(this, 'constructor');
+ org.apache.flex.jquery.RadioButton.base(this, 'constructor');
- org_apache_flex_core_UIBase.call(this);
- org_apache_flex_jquery_RadioButton.radioCounter++;
+ org.apache.flex.core.UIBase.call(this);
+ org.apache.flex.jquery.RadioButton.radioCounter++;
};
-goog.inherits(org_apache_flex_jquery_RadioButton,
- org_apache_flex_core_UIBase);
+goog.inherits(org.apache.flex.jquery.RadioButton,
+ org.apache.flex.core.UIBase);
/**
@@ -39,40 +39,40 @@ goog.inherits(org_apache_flex_jquery_RadioButton,
* @type {?string}
* The name of the radioGroup.
*/
-org_apache_flex_jquery_RadioButton.prototype.radioGroupName = null;
+org.apache.flex.jquery.RadioButton.prototype.radioGroupName = null;
/**
* @export
* Used to provide ids to the radio buttons.
*/
-org_apache_flex_jquery_RadioButton.radioCounter = 0;
+org.apache.flex.jquery.RadioButton.radioCounter = 0;
/**
* @export
* Used to manage groups on the radio buttons.
*/
-org_apache_flex_jquery_RadioButton.groups = { };
+org.apache.flex.jquery.RadioButton.groups = { };
/**
* Flag to make sure the event handler is set only once.
*/
-org_apache_flex_jquery_RadioButton.groupHandlerSet = false;
+org.apache.flex.jquery.RadioButton.groupHandlerSet = false;
/**
* @override
*/
-org_apache_flex_jquery_RadioButton.prototype.createElement =
+org.apache.flex.jquery.RadioButton.prototype.createElement =
function() {
// the radio itself
this.input = document.createElement('input');
this.input.type = 'radio';
this.input.name = 'radio';
- this.input.id = '_radio_' + org_apache_flex_jquery_RadioButton.radioCounter++;
+ this.input.id = '_radio_' + org.apache.flex.jquery.RadioButton.radioCounter++;
this.labelFor = document.createElement('label');
this.labelFor.htmlFor = this.input.id;
@@ -93,30 +93,30 @@ org_apache_flex_jquery_RadioButton.prototype.createElement =
/**
* @override
*/
-org_apache_flex_jquery_RadioButton.prototype.addedToParent =
+org.apache.flex.jquery.RadioButton.prototype.addedToParent =
function() {
- org_apache_flex_jquery_RadioButton.base(this, 'addedToParent');
+ org.apache.flex.jquery.RadioButton.base(this, 'addedToParent');
$(this.input).button();
};
-Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
+Object.defineProperties(org.apache.flex.jquery.RadioButton.prototype, {
/** @export */
id: {
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org.apache.flex.jquery.RadioButton} */
set: function(value) {
- org_apache_flex_utils_Language(org_apache_flex_jquery_RadioButton.base, this, 'id', value);
+ org.apache.flex.utils.Language(org.apache.flex.jquery.RadioButton.base, this, 'id', value);
this.labelFor.id = value;
this.labelFor.htmlFor = value;
}
},
/** @export */
groupName: {
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org.apache.flex.jquery.RadioButton} */
get: function() {
return this.radioGroupName;
},
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org.apache.flex.jquery.RadioButton} */
set: function(value) {
this.radioGroupName = value;
this.input.name = value;
@@ -124,40 +124,40 @@ Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
},
/** @export */
text: {
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org.apache.flex.jquery.RadioButton} */
get: function() {
return this.labelFor.innerHTML;
},
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org.apache.flex.jquery.RadioButton} */
set: function(value) {
this.labelFor.innerHTML = value;
}
},
/** @export */
selected: {
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org.apache.flex.jquery.RadioButton} */
get: function() {
return this.input.checked;
},
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org.apache.flex.jquery.RadioButton} */
set: function(value) {
this.input.checked = value;
}
},
/** @export */
value: {
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org.apache.flex.jquery.RadioButton} */
get: function() {
return this.input.value;
},
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org.apache.flex.jquery.RadioButton} */
set: function(value) {
this.input.value = value;
}
},
/** @export */
selectedValue: {
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org.apache.flex.jquery.RadioButton} */
get: function() {
var buttons, groupName, i, n;
@@ -172,7 +172,7 @@ Object.defineProperties(org_apache_flex_jquery_RadioButton.prototype, {
}
return null;
},
- /** @this {org_apache_flex_jquery_RadioButton} */
+ /** @this {org.apache.flex.jquery.RadioButton} */
set: function(value) {
var buttons, groupName, i, n;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/88cb1f5b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/TextButton.js b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/TextButton.js
index 833affb..0142aa8 100644
--- a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/TextButton.js
+++ b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/TextButton.js
@@ -12,27 +12,27 @@
* limitations under the License.
*/
-goog.provide('org_apache_flex_jquery_TextButton');
+goog.provide('org.apache.flex.jquery.TextButton');
-goog.require('org_apache_flex_core_UIBase');
+goog.require('org.apache.flex.core.UIBase');
/**
* @constructor
- * @extends {org_apache_flex_core_UIBase}
+ * @extends {org.apache.flex.core.UIBase}
*/
-org_apache_flex_jquery_TextButton = function() {
- org_apache_flex_jquery_TextButton.base(this, 'constructor');
+org.apache.flex.jquery.TextButton = function() {
+ org.apache.flex.jquery.TextButton.base(this, 'constructor');
};
-goog.inherits(org_apache_flex_jquery_TextButton,
- org_apache_flex_core_UIBase);
+goog.inherits(org.apache.flex.jquery.TextButton,
+ org.apache.flex.core.UIBase);
/**
* @override
*/
-org_apache_flex_jquery_TextButton.prototype.createElement =
+org.apache.flex.jquery.TextButton.prototype.createElement =
function() {
this.element = document.createElement('button');
this.element.setAttribute('type', 'button');
@@ -46,21 +46,21 @@ org_apache_flex_jquery_TextButton.prototype.createElement =
/**
* @override
*/
-org_apache_flex_jquery_TextButton.prototype.addedToParent =
+org.apache.flex.jquery.TextButton.prototype.addedToParent =
function() {
- org_apache_flex_jquery_TextButton.base(this, 'addedToParent');
+ org.apache.flex.jquery.TextButton.base(this, 'addedToParent');
$(this.element).button();
};
-Object.defineProperties(org_apache_flex_jquery_TextButton.prototype, {
+Object.defineProperties(org.apache.flex.jquery.TextButton.prototype, {
/** @export */
text: {
- /** @this {org_apache_flex_jquery_TextButton} */
+ /** @this {org.apache.flex.jquery.TextButton} */
get: function() {
return this.element.innerHTML;
},
- /** @this {org_apache_flex_jquery_TextButton} */
+ /** @this {org.apache.flex.jquery.TextButton} */
set: function(value) {
this.element.innerHTML = value;
}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/88cb1f5b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/ToggleTextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/ToggleTextButton.js b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/ToggleTextButton.js
index 3cf68bb..78c9df0 100644
--- a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/ToggleTextButton.js
+++ b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/ToggleTextButton.js
@@ -12,19 +12,19 @@
* limitations under the License.
*/
-goog.provide('org_apache_flex_jquery_ToggleTextButton');
+goog.provide('org.apache.flex.jquery.ToggleTextButton');
-goog.require('org_apache_flex_html_Button');
-goog.require('org_apache_flex_utils_Language');
+goog.require('org.apache.flex.html.Button');
+goog.require('org.apache.flex.utils.Language');
/**
* @constructor
- * @extends {org_apache_flex_html_Button}
+ * @extends {org.apache.flex.html.Button}
*/
-org_apache_flex_jquery_ToggleTextButton = function() {
- org_apache_flex_jquery_ToggleTextButton.base(this, 'constructor');
+org.apache.flex.jquery.ToggleTextButton = function() {
+ org.apache.flex.jquery.ToggleTextButton.base(this, 'constructor');
@@ -34,8 +34,8 @@ org_apache_flex_jquery_ToggleTextButton = function() {
*/
this.selected_ = false;
};
-goog.inherits(org_apache_flex_jquery_ToggleTextButton,
- org_apache_flex_html_Button);
+goog.inherits(org.apache.flex.jquery.ToggleTextButton,
+ org.apache.flex.html.Button);
/**
@@ -43,29 +43,29 @@ goog.inherits(org_apache_flex_jquery_ToggleTextButton,
*
* @type {Object.<string, Array.<Object>>}
*/
-org_apache_flex_jquery_ToggleTextButton.prototype.FLEXJS_CLASS_INFO =
+org.apache.flex.jquery.ToggleTextButton.prototype.FLEXJS_CLASS_INFO =
{ names: [{ name: 'ToggleTextButton',
- qName: 'org_apache_flex_jquery_ToggleTextButton'}] };
+ qName: 'org.apache.flex.jquery.ToggleTextButton'}] };
/**
* @export
* Used to provide ids to the ToggleTextButton.
*/
-org_apache_flex_jquery_ToggleTextButton.toggleCounter = 0;
+org.apache.flex.jquery.ToggleTextButton.toggleCounter = 0;
/**
* @override
*/
-org_apache_flex_jquery_ToggleTextButton.prototype.createElement =
+org.apache.flex.jquery.ToggleTextButton.prototype.createElement =
function() {
// the radio itself
this.input = document.createElement('input');
this.input.type = 'checkbox';
this.input.name = 'checkbox';
- this.input.id = '_toggle_' + org_apache_flex_jquery_ToggleTextButton.toggleCounter++;
+ this.input.id = '_toggle_' + org.apache.flex.jquery.ToggleTextButton.toggleCounter++;
this.labelFor = document.createElement('label');
this.labelFor.htmlFor = this.input.id;
@@ -86,41 +86,41 @@ org_apache_flex_jquery_ToggleTextButton.prototype.createElement =
/**
* @override
*/
-org_apache_flex_jquery_ToggleTextButton.prototype.addedToParent =
+org.apache.flex.jquery.ToggleTextButton.prototype.addedToParent =
function() {
- org_apache_flex_jquery_ToggleTextButton.base(this, 'addedToParent');
+ org.apache.flex.jquery.ToggleTextButton.base(this, 'addedToParent');
$(this.element).button();
};
-Object.defineProperties(org_apache_flex_jquery_ToggleTextButton.prototype, {
+Object.defineProperties(org.apache.flex.jquery.ToggleTextButton.prototype, {
/** @export */
id: {
- /** @this {org_apache_flex_jquery_ToggleTextButton} */
+ /** @this {org.apache.flex.jquery.ToggleTextButton} */
set: function(value) {
- org_apache_flex_utils_Language.superSetter(org_apache_flex_jquery_ToggleTextButton.base, this, 'id', value);
+ org.apache.flex.utils.Language.superSetter(org.apache.flex.jquery.ToggleTextButton.base, this, 'id', value);
this.labelFor.id = value;
this.labelFor.htmlFor = value;
}
},
/** @export */
text: {
- /** @this {org_apache_flex_jquery_ToggleTextButton} */
+ /** @this {org.apache.flex.jquery.ToggleTextButton} */
get: function() {
return this.labelFor.innerHTML;
},
- /** @this {org_apache_flex_jquery_ToggleTextButton} */
+ /** @this {org.apache.flex.jquery.ToggleTextButton} */
set: function(value) {
this.labelFor.innerHTML = value;
}
},
/** @export */
selected: {
- /** @this {org_apache_flex_jquery_ToggleTextButton} */
+ /** @this {org.apache.flex.jquery.ToggleTextButton} */
get: function() {
return this.input.selected_;
},
- /** @this {org_apache_flex_jquery_ToggleTextButton} */
+ /** @this {org.apache.flex.jquery.ToggleTextButton} */
set: function(value) {
if (this.input.selected_ != value) {
this.inputselected_ = value;
@@ -144,5 +144,5 @@ Object.defineProperties(org_apache_flex_jquery_ToggleTextButton.prototype, {
/**
* @type {string} The selected setter.
*/
-org_apache_flex_jquery_ToggleTextButton.prototype.SELECTED = '_Selected';
+org.apache.flex.jquery.ToggleTextButton.prototype.SELECTED = '_Selected';
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/88cb1f5b/frameworks/projects/JQuery/js/tests/MySimpleValuesImpl.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/JQuery/js/tests/MySimpleValuesImpl.js b/frameworks/projects/JQuery/js/tests/MySimpleValuesImpl.js
index dfde492..8f09bd7 100644
--- a/frameworks/projects/JQuery/js/tests/MySimpleValuesImpl.js
+++ b/frameworks/projects/JQuery/js/tests/MySimpleValuesImpl.js
@@ -30,11 +30,11 @@ MySimpleValuesImpl = function() {
this.values_ = {
/*
ITextButtonBead :
- org_apache_flex_html_beads_TextButtonBead,
+ org.apache.flex.html.beads.TextButtonBead,
ITextBead :
- org_apache_flex_html_beads_TextFieldBead,
+ org.apache.flex.html.beads.TextFieldBead,
ITextModel :
- org_apache_flex_html_beads_models.TextModel
+ org.apache.flex.html.beads.models.TextModel
*/
};
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/88cb1f5b/frameworks/projects/Mobile/js/src/org/apache/cordova/Application.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/js/src/org/apache/cordova/Application.js b/frameworks/projects/Mobile/js/src/org/apache/cordova/Application.js
index 00c670d..0c63452 100644
--- a/frameworks/projects/Mobile/js/src/org/apache/cordova/Application.js
+++ b/frameworks/projects/Mobile/js/src/org/apache/cordova/Application.js
@@ -14,39 +14,39 @@
/**
- * org_apache_cordova_Application
+ * org.apache.cordova.Application
*
* @fileoverview
*
* @suppress {checkTypes}
*/
-goog.provide('org_apache_cordova_Application');
+goog.provide('org.apache.cordova.Application');
-goog.require('org_apache_flex_core_Application');
+goog.require('org.apache.flex.core.Application');
/**
* @constructor
- * @extends {org_apache_flex_core_Application}
+ * @extends {org.apache.flex.core.Application}
*/
-org_apache_cordova_Application = function() {
- org_apache_cordova_Application.base(this, 'constructor');
+org.apache.cordova.Application = function() {
+ org.apache.cordova.Application.base(this, 'constructor');
document.addEventListener('deviceready',
goog.bind(this.devicereadyredispatcher, this),
false);
};
-goog.inherits(org_apache_cordova_Application,
- org_apache_flex_core_Application);
+goog.inherits(org.apache.cordova.Application,
+ org.apache.flex.core.Application);
/**
* @protected
* @param {Object} event
*/
-org_apache_cordova_Application.prototype.devicereadyredispatcher = function(event) {
+org.apache.cordova.Application.prototype.devicereadyredispatcher = function(event) {
this.dispatchEvent('deviceready');
};
@@ -56,6 +56,6 @@ org_apache_cordova_Application.prototype.devicereadyredispatcher = function(even
*
* @type {Object.<string, Array.<Object>>}
*/
-org_apache_cordova_Application.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'Application', qName: 'org_apache_cordova_Application'}]
+org.apache.cordova.Application.prototype.FLEXJS_CLASS_INFO = {
+ names: [{ name: 'Application', qName: 'org.apache.cordova.Application'}]
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/88cb1f5b/frameworks/projects/Mobile/js/src/org/apache/cordova/Weinre.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/js/src/org/apache/cordova/Weinre.js b/frameworks/projects/Mobile/js/src/org/apache/cordova/Weinre.js
index ce03373..c7b9098 100644
--- a/frameworks/projects/Mobile/js/src/org/apache/cordova/Weinre.js
+++ b/frameworks/projects/Mobile/js/src/org/apache/cordova/Weinre.js
@@ -14,35 +14,35 @@
/**
- * org_apache_cordova_Application
+ * org.apache.cordova.Application
*
* @fileoverview
*
* @suppress {checkTypes}
*/
-goog.provide('org_apache_cordova_Weinre');
+goog.provide('org.apache.cordova.Weinre');
/**
* @constructor
*/
-org_apache_cordova_Weinre = function() {
+org.apache.cordova.Weinre = function() {
};
-Object.defineProperties(org_apache_cordova_Weinre.prototype, {
+Object.defineProperties(org.apache.cordova.Weinre.prototype, {
/** @export */
strand: {
- /** @this {org_apache_cordova_Weinre} */
+ /** @this {org.apache.cordova.Weinre} */
set: function(value) {
this.strand_ = value;
}
},
/** @export */
guid: {
- /** @this {org_apache_cordova_Weinre} */
+ /** @this {org.apache.cordova.Weinre} */
set: function(value) {
var scriptNode = document.createElement('SCRIPT');
@@ -62,6 +62,6 @@ Object.defineProperties(org_apache_cordova_Weinre.prototype, {
*
* @type {Object.<string, Array.<Object>>}
*/
-org_apache_cordova_Weinre.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'Weinre', qName: 'org_apache_cordova_Weinre'}]
+org.apache.cordova.Weinre.prototype.FLEXJS_CLASS_INFO = {
+ names: [{ name: 'Weinre', qName: 'org.apache.cordova.Weinre'}]
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/88cb1f5b/frameworks/projects/Mobile/js/src/org/apache/cordova/camera/Camera.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/js/src/org/apache/cordova/camera/Camera.js b/frameworks/projects/Mobile/js/src/org/apache/cordova/camera/Camera.js
index 0a5677b..28288c6 100644
--- a/frameworks/projects/Mobile/js/src/org/apache/cordova/camera/Camera.js
+++ b/frameworks/projects/Mobile/js/src/org/apache/cordova/camera/Camera.js
@@ -22,87 +22,87 @@
*/
/**
- * org_apache_cordova_camera_Camera
+ * org.apache.cordova.camera.Camera
*
* @fileoverview
*
* @suppress {checkTypes}
*/
-goog.provide('org_apache_cordova_camera_Camera');
+goog.provide('org.apache.cordova.camera.Camera');
/**
* @constructor
*/
-org_apache_cordova_camera_Camera = function() {
- this.pictureSourceType = org_apache_cordova_camera_Camera.PictureSourceType.PHOTOLIBRARY;
- this.destinationType = org_apache_cordova_camera_Camera.DestinationType.DATA_URL;
- this.mediaType = org_apache_cordova_camera_Camera.MediaType.PICTURE;
- this.encodingType = org_apache_cordova_camera_Camera.EncodingType.JPEG;
- this.direction = org_apache_cordova_camera_Camera.Direction.BACK;
+org.apache.cordova.camera.Camera = function() {
+ this.pictureSourceType = org.apache.cordova.camera.Camera.PictureSourceType.PHOTOLIBRARY;
+ this.destinationType = org.apache.cordova.camera.Camera.DestinationType.DATA_URL;
+ this.mediaType = org.apache.cordova.camera.Camera.MediaType.PICTURE;
+ this.encodingType = org.apache.cordova.camera.Camera.EncodingType.JPEG;
+ this.direction = org.apache.cordova.camera.Camera.Direction.BACK;
};
/**
* @type {Object}
*/
-org_apache_cordova_camera_Camera.DestinationType = {DATA_URL: 0, FILE_URI: 1, NATIVE_URI: 2};
+org.apache.cordova.camera.Camera.DestinationType = {DATA_URL: 0, FILE_URI: 1, NATIVE_URI: 2};
/**
* @type {Object}
*/
-org_apache_cordova_camera_Camera.PictureSourceType = {PHOTOLIBRARY: 0, CAMERA: 1, SAVEDPHOTOALBUM: 2};
+org.apache.cordova.camera.Camera.PictureSourceType = {PHOTOLIBRARY: 0, CAMERA: 1, SAVEDPHOTOALBUM: 2};
/**
* @type {Object}
*/
-org_apache_cordova_camera_Camera.EncodingType = {JPEG: 0, PNG: 1};
+org.apache.cordova.camera.Camera.EncodingType = {JPEG: 0, PNG: 1};
/**
* @type {Object}
*/
-org_apache_cordova_camera_Camera.MediaType = {PICTURE: 0, VIDEO: 1, ALLMEDIA: 2};
+org.apache.cordova.camera.Camera.MediaType = {PICTURE: 0, VIDEO: 1, ALLMEDIA: 2};
/**
* @type {Object}
*/
-org_apache_cordova_camera_Camera.Direction = {BACK: 0, FRONT: 1};
+org.apache.cordova.camera.Camera.Direction = {BACK: 0, FRONT: 1};
/**
* @type {number}
*/
-//org_apache_cordova_camera_Camera.prototype.pictureSourceType;
+//org.apache.cordova.camera.Camera.prototype.pictureSourceType;
/**
* @type {number}
*/
-//org_apache_cordova_camera_Camera.prototype.destinationType;
+//org.apache.cordova.camera.Camera.prototype.destinationType;
/**
* @type {number}
*/
-//org_apache_cordova_camera_Camera.prototype.mediaType;
+//org.apache.cordova.camera.Camera.prototype.mediaType;
/**
* @type {number}
*/
-//org_apache_cordova_camera_Camera.prototype.encodingType;
+//org.apache.cordova.camera.Camera.prototype.encodingType;
/**
* @type {number}
*/
-//org_apache_cordova_camera_Camera.prototype.direction;
+//org.apache.cordova.camera.Camera.prototype.direction;
/**
@@ -111,7 +111,7 @@ org_apache_cordova_camera_Camera.Direction = {BACK: 0, FRONT: 1};
* @param {Function} cameraError
* @param {Object} cameraOptions
*/
-org_apache_cordova_camera_Camera.prototype.getPicture = function(cameraSuccess, cameraError, cameraOptions) {
+org.apache.cordova.camera.Camera.prototype.getPicture = function(cameraSuccess, cameraError, cameraOptions) {
navigator.camera.getPicture(cameraSuccess, cameraError, cameraOptions);
};
@@ -121,7 +121,7 @@ org_apache_cordova_camera_Camera.prototype.getPicture = function(cameraSuccess,
* @param {Function} cameraSuccess
* @param {Function} cameraError
*/
-org_apache_cordova_camera_Camera.prototype.cleanup = function(cameraSuccess, cameraError) {
+org.apache.cordova.camera.Camera.prototype.cleanup = function(cameraSuccess, cameraError) {
navigator.camera.cleanup();
};
@@ -131,6 +131,6 @@ org_apache_cordova_camera_Camera.prototype.cleanup = function(cameraSuccess, cam
*
* @type {Object.<string, Array.<Object>>}
*/
-org_apache_cordova_camera_Camera.prototype.FLEXJS_CLASS_INFO = {
- names: [{ name: 'Camera', qName: 'org_apache_cordova_camera_Camera'}]
+org.apache.cordova.camera.Camera.prototype.FLEXJS_CLASS_INFO = {
+ names: [{ name: 'Camera', qName: 'org.apache.cordova.camera.Camera'}]
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/88cb1f5b/frameworks/projects/Mobile/js/src/org/apache/flex/mobile/ManagerBase.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Mobile/js/src/org/apache/flex/mobile/ManagerBase.js b/frameworks/projects/Mobile/js/src/org/apache/flex/mobile/ManagerBase.js
index 3f1b2e2..343ba4e 100644
--- a/frameworks/projects/Mobile/js/src/org/apache/flex/mobile/ManagerBase.js
+++ b/frameworks/projects/Mobile/js/src/org/apache/flex/mobile/ManagerBase.js
@@ -12,23 +12,23 @@
* limitations under the License.
*/
-goog.provide('org_apache_flex_mobile_ManagerBase');
+goog.provide('org.apache.flex.mobile.ManagerBase');
-goog.require('org_apache_flex_core_IChrome');
-goog.require('org_apache_flex_core_UIBase');
-goog.require('org_apache_flex_utils_Language');
+goog.require('org.apache.flex.core.IChrome');
+goog.require('org.apache.flex.core.UIBase');
+goog.require('org.apache.flex.utils.Language');
/**
* @constructor
- * @extends {org_apache_flex_core_UIBase}
+ * @extends {org.apache.flex.core.UIBase}
*/
-org_apache_flex_mobile_ManagerBase = function() {
- org_apache_flex_mobile_ManagerBase.base(this, 'constructor');
+org.apache.flex.mobile.ManagerBase = function() {
+ org.apache.flex.mobile.ManagerBase.base(this, 'constructor');
};
-goog.inherits(org_apache_flex_mobile_ManagerBase,
- org_apache_flex_core_UIBase);
+goog.inherits(org.apache.flex.mobile.ManagerBase,
+ org.apache.flex.core.UIBase);
/**
@@ -36,25 +36,25 @@ goog.inherits(org_apache_flex_mobile_ManagerBase,
*
* @type {Object.<string, Array.<Object>>}
*/
-org_apache_flex_mobile_ManagerBase.prototype.FLEXJS_CLASS_INFO =
+org.apache.flex.mobile.ManagerBase.prototype.FLEXJS_CLASS_INFO =
{ names: [{ name: 'ManagerBase',
- qName: 'org_apache_flex_mobile_ManagerBase' }] };
+ qName: 'org.apache.flex.mobile.ManagerBase' }] };
/**
- * @type {org_apache_flex_core_UIBase}
+ * @type {org.apache.flex.core.UIBase}
*/
-org_apache_flex_mobile_ManagerBase.prototype._contentArea = null;
+org.apache.flex.mobile.ManagerBase.prototype._contentArea = null;
-Object.defineProperties(org_apache_flex_mobile_ManagerBase.prototype, {
+Object.defineProperties(org.apache.flex.mobile.ManagerBase.prototype, {
/** @export */
contentArea: {
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org.apache.flex.core.UIBase} */
get: function() {
return this._contentArea;
},
- /** @this {org_apache_flex_core_UIBase} */
+ /** @this {org.apache.flex.core.UIBase} */
set: function(value) {
this._contentArea = value;
}
@@ -66,9 +66,9 @@ Object.defineProperties(org_apache_flex_mobile_ManagerBase.prototype, {
* @override
* @param {Object} c Element being added.
*/
-org_apache_flex_mobile_ManagerBase.prototype.addElement = function(c) {
- if (org_apache_flex_utils_Language.is(c, org_apache_flex_core_IChrome)) {
- org_apache_flex_mobile_ManagerBase.base(this, 'addElement', c);
+org.apache.flex.mobile.ManagerBase.prototype.addElement = function(c) {
+ if (org.apache.flex.utils.Language.is(c, org.apache.flex.core.IChrome)) {
+ org.apache.flex.mobile.ManagerBase.base(this, 'addElement', c);
}
else {
this._contentArea.addElement(c);
@@ -81,10 +81,10 @@ org_apache_flex_mobile_ManagerBase.prototype.addElement = function(c) {
* @param {Object} c The child element.
* @param {number} index The index.
*/
-org_apache_flex_mobile_ManagerBase.prototype.addElementAt =
+org.apache.flex.mobile.ManagerBase.prototype.addElementAt =
function(c, index) {
- if (org_apache_flex_utils_Language.is(c, org_apache_flex_core_IChrome)) {
- org_apache_flex_mobile_ManagerBase.base(this, 'addElementAt', c, index);
+ if (org.apache.flex.utils.Language.is(c, org.apache.flex.core.IChrome)) {
+ org.apache.flex.mobile.ManagerBase.base(this, 'addElementAt', c, index);
}
else {
this._contentArea.addElementAt(c, index);
@@ -97,7 +97,7 @@ org_apache_flex_mobile_ManagerBase.prototype.addElementAt =
* @param {Object} c The child element.
* @return {number} The index in parent.
*/
-org_apache_flex_mobile_ManagerBase.prototype.getElementIndex =
+org.apache.flex.mobile.ManagerBase.prototype.getElementIndex =
function(c) {
return this._contentArea.getElementIndex(c);
};
@@ -107,7 +107,7 @@ org_apache_flex_mobile_ManagerBase.prototype.getElementIndex =
* @override
* @param {Object} c The child element.
*/
-org_apache_flex_mobile_ManagerBase.prototype.removeElement =
+org.apache.flex.mobile.ManagerBase.prototype.removeElement =
function(c) {
this._contentArea.removeElement(c);
};
@@ -116,7 +116,7 @@ org_apache_flex_mobile_ManagerBase.prototype.removeElement =
/**
* @override
*/
-org_apache_flex_mobile_ManagerBase.prototype.createElement =
+org.apache.flex.mobile.ManagerBase.prototype.createElement =
function() {
this.element = document.createElement('div');
@@ -125,9 +125,9 @@ org_apache_flex_mobile_ManagerBase.prototype.createElement =
this.positioner = this.element;
this.element.flexjs_wrapper = this;
- this._contentArea = new org_apache_flex_core_UIBase();
+ this._contentArea = new org.apache.flex.core.UIBase();
this._contentArea.className = 'ContentArea';
- org_apache_flex_core_UIBase.prototype.addElement.call(this, this._contentArea);
+ org.apache.flex.core.UIBase.prototype.addElement.call(this, this._contentArea);
return this.element;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/88cb1f5b/frameworks/projects/Network/js/src/org/apache/flex/net/BinaryUploader.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Network/js/src/org/apache/flex/net/BinaryUploader.js b/frameworks/projects/Network/js/src/org/apache/flex/net/BinaryUploader.js
index 2478e7e..48e92c4 100644
--- a/frameworks/projects/Network/js/src/org/apache/flex/net/BinaryUploader.js
+++ b/frameworks/projects/Network/js/src/org/apache/flex/net/BinaryUploader.js
@@ -12,19 +12,19 @@
* limitations under the License.
*/
-goog.provide('org_apache_flex_net_BinaryUploader');
+goog.provide('org.apache.flex.net.BinaryUploader');
-goog.require('org_apache_flex_core_HTMLElementWrapper');
-goog.require('org_apache_flex_net_HTTPHeader');
+goog.require('org.apache.flex.core.HTMLElementWrapper');
+goog.require('org.apache.flex.net.HTTPHeader');
/**
* @constructor
- * @extends {org_apache_flex_core_HTMLElementWrapper}
+ * @extends {org.apache.flex.core.HTMLElementWrapper}
*/
-org_apache_flex_net_BinaryUploader = function() {
- org_apache_flex_net_BinaryUploader.base(this, 'constructor');
+org.apache.flex.net.BinaryUploader = function() {
+ org.apache.flex.net.BinaryUploader.base(this, 'constructor');
/**
* @private
@@ -87,8 +87,8 @@ org_apache_flex_net_BinaryUploader = function() {
this.element = new XMLHttpRequest();
};
-goog.inherits(org_apache_flex_net_BinaryUploader,
- org_apache_flex_core_HTMLElementWrapper);
+goog.inherits(org.apache.flex.net.BinaryUploader,
+ org.apache.flex.core.HTMLElementWrapper);
/**
@@ -96,72 +96,72 @@ goog.inherits(org_apache_flex_net_BinaryUploader,
*
* @type {Object.<string, Array.<Object>>}
*/
-org_apache_flex_net_BinaryUploader.prototype.FLEXJS_CLASS_INFO =
+org.apache.flex.net.BinaryUploader.prototype.FLEXJS_CLASS_INFO =
{ names: [{ name: 'BinaryUploader',
- qName: 'org_apache_flex_net_BinaryUploader'}] };
+ qName: 'org.apache.flex.net.BinaryUploader'}] };
/**
* @export
* @type {string}
*/
-org_apache_flex_net_BinaryUploader.HTTP_METHOD_GET = 'GET';
+org.apache.flex.net.BinaryUploader.HTTP_METHOD_GET = 'GET';
/**
* @export
* @type {string}
*/
-org_apache_flex_net_BinaryUploader.HTTP_METHOD_POST = 'POST';
+org.apache.flex.net.BinaryUploader.HTTP_METHOD_POST = 'POST';
/**
* @export
* @type {string}
*/
-org_apache_flex_net_BinaryUploader.HTTP_METHOD_PUT = 'PUT';
+org.apache.flex.net.BinaryUploader.HTTP_METHOD_PUT = 'PUT';
/**
* @export
* @type {string}
*/
-org_apache_flex_net_BinaryUploader.HTTP_METHOD_DELETE = 'DELETE';
+org.apache.flex.net.BinaryUploader.HTTP_METHOD_DELETE = 'DELETE';
-Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
+Object.defineProperties(org.apache.flex.net.BinaryUploader.prototype, {
/** @export */
data: {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
get: function() {
return this.element.responseText;
}
},
/** @export */
binaryData: {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
get: function() {
return this.binaryData_;
},
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
set: function(value) {
this.binaryData_ = value;
}
},
/** @export */
contentType: {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
get: function() {
return this.contentType_;
},
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
set: function(value) {
this.contentType_ = value;
}
},
/** @export */
headers: {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
get: function() {
if (this.headers_ === 'undefined') {
this.headers_ = [];
@@ -169,25 +169,25 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
return this.headers_;
},
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
set: function(value) {
this.headers_ = value;
}
},
/** @export */
method: {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
get: function() {
return this.method_;
},
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
set: function(value) {
this.method_ = value;
}
},
/** @export */
responseHeaders: {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
get: function() {
var allHeaders, c, hdr, i, n, part1, part2;
@@ -201,7 +201,7 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
part1 = hdr.substring(0, c);
part2 = hdr.substring(c + 2);
this.responseHeaders_[i] =
- new org_apache_flex_net_HTTPHeader(part1, part2);
+ new org.apache.flex.net.HTTPHeader(part1, part2);
}
}
return this.responseHeaders_;
@@ -209,47 +209,47 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
},
/** @export */
responseURL: {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
get: function() {
return this.responseURL_;
}
},
/** @export */
status: {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
get: function() {
return this.status_;
}
},
/** @export */
timeout: {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
get: function() {
return this.timeout_;
},
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
set: function(value) {
this.timeout_ = value;
}
},
/** @export */
url: {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
get: function() {
return this.url_;
},
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
set: function(value) {
this.url_ = value;
}
},
/** @export */
id: {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
get: function() {
return this.id;
},
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
set: function(value) {
if (this.id !== value) {
this.id = value;
@@ -259,14 +259,14 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
},
/** @export */
MXMLDescriptor: {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
get: function() {
return null;
}
},
/** @export */
MXMLProperties: {
- /** @this {org_apache_flex_net_BinaryUploader} */
+ /** @this {org.apache.flex.net.BinaryUploader} */
get: function() {
return null;
}
@@ -277,7 +277,7 @@ Object.defineProperties(org_apache_flex_net_BinaryUploader.prototype, {
/**
* @export
*/
-org_apache_flex_net_BinaryUploader.prototype.send = function() {
+org.apache.flex.net.BinaryUploader.prototype.send = function() {
var binaryData, header, i, n, sawContentType, url;
this.element.onreadystatechange = goog.bind(this.progressHandler, this);
@@ -286,7 +286,7 @@ org_apache_flex_net_BinaryUploader.prototype.send = function() {
binaryData = null;
if (this.binaryData_ !== undefined) {
- if (this.method_ === org_apache_flex_net_BinaryUploader.HTTP_METHOD_GET) {
+ if (this.method_ === org.apache.flex.net.BinaryUploader.HTTP_METHOD_GET) {
if (url.indexOf('?') !== -1) {
url += this.binaryData_.data;
} else {
@@ -305,7 +305,7 @@ org_apache_flex_net_BinaryUploader.prototype.send = function() {
n = this.headers_.length;
for (i = 0; i < n; i++) {
header = this.headers_[i];
- if (header.name === org_apache_flex_net_HTTPHeader.CONTENT_TYPE) {
+ if (header.name === org.apache.flex.net.HTTPHeader.CONTENT_TYPE) {
sawContentType = true;
}
@@ -313,10 +313,10 @@ org_apache_flex_net_BinaryUploader.prototype.send = function() {
}
}
- if (this.method_ !== org_apache_flex_net_BinaryUploader.HTTP_METHOD_GET &&
+ if (this.method_ !== org.apache.flex.net.BinaryUploader.HTTP_METHOD_GET &&
!sawContentType && binaryData) {
this.element.setRequestHeader(
- org_apache_flex_net_HTTPHeader.CONTENT_TYPE, this.binaryType_);
+ org.apache.flex.net.HTTPHeader.CONTENT_TYPE, this.binaryType_);
}
if (binaryData) {
@@ -332,7 +332,7 @@ org_apache_flex_net_BinaryUploader.prototype.send = function() {
/**
* @protected
*/
-org_apache_flex_net_BinaryUploader.prototype.progressHandler = function() {
+org.apache.flex.net.BinaryUploader.prototype.progressHandler = function() {
if (this.element.readyState === 2) {
this.status_ = this.element.status;
this.dispatchEvent('httpResponseStatus');
@@ -347,14 +347,14 @@ org_apache_flex_net_BinaryUploader.prototype.progressHandler = function() {
* @export
* @type {string}
*/
-org_apache_flex_net_BinaryUploader.prototype.id = null;
+org.apache.flex.net.BinaryUploader.prototype.id = null;
/**
* @param {Object} document The MXML object.
* @param {string} id The id for the instance.
*/
-org_apache_flex_net_BinaryUploader.prototype.setDocument =
+org.apache.flex.net.BinaryUploader.prototype.setDocument =
function(document, id) {
this.document = document;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/88cb1f5b/frameworks/projects/Network/js/src/org/apache/flex/net/HTTPHeader.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Network/js/src/org/apache/flex/net/HTTPHeader.js b/frameworks/projects/Network/js/src/org/apache/flex/net/HTTPHeader.js
index f754369..bcbe285 100644
--- a/frameworks/projects/Network/js/src/org/apache/flex/net/HTTPHeader.js
+++ b/frameworks/projects/Network/js/src/org/apache/flex/net/HTTPHeader.js
@@ -12,7 +12,7 @@
* limitations under the License.
*/
-goog.provide('org_apache_flex_net_HTTPHeader');
+goog.provide('org.apache.flex.net.HTTPHeader');
@@ -21,7 +21,7 @@ goog.provide('org_apache_flex_net_HTTPHeader');
* @param {string=} opt_name The name.
* @param {string=} opt_value The value.
*/
-org_apache_flex_net_HTTPHeader = function(opt_name, opt_value) {
+org.apache.flex.net.HTTPHeader = function(opt_name, opt_value) {
if (typeof opt_name !== 'undefined') {
this.name = opt_name;
}
@@ -37,27 +37,27 @@ org_apache_flex_net_HTTPHeader = function(opt_name, opt_value) {
*
* @type {Object.<string, Array.<Object>>}
*/
-org_apache_flex_net_HTTPHeader.prototype.FLEXJS_CLASS_INFO =
+org.apache.flex.net.HTTPHeader.prototype.FLEXJS_CLASS_INFO =
{ names: [{ name: 'HTTPHeader',
- qName: 'org_apache_flex_net_HTTPHeader'}] };
+ qName: 'org.apache.flex.net.HTTPHeader'}] };
/**
* @export
* @type {string}
*/
-org_apache_flex_net_HTTPHeader.CONTENT_TYPE = 'Content-type';
+org.apache.flex.net.HTTPHeader.CONTENT_TYPE = 'Content-type';
/**
* @export
* @type {?string}
*/
-org_apache_flex_net_HTTPHeader.prototype.value = null;
+org.apache.flex.net.HTTPHeader.prototype.value = null;
/**
* @export
* @type {?string}
*/
-org_apache_flex_net_HTTPHeader.prototype.name = null;
+org.apache.flex.net.HTTPHeader.prototype.name = null;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/88cb1f5b/frameworks/projects/Network/js/src/org/apache/flex/net/HTTPService.js
----------------------------------------------------------------------
diff --git a/frameworks/projects/Network/js/src/org/apache/flex/net/HTTPService.js b/frameworks/projects/Network/js/src/org/apache/flex/net/HTTPService.js
index a819dc0..cfdd874 100644
--- a/frameworks/projects/Network/js/src/org/apache/flex/net/HTTPService.js
+++ b/frameworks/projects/Network/js/src/org/apache/flex/net/HTTPService.js
@@ -12,19 +12,19 @@
* limitations under the License.
*/
-goog.provide('org_apache_flex_net_HTTPService');
+goog.provide('org.apache.flex.net.HTTPService');
-goog.require('org_apache_flex_core_HTMLElementWrapper');
-goog.require('org_apache_flex_net_HTTPHeader');
+goog.require('org.apache.flex.core.HTMLElementWrapper');
+goog.require('org.apache.flex.net.HTTPHeader');
/**
* @constructor
- * @extends {org_apache_flex_core_HTMLElementWrapper}
+ * @extends {org.apache.flex.core.HTMLElementWrapper}
*/
-org_apache_flex_net_HTTPService = function() {
- org_apache_flex_net_HTTPService.base(this, 'constructor');
+org.apache.flex.net.HTTPService = function() {
+ org.apache.flex.net.HTTPService.base(this, 'constructor');
/**
* @private
@@ -99,8 +99,8 @@ org_apache_flex_net_HTTPService = function() {
this.element = new XMLHttpRequest();
};
-goog.inherits(org_apache_flex_net_HTTPService,
- org_apache_flex_core_HTMLElementWrapper);
+goog.inherits(org.apache.flex.net.HTTPService,
+ org.apache.flex.core.HTMLElementWrapper);
/**
@@ -108,90 +108,90 @@ goog.inherits(org_apache_flex_net_HTTPService,
*
* @type {Object.<string, Array.<Object>>}
*/
-org_apache_flex_net_HTTPService.prototype.FLEXJS_CLASS_INFO =
+org.apache.flex.net.HTTPService.prototype.FLEXJS_CLASS_INFO =
{ names: [{ name: 'HTTPService',
- qName: 'org_apache_flex_net_HTTPService'}] };
+ qName: 'org.apache.flex.net.HTTPService'}] };
/**
* @export
* @type {string}
*/
-org_apache_flex_net_HTTPService.HTTP_METHOD_GET = 'GET';
+org.apache.flex.net.HTTPService.HTTP_METHOD_GET = 'GET';
/**
* @export
* @type {string}
*/
-org_apache_flex_net_HTTPService.HTTP_METHOD_POST = 'POST';
+org.apache.flex.net.HTTPService.HTTP_METHOD_POST = 'POST';
/**
* @export
* @type {string}
*/
-org_apache_flex_net_HTTPService.HTTP_METHOD_PUT = 'PUT';
+org.apache.flex.net.HTTPService.HTTP_METHOD_PUT = 'PUT';
/**
* @export
* @type {string}
*/
-org_apache_flex_net_HTTPService.HTTP_METHOD_DELETE = 'DELETE';
+org.apache.flex.net.HTTPService.HTTP_METHOD_DELETE = 'DELETE';
/**
* @export
* @type {string}
*/
-org_apache_flex_net_HTTPService.EVENT_COMPLETE = 'complete';
+org.apache.flex.net.HTTPService.EVENT_COMPLETE = 'complete';
/**
* @export
* @type {string}
*/
-org_apache_flex_net_HTTPService.EVENT_IO_ERROR = 'ioError';
+org.apache.flex.net.HTTPService.EVENT_IO_ERROR = 'ioError';
/**
* @export
* @type {string}
*/
-org_apache_flex_net_HTTPService.EVENT_HTTP_STATUS = 'httpStatus';
+org.apache.flex.net.HTTPService.EVENT_HTTP_STATUS = 'httpStatus';
/**
* @export
* @type {string}
*/
-org_apache_flex_net_HTTPService.EVENT_HTTP_RESPONSE_STATUS = 'httpResponseStatus';
+org.apache.flex.net.HTTPService.EVENT_HTTP_RESPONSE_STATUS = 'httpResponseStatus';
-Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
+Object.defineProperties(org.apache.flex.net.HTTPService.prototype, {
/** @export */
strand: {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
set: function(value) {}
},
/** @export */
beads: {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
set: function(value) {
this.mxmlBeads_ = value;
}
},
/** @export */
data: {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
get: function() {
return this.element.responseText;
}
},
/** @export */
json: {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
get: function() {
if (!this._json)
this._json = JSON.parse(this.data);
@@ -200,29 +200,29 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
},
/** @export */
contentData: {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
get: function() {
return this.contentData_;
},
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
set: function(value) {
this.contentData_ = value;
}
},
/** @export */
contentType: {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
get: function() {
return this.contentType_;
},
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
set: function(value) {
this.contentType_ = value;
}
},
/** @export */
headers: {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
get: function() {
if (this.headers_ === undefined) {
this.headers_ = [];
@@ -230,25 +230,25 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
return this.headers_;
},
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
set: function(value) {
this.headers_ = value;
}
},
/** @export */
method: {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
get: function() {
return this.method_;
},
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
set: function(value) {
this.method_ = value;
}
},
/** @export */
responseHeaders: {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
get: function() {
var allHeaders, c, hdr, i, n, part1, part2;
@@ -262,7 +262,7 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
part1 = hdr.substring(0, c);
part2 = hdr.substring(c + 2);
this.responseHeaders_[i] =
- new org_apache_flex_net_HTTPHeader(part1, part2);
+ new org.apache.flex.net.HTTPHeader(part1, part2);
}
}
return this.responseHeaders_;
@@ -270,47 +270,47 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
},
/** @export */
responseURL: {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
get: function() {
return this.responseURL_;
}
},
/** @export */
status: {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
get: function() {
return this.status_;
}
},
/** @export */
timeout: {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
get: function() {
return this.timeout_;
},
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
set: function(value) {
this.timeout_ = value;
}
},
/** @export */
url: {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
get: function() {
return this.url_;
},
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
set: function(value) {
this.url_ = value;
}
},
/** @export */
id: {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
get: function() {
return this.id_;
},
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
set: function(value) {
if (this.id_ !== value) {
this.id_ = value;
@@ -320,14 +320,14 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
},
/** @export */
MXMLDescriptor: {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
get: function() {
return null;
}
},
/** @export */
MXMLProperties: {
- /** @this {org_apache_flex_net_HTTPService} */
+ /** @this {org.apache.flex.net.HTTPService} */
get: function() {
return null;
}
@@ -338,7 +338,7 @@ Object.defineProperties(org_apache_flex_net_HTTPService.prototype, {
/**
* @export
*/
-org_apache_flex_net_HTTPService.prototype.send = function() {
+org.apache.flex.net.HTTPService.prototype.send = function() {
var contentData, header, i, n, sawContentType, url;
if (this._beads == null && this.mxmlBeads_) {
@@ -354,7 +354,7 @@ org_apache_flex_net_HTTPService.prototype.send = function() {
contentData = null;
if (this.contentData_ !== undefined) {
- if (this.method_ === org_apache_flex_net_HTTPService.HTTP_METHOD_GET) {
+ if (this.method_ === org.apache.flex.net.HTTPService.HTTP_METHOD_GET) {
if (url.indexOf('?') !== -1) {
url += this.contentData_;
} else {
@@ -373,7 +373,7 @@ org_apache_flex_net_HTTPService.prototype.send = function() {
n = this.headers_.length;
for (i = 0; i < n; i++) {
header = this.headers_[i];
- if (header.name === org_apache_flex_net_HTTPHeader.CONTENT_TYPE) {
+ if (header.name === org.apache.flex.net.HTTPHeader.CONTENT_TYPE) {
sawContentType = true;
}
@@ -381,10 +381,10 @@ org_apache_flex_net_HTTPService.prototype.send = function() {
}
}
- if (this.method_ !== org_apache_flex_net_HTTPService.HTTP_METHOD_GET &&
+ if (this.method_ !== org.apache.flex.net.HTTPService.HTTP_METHOD_GET &&
!sawContentType && contentData) {
this.element.setRequestHeader(
- org_apache_flex_net_HTTPHeader.CONTENT_TYPE, this.contentType_);
+ org.apache.flex.net.HTTPHeader.CONTENT_TYPE, this.contentType_);
}
if (contentData) {
@@ -400,7 +400,7 @@ org_apache_flex_net_HTTPService.prototype.send = function() {
/**
* @protected
*/
-org_apache_flex_net_HTTPService.prototype.progressHandler = function() {
+org.apache.flex.net.HTTPService.prototype.progressHandler = function() {
if (this.element.readyState === 2) {
this.status_ = this.element.status;
this.dispatchEvent('httpResponseStatus');
@@ -415,6 +415,6 @@ org_apache_flex_net_HTTPService.prototype.progressHandler = function() {
* @param {Object} document The MXML object.
* @param {string} id The id for the instance.
*/
-org_apache_flex_net_HTTPService.prototype.setDocument = function(document, id) {
+org.apache.flex.net.HTTPService.prototype.setDocument = function(document, id) {
this.document = document;
};