You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by er...@apache.org on 2013/11/07 14:58:25 UTC
[06/17] Run of 'gjslint' with --strict argument. Lot's of indentation
and too long line fixes.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
index e5ac4ef..92cff67 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/core/ViewBase.js
@@ -24,55 +24,60 @@ goog.require('org.apache.flex.utils.MXMLDataInterpreter');
* @extends {org.apache.flex.createjs.core.UIBase}
*/
org.apache.flex.createjs.core.ViewBase = function() {
- goog.base(this);
+ goog.base(this);
- /**
+ /**
* @private
* @type {org.apache.flex.createjs.core.ViewBase}
*/
- this.currentObject_ = null;
+ this.currentObject_ = null;
};
goog.inherits(org.apache.flex.createjs.core.ViewBase,
- org.apache.flex.createjs.core.UIBase);
+ org.apache.flex.createjs.core.UIBase);
+
/**
* @expose
* @return {Object} Returns the application model.
*/
org.apache.flex.createjs.core.ViewBase.prototype.get_applicationModel =
- function() {
+ function() {
return this.applicationModel;
};
+
/**
* @expose
* @param {Object} value The application model.
*/
org.apache.flex.createjs.core.ViewBase.prototype.set_applicationModel =
- function(value) {
+ function(value) {
this.applicationModel = value;
};
+
/**
* @expose
* @type {Array}
*/
org.apache.flex.createjs.core.ViewBase.prototype.MXMLProperties = null;
+
/**
* @expose
* @type {Array}
*/
org.apache.flex.createjs.core.ViewBase.prototype.MXMLDescriptor = null;
+
/**
* @this {org.apache.flex.createjs.core.ViewBase}
* @param {Object} model The model for this view.
*/
org.apache.flex.createjs.core.ViewBase.prototype.initUI = function(model) {
- this.applicationModel = model;
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLProperties(this,
- this.get_MXMLProperties());
- org.apache.flex.utils.MXMLDataInterpreter.generateMXMLInstances(this,
- this, this.get_MXMLDescriptor());
+ this.applicationModel = model;
+ org.apache.flex.utils.MXMLDataInterpreter.generateMXMLProperties(this,
+ this.get_MXMLProperties());
+ org.apache.flex.utils.MXMLDataInterpreter.generateMXMLInstances(this,
+ this, this.get_MXMLDescriptor());
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/CheckBox.js
index 5303011..396ab01 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/CheckBox.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/CheckBox.js
@@ -23,10 +23,11 @@ goog.require('org.apache.flex.createjs.core.UIBase');
* @extends {org.apache.flex.createjs.core.UIBase}
*/
org.apache.flex.createjs.staticControls.CheckBox = function() {
- goog.base(this);
+ goog.base(this);
};
goog.inherits(org.apache.flex.createjs.staticControls.CheckBox,
- org.apache.flex.createjs.core.UIBase);
+ org.apache.flex.createjs.core.UIBase);
+
/**
* @expose
@@ -34,12 +35,14 @@ goog.inherits(org.apache.flex.createjs.staticControls.CheckBox,
*/
org.apache.flex.createjs.staticControls.CheckBox.prototype.checkMark = null;
+
/**
* @expose
* @type {Object}
*/
org.apache.flex.createjs.staticControls.CheckBox.prototype.checkMarkBackground =
- null;
+ null;
+
/**
* @expose
@@ -47,95 +50,101 @@ org.apache.flex.createjs.staticControls.CheckBox.prototype.checkMarkBackground =
*/
org.apache.flex.createjs.staticControls.CheckBox.prototype.checkBoxLabel = null;
+
/**
* @override
* @this {org.apache.flex.createjs.staticControls.CheckBox}
*/
org.apache.flex.createjs.staticControls.CheckBox.prototype.createElement =
function() {
- this.checkMarkBackground = new createjs.Shape();
- this.checkMarkBackground.name = 'checkmarkbackground';
- this.checkMarkBackground.graphics.beginFill('red').
+ this.checkMarkBackground = new createjs.Shape();
+ this.checkMarkBackground.name = 'checkmarkbackground';
+ this.checkMarkBackground.graphics.beginFill('red').
drawRoundRect(0, 0, 40, 40, 8);
- //this.checkMarkBackground.graphics.setStrokeStyle( 0 ).beginStroke('#000').
- // drawRect( 0, 0, this.width, this.height);
- //var hit = new createjs.Shape();
- //hit.graphics.beginFill("#000").drawRect(0, 0, this.width, this.height);
- //this.checkMarkBackground.hitArea = hit;
-
- this.checkMark = new createjs.Shape();
- this.checkMark.name = 'checkmark';
- this.checkMark.graphics.beginFill('white').drawRoundRect(0, 0, 32, 32, 6);
- this.checkMark.x = 4;
- this.checkMark.y = 4;
- this.checkMark.visible = this.selected;
-
- this.checkBoxLabel = new createjs.Text('checkbox', '20px Arial', '#ff7700');
- this.checkBoxLabel.name = 'label';
- this.checkBoxLabel.textAlign = 'left';
- this.checkBoxLabel.textBaseline = 'middle';
- this.checkBoxLabel.x = 45;
- this.checkBoxLabel.y = 40 / 2;
-
- this.element = new createjs.Container();
- this.element.name = 'checkbox';
- this.element.addChild(this.checkMarkBackground, this.checkBoxLabel,
+ //this.checkMarkBackground.graphics.setStrokeStyle( 0 ).beginStroke('#000').
+ // drawRect( 0, 0, this.width, this.height);
+ //var hit = new createjs.Shape();
+ //hit.graphics.beginFill("#000").drawRect(0, 0, this.width, this.height);
+ //this.checkMarkBackground.hitArea = hit;
+
+ this.checkMark = new createjs.Shape();
+ this.checkMark.name = 'checkmark';
+ this.checkMark.graphics.beginFill('white').drawRoundRect(0, 0, 32, 32, 6);
+ this.checkMark.x = 4;
+ this.checkMark.y = 4;
+ this.checkMark.visible = this.selected;
+
+ this.checkBoxLabel = new createjs.Text('checkbox', '20px Arial', '#ff7700');
+ this.checkBoxLabel.name = 'label';
+ this.checkBoxLabel.textAlign = 'left';
+ this.checkBoxLabel.textBaseline = 'middle';
+ this.checkBoxLabel.x = 45;
+ this.checkBoxLabel.y = 40 / 2;
+
+ this.element = new createjs.Container();
+ this.element.name = 'checkbox';
+ this.element.addChild(this.checkMarkBackground, this.checkBoxLabel,
this.checkMark);
- // use bind(this) to avoid loose scope
- this.element.onClick = this.clickHandler.bind(this);
+ // use bind(this) to avoid loose scope
+ this.element.onClick = this.clickHandler.bind(this);
- p.addChild(this.element);
+ p.addChild(this.element);
- this.positioner = this.element;
+ this.positioner = this.element;
};
+
/**
* @expose
* @this {org.apache.flex.createjs.staticControls.CheckBox}
* @return {string} The text getter.
*/
org.apache.flex.createjs.staticControls.CheckBox.prototype.get_text =
- function() {
- return this.checkBoxLabel.text;
+ function() {
+ return this.checkBoxLabel.text;
};
+
/**
* @expose
* @this {org.apache.flex.createjs.staticControls.CheckBox}
* @param {string} value The text setter.
*/
org.apache.flex.createjs.staticControls.CheckBox.prototype.set_text =
- function(value) {
- this.checkBoxLabel.text = value;
+ function(value) {
+ this.checkBoxLabel.text = value;
};
+
/**
* @expose
* @this {org.apache.flex.createjs.staticControls.CheckBox}
* @return {bool} The selected getter.
*/
org.apache.flex.createjs.staticControls.CheckBox.prototype.get_selected =
- function() {
- return this.selected;
+ function() {
+ return this.selected;
};
+
/**
* @expose
* @this {org.apache.flex.createjs.staticControls.CheckBox}
* @param {bool} value The selected setter.
*/
org.apache.flex.createjs.staticControls.CheckBox.prototype.set_selected =
- function(value) {
- this.checkMark.visible = this.selected = value;
- this.element.getStage().update();
+ function(value) {
+ this.checkMark.visible = this.selected = value;
+ this.element.getStage().update();
};
+
/**
* @expose
* @this {org.apache.flex.createjs.staticControls.CheckBox}
* @param {string|Object|goog.events.Event} event The event.
*/
org.apache.flex.createjs.staticControls.CheckBox.prototype.clickHandler =
- function(event) {
- this.set_selected(!this.get_selected());
+ function(event) {
+ this.set_selected(!this.get_selected());
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/Label.js
index c5b89cc..5a358f7 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/Label.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/Label.js
@@ -16,50 +16,55 @@ goog.provide('org.apache.flex.createjs.staticControls.Label');
goog.require('org.apache.flex.createjs.core.UIBase');
+
+
/**
* @constructor
* @extends {org.apache.flex.createjs.core.UIBase}
*/
org.apache.flex.createjs.staticControls.Label = function() {
- org.apache.flex.createjs.core.UIBase.call(this);
+ org.apache.flex.createjs.core.UIBase.call(this);
};
goog.inherits(org.apache.flex.createjs.staticControls.Label,
- org.apache.flex.createjs.core.UIBase);
+ org.apache.flex.createjs.core.UIBase);
+
/**
* @override
* @this {org.apache.flex.createjs.staticControls.Label}
*/
org.apache.flex.createjs.staticControls.Label.prototype.createElement =
- function(p) {
- goog.base(this, 'createElement');
+ function(p) {
+ goog.base(this, 'createElement');
- this.element = new createjs.Text('default text', '20px Arial', '#ff7700');
- this.element.x = 0;
- this.element.y = 20;
- this.element.textBaseline = 'alphabetic';
- p.addChild(this.element);
- p.getStage().update();
+ this.element = new createjs.Text('default text', '20px Arial', '#ff7700');
+ this.element.x = 0;
+ this.element.y = 20;
+ this.element.textBaseline = 'alphabetic';
+ p.addChild(this.element);
+ p.getStage().update();
- this.positioner = this.element;
+ this.positioner = this.element;
};
+
/**
* @expose
* @this {org.apache.flex.createjs.staticControls.Label}
* @return {string} The text getter.
*/
org.apache.flex.createjs.staticControls.Label.prototype.get_text = function() {
- return this.element.text;
+ return this.element.text;
};
+
/**
* @expose
* @this {org.apache.flex.createjs.staticControls.Label}
* @param {string} value The text setter.
*/
org.apache.flex.createjs.staticControls.Label.prototype.set_text =
- function(value) {
- this.element.text = value;
- this.element.getStage().update();
+ function(value) {
+ this.element.text = value;
+ this.element.getStage().update();
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/TextButton.js
index da2d7f5..6960957 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/TextButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/TextButton.js
@@ -16,15 +16,18 @@ goog.provide('org.apache.flex.createjs.staticControls.TextButton');
goog.require('org.apache.flex.createjs.core.UIBase');
+
+
/**
* @constructor
* @extends {org.apache.flex.createjs.core.UIBase}
*/
org.apache.flex.createjs.staticControls.TextButton = function() {
- org.apache.flex.createjs.core.UIBase.call(this);
+ org.apache.flex.createjs.core.UIBase.call(this);
};
goog.inherits(org.apache.flex.createjs.staticControls.TextButton,
- org.apache.flex.createjs.core.UIBase);
+ org.apache.flex.createjs.core.UIBase);
+
/**
* @expose
@@ -32,12 +35,14 @@ goog.inherits(org.apache.flex.createjs.staticControls.TextButton,
*/
org.apache.flex.createjs.staticControls.TextButton.prototype.buttonLabel = null;
+
/**
* @expose
* @type {Object}
*/
org.apache.flex.createjs.staticControls.TextButton.prototype.buttonBackground =
- null;
+ null;
+
/**
* @override
@@ -46,40 +51,42 @@ org.apache.flex.createjs.staticControls.TextButton.prototype.buttonBackground =
org.apache.flex.createjs.staticControls.TextButton.prototype.createElement =
function(p) {
- this.buttonBackground = new createjs.Shape();
- this.buttonBackground.name = 'background';
- this.buttonBackground.graphics.beginFill('red').
+ this.buttonBackground = new createjs.Shape();
+ this.buttonBackground.name = 'background';
+ this.buttonBackground.graphics.beginFill('red').
drawRoundRect(0, 0, 200, 60, 10);
- this.buttonLabel = new createjs.Text('button', 'bold 24px Arial',
+ this.buttonLabel = new createjs.Text('button', 'bold 24px Arial',
'#FFFFFF');
- this.buttonLabel.name = 'label';
- this.buttonLabel.textAlign = 'center';
- this.buttonLabel.textBaseline = 'middle';
- this.buttonLabel.x = 200 / 2;
- this.buttonLabel.y = 60 / 2;
-
- this.element = new createjs.Container();
- this.element.name = 'button';
- this.element.x = 50;
- this.element.y = 25;
- this.element.addChild(this.buttonBackground, this.buttonLabel);
- p.addChild(this.element);
-
- this.positioner = this.element;
- this.element.flexjs_wrapper = this;
+ this.buttonLabel.name = 'label';
+ this.buttonLabel.textAlign = 'center';
+ this.buttonLabel.textBaseline = 'middle';
+ this.buttonLabel.x = 200 / 2;
+ this.buttonLabel.y = 60 / 2;
+
+ this.element = new createjs.Container();
+ this.element.name = 'button';
+ this.element.x = 50;
+ this.element.y = 25;
+ this.element.addChild(this.buttonBackground, this.buttonLabel);
+ p.addChild(this.element);
+
+ this.positioner = this.element;
+ this.element.flexjs_wrapper = this;
};
+
/**
* @expose
* @this {org.apache.flex.createjs.staticControls.TextButton}
* @return {string} The text getter.
*/
org.apache.flex.createjs.staticControls.TextButton.prototype.get_text =
- function() {
- return this.buttonLabel.text;
+ function() {
+ return this.buttonLabel.text;
};
+
/**
* @expose
* @this {org.apache.flex.createjs.staticControls.TextButton}
@@ -87,5 +94,5 @@ org.apache.flex.createjs.staticControls.TextButton.prototype.get_text =
*/
org.apache.flex.createjs.staticControls.TextButton.prototype.set_text =
function(value) {
- this.buttonLabel.text = value;
+ this.buttonLabel.text = value;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js b/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
index 3ca1904..d5ac5ad 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/Event.js
@@ -41,6 +41,7 @@ org.apache.flex.events.Event.prototype.init = function(type) {
this.type = type;
};
+
/**
* @expose
* @this {org.apache.flex.events.Event}
@@ -50,6 +51,7 @@ org.apache.flex.events.Event.prototype.get_target = function() {
return this.target;
};
+
/**
* @expose
* @type {string} type The event type.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/events/ValueChangeEvent.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/events/ValueChangeEvent.js b/frameworks/js/FlexJS/src/org/apache/flex/events/ValueChangeEvent.js
index 05afaff..9d9695d 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/events/ValueChangeEvent.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/events/ValueChangeEvent.js
@@ -52,30 +52,35 @@ org.apache.flex.events.ValueChangeEvent.prototype.init = function(type) {
*/
org.apache.flex.events.ValueChangeEvent.prototype.type = null;
+
/**
* @expose
* @type {Object} oldValue The old value.
*/
org.apache.flex.events.ValueChangeEvent.prototype.oldValue = null;
+
/**
* @expose
* @type {Object} newValue The new value.
*/
org.apache.flex.events.ValueChangeEvent.prototype.newValue = null;
+
/**
* @expose
* @type {string} propertyName The property that changed.
*/
org.apache.flex.events.ValueChangeEvent.prototype.propertyName = null;
+
/**
* @expose
* @type {Object} source The object that changed.
*/
org.apache.flex.events.ValueChangeEvent.prototype.source = null;
+
/**
* @expose
* @param {Object} source The object that changed.
@@ -85,16 +90,17 @@ org.apache.flex.events.ValueChangeEvent.prototype.source = null;
* @return {Object} An event object.
*/
org.apache.flex.events.ValueChangeEvent.createUpdateEvent =
- function(source, name, oldValue, newValue)
-{
- var event = new org.apache.flex.events.ValueChangeEvent(
- org.apache.flex.events.ValueChangeEvent.VALUE_CHANGE,
- oldValue, newValue);
- event.propertyName = name;
- event.source = source;
- return event;
+ function(source, name, oldValue, newValue)
+ {
+ var event = new org.apache.flex.events.ValueChangeEvent(
+ org.apache.flex.events.ValueChangeEvent.VALUE_CHANGE,
+ oldValue, newValue);
+ event.propertyName = name;
+ event.source = source;
+ return event;
};
+
/**
* @expose
* @type {string} VALUE_CHANGE The type of the event.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Alert.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Alert.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Alert.js
index e078732..b549500 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Alert.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Alert.js
@@ -21,36 +21,42 @@ goog.require('org.apache.flex.html.staticControls.TextButton');
goog.require('org.apache.flex.html.staticControls.TitleBar');
+
/**
* @constructor
* @extends {org.apache.flex.html.staticControls.Container}
*/
org.apache.flex.html.staticControls.Alert = function() {
goog.base(this);
- };
+};
goog.inherits(org.apache.flex.html.staticControls.Alert,
org.apache.flex.html.staticControls.Container);
+
/**
* @type {number} The value for the Yes button option.
*/
org.apache.flex.html.staticControls.Alert.YES = 0x000001;
+
/**
* @type {number} The value for the No button option.
*/
org.apache.flex.html.staticControls.Alert.NO = 0x000002;
+
/**
* @type {number} The value for the OK button option.
*/
org.apache.flex.html.staticControls.Alert.OK = 0x000004;
+
/**
* @type {number} The value for the Cancel button option.
*/
org.apache.flex.html.staticControls.Alert.CANCEL = 0x000008;
+
/**
* @override
* @this {org.apache.flex.html.staticControls.Alert}
@@ -87,73 +93,79 @@ org.apache.flex.html.staticControls.Alert.prototype.createElement =
org.apache.flex.html.staticControls.Alert.show =
function(message, host, title, flags) {
- var a = new org.apache.flex.html.staticControls.Alert();
- host.addElement(a);
- a.set_title(title);
- a.set_text(message);
- a.set_flags(flags);
+ var a = new org.apache.flex.html.staticControls.Alert();
+ host.addElement(a);
+ a.set_title(title);
+ a.set_text(message);
+ a.set_flags(flags);
- a.positioner.style.position = 'relative';
- a.positioner.style.width = '200px';
- a.positioner.style.margin = 'auto';
- a.positioner.style.top = '100px';
+ a.positioner.style.position = 'relative';
+ a.positioner.style.width = '200px';
+ a.positioner.style.margin = 'auto';
+ a.positioner.style.top = '100px';
};
+
/**
* @this {org.apache.flex.html.staticControls.Alert}
* @return {string} The message to be displayed in the title bar.
*/
org.apache.flex.html.staticControls.Alert.prototype.get_title = function()
-{
- return this.titleBar.get_title();
+ {
+ return this.titleBar.get_title();
};
+
/**
* @this {org.apache.flex.html.staticControls.Alert}
* @param {string} value The message to be displayed in the title bar.
*/
org.apache.flex.html.staticControls.Alert.prototype.set_title =
function(value)
-{
- this.titleBar.set_title(value);
+ {
+ this.titleBar.set_title(value);
};
+
/**
* @this {org.apache.flex.html.staticControls.Alert}
* @return {string} The message to be displayed.
*/
org.apache.flex.html.staticControls.Alert.prototype.get_text = function()
-{
- return this.message.get_text();
+ {
+ return this.message.get_text();
};
+
/**
* @this {org.apache.flex.html.staticControls.Alert}
* @param {string} value The message to be displayed.
*/
org.apache.flex.html.staticControls.Alert.prototype.set_text =
function(value)
-{
- this.message.set_text(value);
+ {
+ this.message.set_text(value);
};
+
/**
* @this {org.apache.flex.html.staticControls.Alert}
* @return {number} The button options.
*/
org.apache.flex.html.staticControls.Alert.prototype.get_flags = function()
-{
- return this.flags;
+ {
+ return this.flags;
};
+
/**
* @this {org.apache.flex.html.staticControls.Alert}
* @param {number} value The button options.
*/
org.apache.flex.html.staticControls.Alert.prototype.set_flags =
function(value)
-{
- this.flags = value;
+ {
+ this.flags = value;
// add buttons based on flags
if (this.flags & org.apache.flex.html.staticControls.Alert.OK) {
@@ -161,37 +173,38 @@ org.apache.flex.html.staticControls.Alert.prototype.set_flags =
this.buttonArea.addElement(ok);
ok.set_text('OK');
goog.events.listen(ok.element, 'click',
- goog.bind(this.dismissAlert, this));
+ goog.bind(this.dismissAlert, this));
}
if (this.flags & org.apache.flex.html.staticControls.Alert.CANCEL) {
var cancel = new org.apache.flex.html.staticControls.TextButton();
this.buttonArea.addElement(cancel);
cancel.set_text('Cancel');
goog.events.listen(cancel.element, 'click',
- goog.bind(this.dismissAlert, this));
+ goog.bind(this.dismissAlert, this));
}
if (this.flags & org.apache.flex.html.staticControls.Alert.YES) {
var yes = new org.apache.flex.html.staticControls.TextButton();
this.buttonArea.addElement(yes);
yes.set_text('YES');
goog.events.listen(yes.element, 'click',
- goog.bind(this.dismissAlert, this));
+ goog.bind(this.dismissAlert, this));
}
if (this.flags & org.apache.flex.html.staticControls.Alert.NO) {
var nob = new org.apache.flex.html.staticControls.TextButton();
this.buttonArea.addElement(nob);
nob.set_text('NO');
goog.events.listen(nob.element, 'click',
- goog.bind(this.dismissAlert, this));
+ goog.bind(this.dismissAlert, this));
}
};
+
/**
* @this {org.apache.flex.html.staticControls.Alert}
* @param {Object} event The event object.
*/
org.apache.flex.html.staticControls.Alert.prototype.dismissAlert =
function(event)
-{
- this.element.parentElement.removeChild(this.element);
+ {
+ this.element.parentElement.removeChild(this.element);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Button.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Button.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Button.js
index 61ab5ae..1520fc4 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Button.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Button.js
@@ -42,7 +42,7 @@ org.apache.flex.html.staticControls.Button.prototype.createElement =
this.element.flexjs_wrapper = this;
var impl = org.apache.flex.core.ValuesManager.valuesImpl.
- getValue(this, 'iStatesImpl');
+ getValue(this, 'iStatesImpl');
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/ButtonBar.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/ButtonBar.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/ButtonBar.js
index 929f574..2f3c96f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/ButtonBar.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/ButtonBar.js
@@ -28,28 +28,28 @@ goog.require('org.apache.flex.html.staticControls.supportClasses.ButtonBarButton
*/
org.apache.flex.html.staticControls.ButtonBar = function() {
-// this.model = new
-// org.apache.flex.html.staticControls.beads.models.ArraySelectionModel();
-// this.addBead(this.model);
+ // this.model = new
+ // org.apache.flex.html.staticControls.beads.models.ArraySelectionModel();
+ // this.addBead(this.model);
goog.base(this);
-// this.addBead(new
-// org.apache.flex.html.staticControls.beads.ListView());
+ // this.addBead(new
+ // org.apache.flex.html.staticControls.beads.ListView());
-// this.addBead(new
-//org.apache.flex.html.staticControls.beads.layouts.NonVirtualHorizontalLayout());
+ // this.addBead(new
+ //org.apache.flex.html.staticControls.beads.layouts.NonVirtualHorizontalLayout());
-// this.itemRendererFactory = new
-// org.apache.flex.html.staticControls.beads.
-// DataItemRendererFactoryForArrayData();
-// this.itemRendererFactory.set_itemRendererClass('org.apache.flex.html.' +
-// 'staticControls.supportClasses.ButtonBarButtonItemRenderer');
-// this.addBead(this.itemRendererFactory);
+ // this.itemRendererFactory = new
+ // org.apache.flex.html.staticControls.beads.
+ // DataItemRendererFactoryForArrayData();
+ // this.itemRendererFactory.set_itemRendererClass('org.apache.flex.html.' +
+ // 'staticControls.supportClasses.ButtonBarButtonItemRenderer');
+ // this.addBead(this.itemRendererFactory);
-// this.addBead(new
-// org.apache.flex.html.staticControls.beads.controllers.
-// ListSingleSelectionMouseController());
+ // this.addBead(new
+ // org.apache.flex.html.staticControls.beads.controllers.
+ // ListSingleSelectionMouseController());
};
goog.inherits(org.apache.flex.html.staticControls.ButtonBar,
org.apache.flex.html.staticControls.List);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Container.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Container.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Container.js
index f20f955..a356bf5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Container.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Container.js
@@ -41,7 +41,7 @@ org.apache.flex.html.staticControls.Container.prototype.createElement =
this.positioner = this.element;
this.element.flexjs_wrapper = this;
- };
+};
/**
@@ -49,7 +49,7 @@ org.apache.flex.html.staticControls.Container.prototype.createElement =
* @this {org.apache.flex.html.staticControls.Container}
*/
org.apache.flex.html.staticControls.Container.prototype.addElement =
-function(child) {
+ function(child) {
goog.base(this, 'addElement', child);
this.dispatchEvent('elementAdded');
};
@@ -66,6 +66,7 @@ org.apache.flex.html.staticControls.Container.prototype.childrenAdded =
this.dispatchEvent('childrenAdded');
};
+
/**
* @this {org.apache.flex.html.staticControls.Container}
* @return {Array} the HTML DOM element children.
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DataGrid.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DataGrid.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DataGrid.js
index 2b29775..25645a1 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DataGrid.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DataGrid.js
@@ -25,9 +25,9 @@ goog.require('org.apache.flex.html.staticControls.beads.models.DataGridModel');
*/
org.apache.flex.html.staticControls.DataGrid = function() {
-// this.model = new
-// org.apache.flex.html.staticControls.beads.models.DataGridModel();
-// this.addBead(this.model);
+ // this.model = new
+ // org.apache.flex.html.staticControls.beads.models.DataGridModel();
+ // this.addBead(this.model);
goog.base(this);
};
@@ -46,17 +46,18 @@ org.apache.flex.html.staticControls.DataGrid.prototype.createElement =
this.element.flexjs_wrapper = this;
this.set_className('DataGrid');
- // this.addBead(new
- // org.apache.flex.html.staticControls.beads.DataGridView());
+ // this.addBead(new
+ // org.apache.flex.html.staticControls.beads.DataGridView());
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.DataGrid}
* @return {string} The dataProvider getter.
*/
org.apache.flex.html.staticControls.DataGrid.prototype.get_dataProvider =
-function() {
+ function() {
return this.get_model().get_dataProvider();
};
@@ -67,7 +68,7 @@ function() {
* @param {string} value The dataProvider setter.
*/
org.apache.flex.html.staticControls.DataGrid.prototype.set_dataProvider =
-function(value) {
+ function(value) {
this.get_model().set_dataProvider(value);
};
@@ -78,7 +79,7 @@ function(value) {
* @return {string} The labelFields getter.
*/
org.apache.flex.html.staticControls.DataGrid.prototype.get_labelFields =
-function() {
+ function() {
return this.get_model().get_labelFields();
};
@@ -89,16 +90,17 @@ function() {
* @param {string} value The labelFields setter.
*/
org.apache.flex.html.staticControls.DataGrid.prototype.set_labelFields =
-function(value) {
+ function(value) {
this.get_model().set_labelFields(value);
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.DataGrid}
* @return {string} value The current selectedIndex.
*/
org.apache.flex.html.staticControls.DataGrid.prototype.get_selectedIndex =
-function() {
+ function() {
return this.get_model().get_selectedIndex();
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DropDownList.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DropDownList.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DropDownList.js
index 341b3c2..d4aa5d1 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DropDownList.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/DropDownList.js
@@ -24,33 +24,34 @@ goog.require('org.apache.flex.core.ListBase');
*/
org.apache.flex.html.staticControls.DropDownList = function() {
goog.base(this);
- this.model =
- new org.apache.flex.html.staticControls.beads.models.ArraySelectionModel();
-
+ this.model = new org.apache.flex.html.staticControls.beads.
+ models.ArraySelectionModel();
};
goog.inherits(org.apache.flex.html.staticControls.DropDownList,
org.apache.flex.core.ListBase);
+
/**
* @override
* @this {org.apache.flex.html.staticControls.DropDownList}
*/
org.apache.flex.html.staticControls.DropDownList.prototype.
-createElement = function() {
+ createElement = function() {
this.element = document.createElement('select');
this.element.size = 1;
goog.events.listen(this.element, 'change',
- goog.bind(this.changeHandler, this));
+ goog.bind(this.changeHandler, this));
this.positioner = this.element;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.DropDownList}
* @param {Object} value The new dataProvider.
*/
org.apache.flex.html.staticControls.DropDownList.prototype.
-set_dataProvider = function(value) {
+ set_dataProvider = function(value) {
var dp, i, n, opt;
this.model.set_dataProvider(value);
@@ -70,6 +71,7 @@ set_dataProvider = function(value) {
};
+
/**
* @protected
* @this {org.apache.flex.html.staticControls.DropDownList}
@@ -80,24 +82,26 @@ org.apache.flex.html.staticControls.DropDownList.prototype.changeHandler =
this.dispatchEvent('change');
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.DropDownList}
* @param {Number} value The new selected index.
*/
org.apache.flex.html.staticControls.DropDownList.prototype.
-set_selectedIndex = function(value) {
- this.model.set_selectedIndex(value);
- this.element.selectedIndex = value;
+ set_selectedIndex = function(value) {
+ this.model.set_selectedIndex(value);
+ this.element.selectedIndex = value;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.DropDownList}
* @param {Object} value The new selected item.
*/
org.apache.flex.html.staticControls.DropDownList.prototype.
-set_selectedItem = function(value) {
- this.model.set_selectedItem(value);
- this.element.selectedIndex = this.get_selectedIndex();
+ set_selectedItem = function(value) {
+ this.model.set_selectedItem(value);
+ this.element.selectedIndex = this.get_selectedIndex();
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Image.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Image.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Image.js
index 3b02344..fe72692 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Image.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Image.js
@@ -49,7 +49,7 @@ org.apache.flex.html.staticControls.Image.prototype.createElement =
this.addBead(this.model);
this.addBead(new
- org.apache.flex.html.staticControls.beads.ImageView());
+ org.apache.flex.html.staticControls.beads.ImageView());
};
@@ -59,7 +59,7 @@ org.apache.flex.html.staticControls.Image.prototype.createElement =
* @return {String} The source identifier for the Image.
*/
org.apache.flex.html.staticControls.Image.prototype.
-get_source = function() {
+ get_source = function() {
return this.model.get_source();
};
@@ -70,6 +70,6 @@ get_source = function() {
* @param {String} value The source identifier for the Image.
*/
org.apache.flex.html.staticControls.Image.prototype.
-set_source = function(value) {
- this.model.set_source(value);
+ set_source = function(value) {
+ this.model.set_source(value);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Label.js
index 9814ff7..49ef03a 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Label.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Label.js
@@ -41,6 +41,7 @@ org.apache.flex.html.staticControls.Label.prototype.createElement =
goog.base(this, 'createElement');
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Label}
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js
index d154755..3798c5c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/List.js
@@ -44,12 +44,13 @@ org.apache.flex.html.staticControls.List.prototype.createElement =
this.set_className('List');
};
+
/**
* @override
* @this {org.apache.flex.html.staticControls.List}
*/
org.apache.flex.html.staticControls.List.prototype.addedToParent =
-function() {
+ function() {
goog.base(this, 'addedToParent');
var c = this.getBeadByType(org.apache.flex.core.IItemRenderer);
@@ -60,6 +61,7 @@ function() {
}
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.List}
@@ -67,7 +69,7 @@ function() {
* list (most likely itemRenderers).
*/
org.apache.flex.html.staticControls.List.prototype.internalChildren =
-function() {
+ function() {
var listView =
this.getBeadByType(org.apache.flex.html.staticControls.beads.ListView);
var dg = listView.get_dataGroup();
@@ -75,24 +77,25 @@ function() {
return items;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.List}
* @param {object} event The event that triggered the selection.
*/
org.apache.flex.html.staticControls.List.prototype.selectedHandler =
-function(event) {
- var itemRenderer = event.currentTarget;
- var n = this.renderers.length;
- var i;
- for (i = 0; i < n; i++) {
- var test = this.renderers[i];
- if (test == itemRenderer) {
- this.model.set_selectedIndex(i);
- itemRenderer.set_selected(true);
- }
- else {
- test.set_selected(false);
- }
- }
+ function(event) {
+ var itemRenderer = event.currentTarget;
+ var n = this.renderers.length;
+ var i;
+ for (i = 0; i < n; i++) {
+ var test = this.renderers[i];
+ if (test == itemRenderer) {
+ this.model.set_selectedIndex(i);
+ itemRenderer.set_selected(true);
+ }
+ else {
+ test.set_selected(false);
+ }
+ }
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/NumericStepper.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/NumericStepper.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/NumericStepper.js
index 5cc7012..bddd4f3 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/NumericStepper.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/NumericStepper.js
@@ -51,7 +51,7 @@ org.apache.flex.html.staticControls.NumericStepper.prototype.createElement =
this.addElement(this.spinner);
this.spinner.positioner.style.display = 'inline-block';
goog.events.listen(this.spinner, 'valueChanged',
- goog.bind(this.spinnerChange, this));
+ goog.bind(this.spinnerChange, this));
this.element.flexjs_wrapper = this;
this.set_className('NumericStepper');
@@ -59,17 +59,18 @@ org.apache.flex.html.staticControls.NumericStepper.prototype.createElement =
this.input.set_text(String(this.spinner.get_value()));
};
+
/**
* @this {org.apache.flex.html.staticControls.NumericStepper}
* @param {Object} event The input event.
*/
org.apache.flex.html.staticControls.NumericStepper.prototype.spinnerChange =
function(event)
-{
- var newValue = this.spinner.get_value();
- this.set_value(newValue);
- this.input.set_text(String(this.spinner.get_value()));
- this.dispatchEvent(new org.apache.flex.events.Event('valueChanged'));
+ {
+ var newValue = this.spinner.get_value();
+ this.set_value(newValue);
+ this.input.set_text(String(this.spinner.get_value()));
+ this.dispatchEvent(new org.apache.flex.events.Event('valueChanged'));
};
@@ -79,7 +80,7 @@ org.apache.flex.html.staticControls.NumericStepper.prototype.spinnerChange =
* @return {Number} The current minimum value.
*/
org.apache.flex.html.staticControls.NumericStepper.prototype.get_minimum =
- function() {
+ function() {
return this.model.get_minimum();
};
@@ -90,7 +91,7 @@ org.apache.flex.html.staticControls.NumericStepper.prototype.get_minimum =
* @param {Number} value The new minimum value.
*/
org.apache.flex.html.staticControls.NumericStepper.prototype.set_minimum =
- function(value) {
+ function(value) {
this.model.set_minimum(value);
};
@@ -101,7 +102,7 @@ org.apache.flex.html.staticControls.NumericStepper.prototype.set_minimum =
* @return {Number} The current maximum value.
*/
org.apache.flex.html.staticControls.NumericStepper.prototype.get_maximum =
- function() {
+ function() {
return this.model.get_maximum();
};
@@ -112,7 +113,7 @@ org.apache.flex.html.staticControls.NumericStepper.prototype.get_maximum =
* @param {Number} value The new maximum value.
*/
org.apache.flex.html.staticControls.NumericStepper.prototype.set_maximum =
- function(value) {
+ function(value) {
this.model.set_maximum(value);
};
@@ -123,7 +124,7 @@ org.apache.flex.html.staticControls.NumericStepper.prototype.set_maximum =
* @return {Number} The current value.
*/
org.apache.flex.html.staticControls.NumericStepper.prototype.get_value =
- function() {
+ function() {
return this.model.get_value();
};
@@ -134,7 +135,7 @@ org.apache.flex.html.staticControls.NumericStepper.prototype.get_value =
* @param {Number} newValue The new value.
*/
org.apache.flex.html.staticControls.NumericStepper.prototype.set_value =
- function(newValue) {
+ function(newValue) {
this.model.set_value(newValue);
};
@@ -145,7 +146,7 @@ org.apache.flex.html.staticControls.NumericStepper.prototype.set_value =
* @return {Number} The current snapInterval value.
*/
org.apache.flex.html.staticControls.NumericStepper.prototype.get_snapInterval =
- function() {
+ function() {
return this.model.get_snapInterval();
};
@@ -156,7 +157,7 @@ org.apache.flex.html.staticControls.NumericStepper.prototype.get_snapInterval =
* @param {Number} value The new snapInterval value.
*/
org.apache.flex.html.staticControls.NumericStepper.prototype.set_snapInterval =
- function(value) {
+ function(value) {
this.model.set_snapInterval(value);
};
@@ -167,7 +168,7 @@ org.apache.flex.html.staticControls.NumericStepper.prototype.set_snapInterval =
* @return {Number} The current stepSize value.
*/
org.apache.flex.html.staticControls.NumericStepper.prototype.get_stepSize =
- function() {
+ function() {
return this.model.get_stepSize();
};
@@ -178,7 +179,7 @@ org.apache.flex.html.staticControls.NumericStepper.prototype.get_stepSize =
* @param {Number} value The new stepSize value.
*/
org.apache.flex.html.staticControls.NumericStepper.prototype.set_stepSize =
- function(value) {
+ function(value) {
this.model.set_stepSize(value);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Panel.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Panel.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Panel.js
index ade0f1a..14d9075 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Panel.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Panel.js
@@ -28,12 +28,13 @@ goog.require('org.apache.flex.html.staticControls.beads.models.PanelModel');
*/
org.apache.flex.html.staticControls.Panel = function() {
this.model =
- new org.apache.flex.html.staticControls.beads.models.PanelModel();
+ new org.apache.flex.html.staticControls.beads.models.PanelModel();
goog.base(this);
};
goog.inherits(org.apache.flex.html.staticControls.Panel,
org.apache.flex.html.staticControls.Container);
+
/**
* @override
* @this {org.apache.flex.html.staticControls.Panel}
@@ -44,7 +45,7 @@ org.apache.flex.html.staticControls.Panel.prototype.addElement = function(c) {
this.element.insertBefore(this.titleBar.element, this.contentArea);
}
else if (c == this.controlBar) {
- this.element.appendChild(c.element);
+ this.element.appendChild(c.element);
}
else {
this.contentArea.appendChild(c.element);
@@ -52,6 +53,7 @@ org.apache.flex.html.staticControls.Panel.prototype.addElement = function(c) {
c.addedToParent();
};
+
/**
* @override
* @this {org.apache.flex.html.staticControls.Panel}
@@ -59,18 +61,19 @@ org.apache.flex.html.staticControls.Panel.prototype.addElement = function(c) {
* @param {number} index The index.
*/
org.apache.flex.html.staticControls.Panel.prototype.addElementAt =
- function(c, index) {
+ function(c, index) {
var children = this.internalChildren();
if (index >= children.length)
this.addElement(c);
else
{
this.contentArea.insertBefore(c.element,
- this.getChildAt(index));
+ this.getChildAt(index));
c.addedToParent();
}
};
+
/**
* @override
* @this {org.apache.flex.html.staticControls.Panel}
@@ -78,27 +81,29 @@ org.apache.flex.html.staticControls.Panel.prototype.addElementAt =
* @return {number} The index in parent.
*/
org.apache.flex.html.staticControls.Panel.prototype.getElementIndex =
- function(c) {
+ function(c) {
var children = this.internalChildren();
var n = children.length;
for (i = 0; i < n; i++)
{
- if (children[i] == c.element)
- return i;
+ if (children[i] == c.element)
+ return i;
}
return -1;
};
+
/**
* @override
* @this {org.apache.flex.html.staticControls.Panel}
* @param {Object} c The child element.
*/
org.apache.flex.html.staticControls.Panel.prototype.removeElement =
- function(c) {
+ function(c) {
this.contentArea.removeChild(c.element);
};
+
/**
* @override
* @this {org.apache.flex.html.staticControls.Panel}
@@ -147,7 +152,7 @@ org.apache.flex.html.staticControls.Panel.prototype.get_title = function() {
*/
org.apache.flex.html.staticControls.Panel.prototype.set_title =
function(value) {
- this.model.set_title(value);
+ this.model.set_title(value);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/RadioButton.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/RadioButton.js
index 0ab5dd5..1bb445f 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/RadioButton.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/RadioButton.js
@@ -48,20 +48,22 @@ org.apache.flex.html.staticControls.RadioButton.prototype.createElement =
rb.flexjs_wrapper = this;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.RadioButton}
*/
org.apache.flex.html.staticControls.RadioButton.prototype.initModel =
-function() {
+ function() {
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.RadioButton}
*/
org.apache.flex.html.staticControls.RadioButton.prototype.initSkin =
-function() {
+ function() {
};
@@ -130,63 +132,67 @@ org.apache.flex.html.staticControls.RadioButton.prototype.set_selected =
this.element.childNodes.item(0).checked = value;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.RadioButton}
* @return {Object} The value getter.
*/
org.apache.flex.html.staticControls.RadioButton.prototype.get_value =
- function() {
- return this.element.childNodes.item(0).value;
+ function() {
+ return this.element.childNodes.item(0).value;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.RadioButton}
* @param {Object} value The value setter.
*/
org.apache.flex.html.staticControls.RadioButton.prototype.set_value =
- function(value) {
- this.element.childNodes.item(0).value = value;
+ function(value) {
+ this.element.childNodes.item(0).value = value;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.RadioButton}
* @return {Object} The value of the selected RadioButton.
*/
org.apache.flex.html.staticControls.RadioButton.prototype.get_selectedValue =
- function() {
- var buttons, groupName, i, n;
+ function() {
+ var buttons, groupName, i, n;
- groupName = this.element.childNodes.item(0).name;
- buttons = document.getElementsByName(groupName);
- n = buttons.length;
+ groupName = this.element.childNodes.item(0).name;
+ buttons = document.getElementsByName(groupName);
+ n = buttons.length;
- for (i = 0; i < n; i++) {
- if (buttons[i].checked) {
- return buttons[i].value;
- }
+ for (i = 0; i < n; i++) {
+ if (buttons[i].checked) {
+ return buttons[i].value;
}
- return null;
+ }
+ return null;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.RadioButton}
* @param {Object} value The value of the selected RadioButton.
*/
org.apache.flex.html.staticControls.RadioButton.prototype.set_selectedValue =
- function(value) {
- var buttons, groupName, i, n;
-
- groupName = this.element.childNodes.item(0).name;
- buttons = document.getElementsByName(groupName);
- n = buttons.length;
- for (i = 0; i < n; i++) {
- if (buttons[i].value === value) {
- buttons[i].checked = true;
- break;
- }
+ function(value) {
+ var buttons, groupName, i, n;
+
+ groupName = this.element.childNodes.item(0).name;
+ buttons = document.getElementsByName(groupName);
+ n = buttons.length;
+ for (i = 0; i < n; i++) {
+ if (buttons[i].value === value) {
+ buttons[i].checked = true;
+ break;
}
+ }
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/SimpleAlert.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/SimpleAlert.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/SimpleAlert.js
index 4f1e453..1856a56 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/SimpleAlert.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/SimpleAlert.js
@@ -17,6 +17,7 @@ goog.provide('org.apache.flex.html.staticControls.SimpleAlert');
goog.require('org.apache.flex.core.UIBase');
+
/**
* @constructor
* @extends {org.apache.flex.core.UIBase}
@@ -36,5 +37,5 @@ goog.inherits(org.apache.flex.html.staticControls.SimpleAlert,
org.apache.flex.html.staticControls.SimpleAlert.show =
function(message, host) {
- alert(message);
+ alert(message);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/SimpleList.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/SimpleList.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/SimpleList.js
index 4e15461..b9fd4e8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/SimpleList.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/SimpleList.js
@@ -18,14 +18,15 @@ goog.require('org.apache.flex.core.ListBase');
goog.require('org.apache.flex.html.staticControls.beads.models.ArraySelectionModel');
+
/**
* @constructor
* @extends {org.apache.flex.core.ListBase}
*/
org.apache.flex.html.staticControls.SimpleList = function() {
- this.model =
- new org.apache.flex.html.staticControls.beads.models.ArraySelectionModel();
goog.base(this);
+ this.model = new org.apache.flex.html.staticControls.
+ beads.models.ArraySelectionModel();
};
goog.inherits(org.apache.flex.html.staticControls.SimpleList,
org.apache.flex.core.ListBase);
@@ -36,11 +37,11 @@ goog.inherits(org.apache.flex.html.staticControls.SimpleList,
* @this {org.apache.flex.html.staticControls.SimpleList}
*/
org.apache.flex.html.staticControls.SimpleList.prototype.
-createElement = function() {
+ createElement = function() {
this.element = document.createElement('select');
this.element.size = 5;
goog.events.listen(this.element, 'change',
- goog.bind(this.changeHandler, this));
+ goog.bind(this.changeHandler, this));
this.positioner = this.element;
this.set_className('SimpleList');
};
@@ -52,7 +53,7 @@ createElement = function() {
* @return {Object} Returns the dataProvider.
*/
org.apache.flex.html.staticControls.SimpleList.prototype.
-get_dataProvider = function() {
+ get_dataProvider = function() {
return this.model.get_dataProvider();
};
@@ -63,7 +64,7 @@ get_dataProvider = function() {
* @param {Object} value The new dataProvider.
*/
org.apache.flex.html.staticControls.SimpleList.prototype.
-set_dataProvider = function(value) {
+ set_dataProvider = function(value) {
var dp, i, n, opt;
this.model.set_dataProvider(value);
@@ -90,7 +91,7 @@ set_dataProvider = function(value) {
* @return {Object} Returns the selected index.
*/
org.apache.flex.html.staticControls.SimpleList.prototype.
-get_selectedIndex = function() {
+ get_selectedIndex = function() {
return this.model.get_selectedIndex();
};
@@ -101,8 +102,8 @@ get_selectedIndex = function() {
* @param {Number} value The new selected index.
*/
org.apache.flex.html.staticControls.SimpleList.prototype.
-set_selectedIndex = function(value) {
- this.model.set_selectedIndex(value);
+ set_selectedIndex = function(value) {
+ this.model.set_selectedIndex(value);
};
@@ -112,8 +113,8 @@ set_selectedIndex = function(value) {
* @return {Object} Returns the selectedItem.
*/
org.apache.flex.html.staticControls.SimpleList.prototype.
-get_selectedItem = function() {
- return this.model.get_selectedItem();
+ get_selectedItem = function() {
+ return this.model.get_selectedItem();
};
@@ -123,7 +124,7 @@ get_selectedItem = function() {
* @param {Object} value The new selected item.
*/
org.apache.flex.html.staticControls.SimpleList.prototype.
-set_selectedItem = function(value) {
- this.model.set_selectedItem(value);
+ set_selectedItem = function(value) {
+ this.model.set_selectedItem(value);
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Slider.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Slider.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Slider.js
index 6fa8237..9cce4ad 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Slider.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Slider.js
@@ -34,12 +34,13 @@ org.apache.flex.html.staticControls.Slider = function() {
goog.inherits(org.apache.flex.html.staticControls.Slider,
org.apache.flex.core.UIBase);
+
/**
* @override
* @this {org.apache.flex.html.staticControls.Slider}
*/
org.apache.flex.html.staticControls.Slider.prototype.createElement =
-function() {
+ function() {
this.element = document.createElement('div');
this.element.style.width = '200px';
@@ -62,17 +63,17 @@ function() {
};
-
/**
* @expose
* @this {org.apache.flex.html.staticControls.Slider}
* @return {Number} The value getter.
*/
org.apache.flex.html.staticControls.Slider.prototype.get_value =
-function() {
- return this.model.get_value();
+ function() {
+ return this.model.get_value();
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Slider}
@@ -80,21 +81,23 @@ function() {
* @return {void} The value setter.
*/
org.apache.flex.html.staticControls.Slider.prototype.set_value =
-function(newValue) {
+ function(newValue) {
this.model.set_value(newValue);
this.setThumbFromValue(this.model.get_value());
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Slider}
* @return {Number} The minimum getter.
*/
org.apache.flex.html.staticControls.Slider.prototype.get_minimum =
-function() {
+ function() {
return this.model.get_minimum();
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Slider}
@@ -102,20 +105,22 @@ function() {
* @return {void} The minimum setter.
*/
org.apache.flex.html.staticControls.Slider.prototype.set_minimum =
-function(value) {
+ function(value) {
this.model.set_minimum(value);
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Slider}
* @return {Number} The maximum getter.
*/
org.apache.flex.html.staticControls.Slider.prototype.get_maximum =
-function() {
+ function() {
return this.model.get_maximum();
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Slider}
@@ -123,20 +128,22 @@ function() {
* @return {void} The maximum setter.
*/
org.apache.flex.html.staticControls.Slider.prototype.set_maximum =
-function(value) {
+ function(value) {
this.model.set_maximum(value);
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Slider}
* @return {Number} The snapInterval getter.
*/
org.apache.flex.html.staticControls.Slider.prototype.get_snapInterval =
-function() {
+ function() {
return this.model.get_snapInterval();
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Slider}
@@ -144,20 +151,22 @@ function() {
* @return {void} The snapInterval setter.
*/
org.apache.flex.html.staticControls.Slider.prototype.set_snapInterval =
-function(value) {
+ function(value) {
this.model.set_snapInterval(value);
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Slider}
* @return {Number} The stepSize getter.
*/
org.apache.flex.html.staticControls.Slider.prototype.get_stepSize =
-function() {
+ function() {
return this.model.get_stepSize();
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Slider}
@@ -165,20 +174,21 @@ function() {
* @return {void} The stepSize setter.
*/
org.apache.flex.html.staticControls.Slider.prototype.set_stepSize =
-function(value) {
+ function(value) {
this.model.set_stepSize(value);
};
+
/**
* @this {org.apache.flex.html.staticControls.Slider}
* @param {Object} value The current value.
* @return {Number} Calculates the new value based snapInterval and stepSize.
*/
org.apache.flex.html.staticControls.Slider.prototype.snap = function(value)
-{
+ {
var si = this.get_snapInterval();
var n = Math.round((value - this.get_minimum()) / si) *
- si + this.get_minimum();
+ si + this.get_minimum();
if (value > 0)
{
if (value - n < n + si - value)
@@ -197,8 +207,8 @@ org.apache.flex.html.staticControls.Slider.prototype.snap = function(value)
* @return {void} Moves the thumb to the corresponding position.
*/
org.apache.flex.html.staticControls.Slider.prototype.setThumbFromValue =
-function(value)
-{
+ function(value)
+ {
var min = this.model.get_minimum();
var max = this.model.get_maximum();
var p = (value - min) / (max - min);
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Spinner.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Spinner.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Spinner.js
index b272f22..c9840ce 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Spinner.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/Spinner.js
@@ -56,13 +56,14 @@ org.apache.flex.html.staticControls.Spinner.prototype.createElement =
this.decrementButton.set_text('\u2193');
this.addElement(this.decrementButton);
- this.controller = new
-org.apache.flex.html.staticControls.beads.controllers.SpinnerMouseController();
+ this.controller = new org.apache.flex.html.staticControls.
+ beads.controllers.SpinnerMouseController();
this.addBead(this.controller);
this.element.flexjs_wrapper = this;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Spinner}
@@ -70,9 +71,10 @@ org.apache.flex.html.staticControls.beads.controllers.SpinnerMouseController();
*/
org.apache.flex.html.staticControls.Spinner.prototype.get_value =
function() {
- return this.value_;
+ return this.value_;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Spinner}
@@ -80,21 +82,23 @@ org.apache.flex.html.staticControls.Spinner.prototype.get_value =
*/
org.apache.flex.html.staticControls.Spinner.prototype.set_value =
function(value) {
- if (value != this.value_) {
- this.value_ = value;
- this.dispatchEvent('valueChanged');
- }
+ if (value != this.value_) {
+ this.value_ = value;
+ this.dispatchEvent('valueChanged');
+ }
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Spinner}
* @return {number} The minimum value.
*/
org.apache.flex.html.staticControls.Spinner.prototype.get_minimum = function() {
- return this.minimum_;
+ return this.minimum_;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Spinner}
@@ -102,12 +106,13 @@ org.apache.flex.html.staticControls.Spinner.prototype.get_minimum = function() {
*/
org.apache.flex.html.staticControls.Spinner.prototype.set_minimum =
function(value) {
- if (value != this.minimum_) {
- this.minimum_ = value;
- this.dispatchEvent('minimumChanged');
- }
+ if (value != this.minimum_) {
+ this.minimum_ = value;
+ this.dispatchEvent('minimumChanged');
+ }
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Spinner}
@@ -115,9 +120,10 @@ org.apache.flex.html.staticControls.Spinner.prototype.set_minimum =
*/
org.apache.flex.html.staticControls.Spinner.prototype.get_maximum =
function() {
- return this.maximum_;
+ return this.maximum_;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Spinner}
@@ -125,12 +131,13 @@ org.apache.flex.html.staticControls.Spinner.prototype.get_maximum =
*/
org.apache.flex.html.staticControls.Spinner.prototype.set_maximum =
function(value) {
- if (value != maximum_) {
- this.maximum_ = value;
- this.dispatchEvent('maximumChanged');
- }
+ if (value != maximum_) {
+ this.maximum_ = value;
+ this.dispatchEvent('maximumChanged');
+ }
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Spinner}
@@ -138,9 +145,10 @@ org.apache.flex.html.staticControls.Spinner.prototype.set_maximum =
*/
org.apache.flex.html.staticControls.Spinner.prototype.get_snapInterval =
function() {
- return this.snapInterval_;
+ return this.snapInterval_;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Spinner}
@@ -148,12 +156,13 @@ org.apache.flex.html.staticControls.Spinner.prototype.get_snapInterval =
*/
org.apache.flex.html.staticControls.Spinner.prototype.set_snapInterval =
function(value) {
- if (value != snapInterval) {
- this.snapInterval_ = value;
- this.dispatchEvent('snapIntervalChanged');
- }
+ if (value != snapInterval) {
+ this.snapInterval_ = value;
+ this.dispatchEvent('snapIntervalChanged');
+ }
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Spinner}
@@ -161,9 +170,10 @@ org.apache.flex.html.staticControls.Spinner.prototype.set_snapInterval =
*/
org.apache.flex.html.staticControls.Spinner.prototype.get_stepSize =
function() {
- return this.stepSize_;
+ return this.stepSize_;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.Spinner}
@@ -171,10 +181,10 @@ org.apache.flex.html.staticControls.Spinner.prototype.get_stepSize =
*/
org.apache.flex.html.staticControls.Spinner.prototype.set_stepSize =
function(value) {
- if (value != this.stepSize_) {
- this.stepSize_ = value;
- this.dispatchEvent('stepSizeChanged');
- }
+ if (value != this.stepSize_) {
+ this.stepSize_ = value;
+ this.dispatchEvent('stepSizeChanged');
+ }
};
@@ -185,13 +195,13 @@ org.apache.flex.html.staticControls.Spinner.prototype.set_stepSize =
* and stepSize.
*/
org.apache.flex.html.staticControls.Spinner.prototype.snap = function(value)
-{
+ {
var si = this.snapInterval_;
var n = Math.round((value - this.minimum_) / si) * si + this.minimum_;
if (value > 0)
{
if (value - n < n + si - value)
- return n;
+ return n;
return n + si;
}
if (value - n > n + si - value)
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/TitleBar.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/TitleBar.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/TitleBar.js
index 26608ce..7de35d3 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/TitleBar.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/TitleBar.js
@@ -65,7 +65,7 @@ org.apache.flex.html.staticControls.TitleBar.prototype.createElement =
// listen for changes to the model so items can be changed in the view
this.model.addEventListener('titleChange',
- goog.bind(this.changeHandler, this));
+ goog.bind(this.changeHandler, this));
};
@@ -74,7 +74,7 @@ org.apache.flex.html.staticControls.TitleBar.prototype.createElement =
* @this {org.apache.flex.html.staticControls.TitleBar}
*/
org.apache.flex.html.staticControls.TitleBar.prototype.addedToParent =
- function() {
+ function() {
this.titleLabel.set_text(this.model.get_title());
@@ -85,18 +85,19 @@ org.apache.flex.html.staticControls.TitleBar.prototype.addedToParent =
}
};
+
/**
* @this {org.apache.flex.html.staticControls.TitleBar}
* @param {Object} event The event that triggered this handler.
*/
org.apache.flex.html.staticControls.TitleBar.prototype.changeHandler =
- function(event) {
- if (event.type == 'titleChange') {
- this.titleLabel.set_text(this.model.get_title());
- }
- else if (event.type == 'htmlTitleChange') {
- this.titleLabel.set_text(this.model.get_htmlTitle());
- }
+ function(event) {
+ if (event.type == 'titleChange') {
+ this.titleLabel.set_text(this.model.get_title());
+ }
+ else if (event.type == 'htmlTitleChange') {
+ this.titleLabel.set_text(this.model.get_htmlTitle());
+ }
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/accessories/NumericOnlyTextInputBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/accessories/NumericOnlyTextInputBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/accessories/NumericOnlyTextInputBead.js
index a1a1e66..8479c62 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/accessories/NumericOnlyTextInputBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/accessories/NumericOnlyTextInputBead.js
@@ -20,7 +20,7 @@ goog.provide('org.apache.flex.html.staticControls.accessories.NumericOnlyTextInp
* @constructor
*/
org.apache.flex.html.staticControls.accessories.NumericOnlyTextInputBead =
-function() {
+ function() {
/**
* @private
@@ -29,24 +29,26 @@ function() {
this.promptElement;
};
+
/**
* @expose
* @param {Object} value The new host.
*/
org.apache.flex.html.staticControls.accessories.NumericOnlyTextInputBead.
-prototype.set_strand = function(value) {
+ prototype.set_strand = function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
value.addEventListener('keypress', goog.bind(this.validateInput, this));
}
};
+
/**
* @expose
* @param {Object} event The input to validate?
*/
org.apache.flex.html.staticControls.accessories.NumericOnlyTextInputBead.
-prototype.validateInput = function(event) {
+ prototype.validateInput = function(event) {
var code = event.charCode;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/accessories/PasswordInputBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/accessories/PasswordInputBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/accessories/PasswordInputBead.js
index 85779d2..9d4f172 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/accessories/PasswordInputBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/accessories/PasswordInputBead.js
@@ -20,7 +20,7 @@ goog.provide('org.apache.flex.html.staticControls.accessories.PasswordInputBead'
* @constructor
*/
org.apache.flex.html.staticControls.accessories.PasswordInputBead =
-function() {
+ function() {
/**
* @private
@@ -29,13 +29,14 @@ function() {
this.promptElement;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.accessories.PasswordInputBead}
* @param {Object} value The new host.
*/
org.apache.flex.html.staticControls.accessories.PasswordInputBead.
-prototype.set_strand = function(value) {
+ prototype.set_strand = function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
value.element.type = 'password';
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/accessories/TextPromptBead.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/accessories/TextPromptBead.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/accessories/TextPromptBead.js
index b8a554f..0f20dd8 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/accessories/TextPromptBead.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/accessories/TextPromptBead.js
@@ -28,33 +28,36 @@ org.apache.flex.html.staticControls.accessories.TextPromptBead = function() {
this.promptElement;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.accessories.TextPromptBead}
* @return {string} value The new prompt.
*/
org.apache.flex.html.staticControls.accessories.TextPromptBead.prototype.
-get_prompt = function() {
- return this.prompt;
+ get_prompt = function() {
+ return this.prompt;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.accessories.TextPromptBead}
* @param {string} value The new prompt.
*/
org.apache.flex.html.staticControls.accessories.TextPromptBead.prototype.
-set_prompt = function(value) {
- this.prompt = value;
+ set_prompt = function(value) {
+ this.prompt = value;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.accessories.TextPromptBead}
* @param {Object} value The new host.
*/
org.apache.flex.html.staticControls.accessories.TextPromptBead.prototype.
-set_strand = function(value) {
+ set_strand = function(value) {
if (this.strand_ !== value) {
this.strand_ = value;
value.element.placeholder = this.prompt;
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/ButtonBarView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/ButtonBarView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/ButtonBarView.js
index ac5b6b1..c22275c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/ButtonBarView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/ButtonBarView.js
@@ -16,6 +16,8 @@ goog.provide('org.apache.flex.html.staticControls.beads.ButtonBarView');
goog.require('org.apache.flex.html.staticControls.beads.ListView');
+
+
/**
* @constructor
* @extends {org.apache.flex.html.staticControls.beads.ListView}
@@ -27,8 +29,9 @@ org.apache.flex.html.staticControls.beads.ButtonBarView = function() {
this.className = 'ButtonBarView';
};
goog.inherits(
- org.apache.flex.html.staticControls.beads.ButtonBarView,
- org.apache.flex.html.staticControls.beads.ListView);
+ org.apache.flex.html.staticControls.beads.ButtonBarView,
+ org.apache.flex.html.staticControls.beads.ListView);
+
/**
* @expose
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataGridColumnView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataGridColumnView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataGridColumnView.js
index 31ff3a5..d6e8b1c 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataGridColumnView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataGridColumnView.js
@@ -16,6 +16,8 @@ goog.provide('org.apache.flex.html.staticControls.beads.DataGridColumnView');
goog.require('org.apache.flex.html.staticControls.beads.ListView');
+
+
/**
* @constructor
* @extends {org.apache.flex.html.staticControls.beads.ListView}
@@ -25,8 +27,8 @@ org.apache.flex.html.staticControls.beads.DataGridColumnView = function() {
this.className = 'DataGridColumnView';
};
goog.inherits(
- org.apache.flex.html.staticControls.beads.DataGridColumnView,
- org.apache.flex.html.staticControls.beads.ListView);
+ org.apache.flex.html.staticControls.beads.DataGridColumnView,
+ org.apache.flex.html.staticControls.beads.ListView);
/**
@@ -36,9 +38,9 @@ goog.inherits(
*/
org.apache.flex.html.staticControls.beads.DataGridColumnView.prototype.
set_strand = function(value) {
- this.strand_ = value;
+ this.strand_ = value;
- goog.base(this, 'set_strand', value);
+ goog.base(this, 'set_strand', value);
};
@@ -81,6 +83,6 @@ org.apache.flex.html.staticControls.beads.DataGridColumnView.prototype.
* @param {string} value The field in the data to use for the column's label.
*/
org.apache.flex.html.staticControls.beads.DataGridColumnView.prototype.
- set_labelField = function(value) {
+ set_labelField = function(value) {
this.labelField_ = value;
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataGridView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataGridView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataGridView.js
index de0a712..032adbe 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataGridView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataGridView.js
@@ -28,6 +28,8 @@ goog.require('org.apache.flex.html.staticControls.beads.models.ArraySelectionMod
goog.require('org.apache.flex.html.staticControls.beads.models.DataGridModel');
goog.require('org.apache.flex.html.staticControls.beads.models.DataGridPresentationModel');
+
+
/**
* @constructor
* @extends {org.apache.flex.core.IBeadView}
@@ -37,9 +39,10 @@ org.apache.flex.html.staticControls.beads.DataGridView = function() {
goog.base(this);
};
goog.inherits(
- org.apache.flex.html.staticControls.beads.DataGridView,
- org.apache.flex.core.IBeadView,
- org.apache.flex.events.EventDispatcher);
+ org.apache.flex.html.staticControls.beads.DataGridView,
+ org.apache.flex.core.IBeadView,
+ org.apache.flex.events.EventDispatcher);
+
/**
* @expose
@@ -47,16 +50,16 @@ goog.inherits(
* @param {Object} value The new host.
*/
org.apache.flex.html.staticControls.beads.DataGridView.prototype.set_strand =
-function(value) {
+ function(value) {
this.strand_ = value;
// Use the presentation model's columnLabels as the dataProvider for the
// ButtonBar header.
- var pm = value.getBeadByType(
- org.apache.flex.html.staticControls.beads.models.DataGridPresentationModel);
+ var pm = value.getBeadByType(org.apache.flex.html.staticControls.
+ beads.models.DataGridPresentationModel);
this.buttonBarModel = new
- org.apache.flex.html.staticControls.beads.models.ArraySelectionModel();
+ org.apache.flex.html.staticControls.beads.models.ArraySelectionModel();
this.buttonBarModel.set_dataProvider(pm.get_columnLabels());
this.buttonBar = new org.apache.flex.html.staticControls.ButtonBar();
this.buttonBar.addBead(this.buttonBarModel);
@@ -67,14 +70,14 @@ function(value) {
this.columnContainer = new org.apache.flex.html.staticControls.Container();
var layout = new org.apache.flex.html.staticControls.beads.layouts.
- NonVirtualHorizontalLayout();
+ NonVirtualHorizontalLayout();
this.columnContainer.addBead(layout);
this.strand_.addElement(this.columnContainer);
this.columnContainer.positioner.style.width =
this.strand_.positioner.style.width;
var sharedModel = value.getBeadByType(
- org.apache.flex.html.staticControls.beads.models.DataGridModel);
+ org.apache.flex.html.staticControls.beads.models.DataGridModel);
var columnWidth = this.strand_.get_width() / pm.get_columnLabels().length - 2;
var columnHeight = this.strand_.get_height() - this.buttonBar.get_height();
@@ -82,12 +85,12 @@ function(value) {
for (var i = 0; i < pm.get_columnLabels().length; i++) {
var columnView = new
- org.apache.flex.html.staticControls.beads.DataGridColumnView();
+ org.apache.flex.html.staticControls.beads.DataGridColumnView();
columnView.set_columnIndex(i);
columnView.set_labelField(sharedModel.get_labelFields()[i]);
var factory = new org.apache.flex.html.staticControls.beads.
- DataItemRendererFactoryForColumnData();
+ DataItemRendererFactoryForColumnData();
var column = new org.apache.flex.html.staticControls.List();
column.set_dataProvider(this.strand_.get_dataProvider());
@@ -96,20 +99,21 @@ function(value) {
column.addBead(columnView);
column.addBead(factory);
column.addEventListener('change',
- goog.bind(this.columnListChangeHandler, this));
+ goog.bind(this.columnListChangeHandler, this));
this.columnContainer.addElement(column);
this.columns.push(column);
}
};
+
/**
* @this {org.apache.flex.html.staticControls.beads.DataGridView}
* @param {object} event The selection change event from one of the column
* lists.
*/
org.apache.flex.html.staticControls.beads.DataGridView.prototype.
-columnListChangeHandler = function(event) {
+ columnListChangeHandler = function(event) {
var list = event.target;
var index = list.get_selectedIndex();
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataItemRendererFactoryForArrayData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataItemRendererFactoryForArrayData.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataItemRendererFactoryForArrayData.js
index f32cbe1..54c6afb 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataItemRendererFactoryForArrayData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataItemRendererFactoryForArrayData.js
@@ -18,18 +18,20 @@ goog.require('org.apache.flex.events.EventDispatcher');
goog.require('org.apache.flex.html.staticControls.beads.models.ArraySelectionModel');
goog.require('org.apache.flex.html.staticControls.supportClasses.ButtonBarButtonItemRenderer');
+
+
/**
* @constructor
* @extends {org.apache.flex.events.EventDispatcher}
*/
org.apache.flex.html.staticControls.beads.DataItemRendererFactoryForArrayData =
-function() {
+ function() {
goog.base(this);
};
goog.inherits(
- org.apache.flex.html.staticControls.beads.DataItemRendererFactoryForArrayData,
- org.apache.flex.events.EventDispatcher);
-
+ org.apache.flex.html.staticControls.
+ beads.DataItemRendererFactoryForArrayData,
+ org.apache.flex.events.EventDispatcher);
/**
@@ -39,14 +41,14 @@ goog.inherits(
* @param {object} value The component strand.
*/
org.apache.flex.html.staticControls.beads.DataItemRendererFactoryForArrayData.
-prototype.set_strand = function(value) {
+ prototype.set_strand = function(value) {
this.strand_ = value;
this.model = value.getBeadByType(
- org.apache.flex.html.staticControls.beads.models.ArraySelectionModel);
+ org.apache.flex.html.staticControls.beads.models.ArraySelectionModel);
this.listView = value.getBeadByType(
- org.apache.flex.html.staticControls.beads.ListView);
+ org.apache.flex.html.staticControls.beads.ListView);
this.dataGroup = this.listView.get_dataGroup();
this.model.addEventListener('dataProviderChanged',
@@ -61,10 +63,11 @@ prototype.set_strand = function(value) {
* @return {object} Class used for the itemRenderer.
*/
org.apache.flex.html.staticControls.beads.DataItemRendererFactoryForArrayData.
-prototype.get_itemRendererClass = function() {
+ prototype.get_itemRendererClass = function() {
return this.itemRendererClass_;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.beads.
@@ -72,7 +75,7 @@ prototype.get_itemRendererClass = function() {
* @param {object} value class to use for the item renderer.
*/
org.apache.flex.html.staticControls.beads.DataItemRendererFactoryForArrayData.
-prototype.set_itemRendererClass = function(value) {
+ prototype.set_itemRendererClass = function(value) {
this.itemRendererClass_ = value;
};
@@ -84,7 +87,7 @@ prototype.set_itemRendererClass = function(value) {
* @param {object} event The event that triggered the dataProvider change.
*/
org.apache.flex.html.staticControls.beads.DataItemRendererFactoryForArrayData.
-prototype.dataProviderChangedHandler = function(event) {
+ prototype.dataProviderChangedHandler = function(event) {
var dp, i, n, opt;
dp = this.model.get_dataProvider();
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataItemRendererFactoryForColumnData.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataItemRendererFactoryForColumnData.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataItemRendererFactoryForColumnData.js
index 24ec4a3..d788ab5 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataItemRendererFactoryForColumnData.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/DataItemRendererFactoryForColumnData.js
@@ -131,4 +131,4 @@ org.apache.flex.html.staticControls.beads.DataItemRendererFactoryForColumnData.
*/
org.apache.flex.html.staticControls.beads.DataItemRendererFactoryForColumnData
.prototype.FLEXJS_CLASS_INFO =
- { interfaces: [org.apache.flex.core.IItemRenderer] };
+ { interfaces: [org.apache.flex.core.IItemRenderer] };
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/ImageView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/ImageView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/ImageView.js
index 641ccba..d936a23 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/ImageView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/ImageView.js
@@ -18,6 +18,7 @@ goog.provide('org.apache.flex.html.staticControls.beads.ImageView');
goog.require('org.apache.flex.html.staticControls.beads.models.ImageModel');
+
/**
* @constructor
*/
@@ -36,9 +37,9 @@ org.apache.flex.html.staticControls.beads.ImageView.prototype.set_strand =
this.strand_ = value;
this.model = value.getBeadByType(
- org.apache.flex.html.staticControls.beads.models.ImageModel);
+ org.apache.flex.html.staticControls.beads.models.ImageModel);
this.model.addEventListener('sourceChanged',
- goog.bind(this.sourceChangeHandler, this));
+ goog.bind(this.sourceChangeHandler, this));
};
@@ -48,6 +49,6 @@ org.apache.flex.html.staticControls.beads.ImageView.prototype.set_strand =
* @param {Object} event The event triggered by the source change.
*/
org.apache.flex.html.staticControls.beads.ImageView.prototype.
-sourceChangeHandler = function(event) {
+ sourceChangeHandler = function(event) {
this.strand_.element.src = this.model.get_source();
};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3510e0a6/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/ListView.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/ListView.js b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/ListView.js
index 5eebc8d..e95589e 100644
--- a/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/ListView.js
+++ b/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/ListView.js
@@ -22,6 +22,8 @@ goog.require('org.apache.flex.html.staticControls.beads.TextItemRendererFactoryF
goog.require('org.apache.flex.html.staticControls.beads.models.ArraySelectionModel');
goog.require('org.apache.flex.html.staticControls.supportClasses.NonVirtualDataGroup');
+
+
/**
* @constructor
* @extends {org.apache.flex.core.IBeadView}
@@ -33,8 +35,9 @@ org.apache.flex.html.staticControls.beads.ListView = function() {
this.className = 'ListView';
};
goog.inherits(
- org.apache.flex.html.staticControls.beads.ListView,
- org.apache.flex.core.IBeadView);
+ org.apache.flex.html.staticControls.beads.ListView,
+ org.apache.flex.core.IBeadView);
+
/**
* @expose
@@ -55,7 +58,7 @@ org.apache.flex.html.staticControls.beads.ListView.prototype.set_strand =
this.model = this.strand_.get_model();
this.model.addEventListener('selectedIndexChanged',
- goog.bind(this.selectionChangeHandler, this));
+ goog.bind(this.selectionChangeHandler, this));
this.dataGroup_ = new
org.apache.flex.html.staticControls.supportClasses.NonVirtualDataGroup();
@@ -69,24 +72,25 @@ org.apache.flex.html.staticControls.beads.ListView.prototype.set_strand =
* @return {object} The DataGroup instance.
*/
org.apache.flex.html.staticControls.beads.ListView.prototype.get_dataGroup =
-function() {
- return this.dataGroup_;
+ function() {
+ return this.dataGroup_;
};
+
/**
* @expose
* @this {org.apache.flex.html.staticControls.beads.ListView}
* @param {object} value The event that triggered the selection.
*/
org.apache.flex.html.staticControls.beads.ListView.prototype.
-selectionChangeHandler = function(value) {
+ selectionChangeHandler = function(value) {
if (this.lastSelectedIndex != -1) {
var ir = this.dataGroup_.getItemRendererForIndex(this.lastSelectedIndex);
if (ir) ir.set_selected(false);
}
if (this.model.get_selectedIndex() != -1) {
ir = this.dataGroup_.getItemRendererForIndex(
- this.model.get_selectedIndex());
+ this.model.get_selectedIndex());
if (ir) ir.set_selected(true);
}
this.lastSelectedIndex = this.model.get_selectedIndex();