flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1453557 - in /flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls: CheckBox.js beads/CheckBoxBead.js beads/models/ToggleButtonModel.js
Date Wed, 06 Mar 2013 21:03:01 GMT
Author: pent
Date: Wed Mar  6 21:03:01 2013
New Revision: 1453557

URL: http://svn.apache.org/r1453557
Log:
First pass at adding checkbox

Added:
    flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/CheckBox.js
  (with props)
    flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/CheckBoxBead.js
  (with props)
    flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/models/ToggleButtonModel.js
  (with props)

Added: flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/CheckBox.js
URL: http://svn.apache.org/viewvc/flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/CheckBox.js?rev=1453557&view=auto
==============================================================================
--- flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/CheckBox.js
(added)
+++ flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/CheckBox.js
Wed Mar  6 21:03:01 2013
@@ -0,0 +1,79 @@
+/**
+ * Licensed under the Apache License, Version 2.0 (the 'License');
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+goog.provide('org.apache.flex.html.staticControls.CheckBox');
+
+goog.require('org.apache.flex.core.UIBase');
+
+/**
+ * @constructor
+ * @extends {org.apache.flex.core.UIBase}
+ */
+org.apache.flex.html.staticControls.CheckBox = function() {
+    org.apache.flex.core.UIBase.call(this);
+};
+goog.inherits(
+    org.apache.flex.html.staticControls.CheckBox, org.apache.flex.core.UIBase
+);
+
+/**
+ * @override
+ * @this {org.apache.flex.html.staticControls.CheckBox}
+ * @param {Object} p The parent element.
+ */
+org.apache.flex.html.staticControls.CheckBox.prototype.addToParent = 
+    function(p) {
+    this.element = document.createElement('input');
+    this.element.type = "checkbox";
+
+    p.appendChild(this.element);
+
+    this.positioner = this.element;
+};
+
+/**
+ * @expose
+ * @this {org.apache.flex.html.staticControls.CheckBox}
+ * @return {string} The text getter.
+ */
+org.apache.flex.html.staticControls.CheckBox.prototype.get_text = function() {
+    return this.element.value
+};
+
+/**
+ * @expose
+ * @this {org.apache.flex.html.staticControls.CheckBox}
+ * @param {string} value The text setter.
+ */
+org.apache.flex.html.staticControls.CheckBox.prototype.set_text = function(value) {
+    this.element.value = value;
+};
+
+/**
+ * @expose
+ * @this {org.apache.flex.html.staticControls.CheckBox}
+ * @return {bool} The selected getter.
+ */
+org.apache.flex.html.staticControls.CheckBox.prototype.get_selected = function() {
+    return this.element.checked
+};
+
+/**
+ * @expose
+ * @this {org.apache.flex.html.staticControls.CheckBox}
+ * @param {bool} value The selected setter.
+ */
+org.apache.flex.html.staticControls.CheckBox.prototype.set_selected = function(value) {
+    this.element.checked = value;
+};

Propchange: flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/CheckBox.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/CheckBoxBead.js
URL: http://svn.apache.org/viewvc/flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/CheckBoxBead.js?rev=1453557&view=auto
==============================================================================
--- flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/CheckBoxBead.js
(added)
+++ flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/CheckBoxBead.js
Wed Mar  6 21:03:01 2013
@@ -0,0 +1,29 @@
+/**
+ * Licensed under the Apache License, Version 2.0 (the 'License');
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+goog.provide('org.apache.flex.html.staticControls.beads.CheckBoxBead');
+
+goog.require('org.apache.flex.FlexObject');
+
+/**
+ * @constructor
+ * @extends {org.apache.flex.FlexObject}
+ */
+org.apache.flex.html.staticControls.beads.CheckBoxBead = function() {
+    org.apache.flex.FlexObject.call(this);
+};
+goog.inherits(
+    org.apache.flex.html.staticControls.beads.CheckBoxBead,
+    org.apache.flex.FlexObject
+);

Propchange: flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/CheckBoxBead.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/models/ToggleButtonModel.js
URL: http://svn.apache.org/viewvc/flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/models/ToggleButtonModel.js?rev=1453557&view=auto
==============================================================================
--- flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/models/ToggleButtonModel.js
(added)
+++ flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/models/ToggleButtonModel.js
Wed Mar  6 21:03:01 2013
@@ -0,0 +1,29 @@
+/**
+ * Licensed under the Apache License, Version 2.0 (the 'License');
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+goog.provide('org.apache.flex.html.staticControls.beads.models.ToggleButtonModel');
+
+goog.require('org.apache.flex.FlexObject');
+
+/**
+ * @constructor
+ * @extends {org.apache.flex.FlexObject}
+ */
+org.apache.flex.html.staticControls.beads.ToggleButtonModel = function() {
+    org.apache.flex.FlexObject.call(this);
+};
+goog.inherits(
+    org.apache.flex.html.staticControls.beads.ToggleButtonModel,
+    org.apache.flex.FlexObject
+);

Propchange: flex/asjs/branches/develop/frameworks/js/FlexJS/src/org/apache/flex/html/staticControls/beads/models/ToggleButtonModel.js
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message