Return-Path: X-Original-To: apmail-flex-commits-archive@www.apache.org Delivered-To: apmail-flex-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 98E841860D for ; Thu, 17 Dec 2015 07:54:18 +0000 (UTC) Received: (qmail 43425 invoked by uid 500); 17 Dec 2015 07:54:12 -0000 Delivered-To: apmail-flex-commits-archive@flex.apache.org Received: (qmail 43379 invoked by uid 500); 17 Dec 2015 07:54:12 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 42382 invoked by uid 99); 17 Dec 2015 07:54:12 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2015 07:54:12 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1B94CE0F7A; Thu, 17 Dec 2015 07:54:12 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aharui@apache.org To: commits@flex.apache.org Date: Thu, 17 Dec 2015 07:54:42 -0000 Message-Id: <4306c1a9d0744a8cbcc2052630744cba@git.apache.org> In-Reply-To: <345bc4c00762495f9393d89c3d1e7f80@git.apache.org> References: <345bc4c00762495f9393d89c3d1e7f80@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [32/55] [abbrv] git commit: [flex-asjs] [refs/heads/develop] - remove the last of the handwritten js files (except for googlemaps) http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/46e3dc61/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/ToggleTextButton.js ---------------------------------------------------------------------- diff --git a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/ToggleTextButton.js b/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/ToggleTextButton.js deleted file mode 100644 index 09670eb..0000000 --- a/frameworks/projects/JQuery/js/src/org/apache/flex/jquery/ToggleTextButton.js +++ /dev/null @@ -1,149 +0,0 @@ -/** - * 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.jquery.ToggleTextButton'); - -goog.require('org.apache.flex.html.Button'); -goog.require('org.apache.flex.utils.Language'); - - - -/** - * @constructor - * @extends {org.apache.flex.html.Button} - */ -org.apache.flex.jquery.ToggleTextButton = function() { - org.apache.flex.jquery.ToggleTextButton.base(this, 'constructor'); - - - - /** - * @private - * @type {boolean} - */ - this.selected_ = false; -}; -goog.inherits(org.apache.flex.jquery.ToggleTextButton, - org.apache.flex.html.Button); - - -/** - * Metadata - * - * @type {Object.>} - */ -org.apache.flex.jquery.ToggleTextButton.prototype.FLEXJS_CLASS_INFO = - { names: [{ name: 'ToggleTextButton', - qName: 'org.apache.flex.jquery.ToggleTextButton'}] }; - - -/** - * @export - * Used to provide ids to the ToggleTextButton. - */ -org.apache.flex.jquery.ToggleTextButton.toggleCounter = 0; - - -/** - * @override - */ -org.apache.flex.jquery.ToggleTextButton.prototype.createElement = - function() { - - // the radio itself - this.input = document.createElement('input'); - this.input.type = 'checkbox'; - this.input.name = 'checkbox'; - this.input.id = '_toggle_' + org.apache.flex.jquery.ToggleTextButton.toggleCounter++; - - this.labelFor = document.createElement('label'); - this.labelFor.htmlFor = this.input.id; - - this.positioner = document.createElement('div'); - this.positioner.style.position = 'relative'; - this.positioner.appendChild(this.input); - this.positioner.appendChild(this.labelFor); - this.element = this.input; - - this.input.flexjs_wrapper = this; - this.labelFor.flexjs_wrapper = this; - this.positioner.flexjs_wrapper = this; - - return this.element; -}; - - -/** - * @override - */ -org.apache.flex.jquery.ToggleTextButton.prototype.addedToParent = - function() { - org.apache.flex.jquery.ToggleTextButton.base(this, 'addedToParent'); - $(this.element).button(); -}; - - -Object.defineProperties(org.apache.flex.jquery.ToggleTextButton.prototype, { - /** @export */ - id: { - /** @this {org.apache.flex.jquery.ToggleTextButton} */ - set: function(value) { - org.apache.flex.utils.Language.superSetter(org.apache.flex.jquery.ToggleTextButton.base, this, 'id', value); - this.labelFor.id = value; - this.labelFor.htmlFor = value; - } - }, - /** @export */ - text: { - /** @this {org.apache.flex.jquery.ToggleTextButton} */ - get: function() { - return this.labelFor.innerHTML; - }, - /** @this {org.apache.flex.jquery.ToggleTextButton} */ - set: function(value) { - this.labelFor.innerHTML = value; - } - }, - /** @export */ - selected: { - /** @this {org.apache.flex.jquery.ToggleTextButton} */ - get: function() { - return this.input.selected_; - }, - /** @this {org.apache.flex.jquery.ToggleTextButton} */ - set: function(value) { - if (this.input.selected_ != value) { - this.inputselected_ = value; - /* - var className = this.className; - if (value) { - if (className.indexOf(this.SELECTED) == className.length - this.SELECTED.length) - this.className = className.substring(0, className.length - this.SELECTED.length); - } - else { - if (className.indexOf(this.SELECTED) == -1) - this.className = className + this.SELECTED; - } - */ - } - } - } -}); - - -/** - * @type {string} The selected setter. - */ -org.apache.flex.jquery.ToggleTextButton.prototype.SELECTED = '_Selected'; -