[14/40] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL RadioButton

2016-11-06 Thread cdutz
MDL RadioButton


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/bc9afcf1
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/bc9afcf1
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/bc9afcf1

Branch: refs/heads/feature/mdl
Commit: bc9afcf133efc0758bdae98fe4e084675700f15e
Parents: 2c724f7
Author: Carlos Rovira 
Authored: Mon Oct 17 17:58:42 2016 +0200
Committer: Carlos Rovira 
Committed: Sat Nov 5 00:18:33 2016 +0100

--
 .../flex/org/apache/flex/mdl/RadioButton.as | 249 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 2 files changed, 250 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/bc9afcf1/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
new file mode 100644
index 000..d7e9b2f
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -0,0 +1,249 @@
+
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You 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.
+//
+
+package org.apache.flex.mdl
+{
+COMPILE::SWF
+{
+import org.apache.flex.html.RadioButton;
+}
+COMPILE::JS
+{
+import org.apache.flex.core.UIBase;
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+/**
+ *  The RadioButton class provides a MDL UI-like appearance for
+ *  a RadioButton.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::SWF
+   public class RadioButton extends org.apache.flex.html.RadioButton
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function RadioButton()
+   {
+   super();
+   }
+   }
+
+COMPILE::JS
+public class RadioButton extends UIBase
+{
+/**
+ * Provides unique name
+ */
+public static var radioCounter:int = 0;
+
+private var input:HTMLInputElement;
+private var radio:HTMLSpanElement;
+private var label:HTMLLabelElement;
+private var textNode:Text;
+
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+override protected function createElement():WrappedHTMLElement
+{ 
+// hide this eleement
+input = document.createElement('input') as HTMLInputElement;
+input.type = 'radio';
+input.className = 'mdl-radio__button';
+input.id = '_radio_' + radioCounter++;
+input.addEventListener('change', selectionChangeHandler, false);  
+
+radio = document.createElement('span') as HTMLSpanElement;
+radio.className = 'mdl-radio__label';
+radio.addEventListener('mouseover', mouseOverHandler, false);
+radio.addEventListener('mouseout', mouseOutHandler, false);
+
+textNode = document.createTextNode('') as Text;
+
+label = document.createElement('label') as HTMLLabelElement;
+label.className = "mdl-radio mdl-js-radio mdl-js-ripple-effect";
+   

[17/40] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL RadioButton

2016-11-06 Thread carlosrovira
MDL RadioButton


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/97467604
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/97467604
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/97467604

Branch: refs/heads/feature/mdl
Commit: 97467604566d7da6dab3768ddf4ad337d2f0460b
Parents: d242fb0
Author: Carlos Rovira 
Authored: Mon Oct 17 17:58:42 2016 +0200
Committer: Carlos Rovira 
Committed: Sun Nov 6 13:15:38 2016 +0100

--
 .../flex/org/apache/flex/mdl/RadioButton.as | 249 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 2 files changed, 250 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/97467604/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
new file mode 100644
index 000..d7e9b2f
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -0,0 +1,249 @@
+
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You 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.
+//
+
+package org.apache.flex.mdl
+{
+COMPILE::SWF
+{
+import org.apache.flex.html.RadioButton;
+}
+COMPILE::JS
+{
+import org.apache.flex.core.UIBase;
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+/**
+ *  The RadioButton class provides a MDL UI-like appearance for
+ *  a RadioButton.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::SWF
+   public class RadioButton extends org.apache.flex.html.RadioButton
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function RadioButton()
+   {
+   super();
+   }
+   }
+
+COMPILE::JS
+public class RadioButton extends UIBase
+{
+/**
+ * Provides unique name
+ */
+public static var radioCounter:int = 0;
+
+private var input:HTMLInputElement;
+private var radio:HTMLSpanElement;
+private var label:HTMLLabelElement;
+private var textNode:Text;
+
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+override protected function createElement():WrappedHTMLElement
+{ 
+// hide this eleement
+input = document.createElement('input') as HTMLInputElement;
+input.type = 'radio';
+input.className = 'mdl-radio__button';
+input.id = '_radio_' + radioCounter++;
+input.addEventListener('change', selectionChangeHandler, false);  
+
+radio = document.createElement('span') as HTMLSpanElement;
+radio.className = 'mdl-radio__label';
+radio.addEventListener('mouseover', mouseOverHandler, false);
+radio.addEventListener('mouseout', mouseOutHandler, false);
+
+textNode = document.createTextNode('') as Text;
+
+label = document.createElement('label') as HTMLLabelElement;
+label.className = "mdl-radio mdl-js-radio mdl-js-ripple-effect";
+   

[17/36] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL RadioButton

2016-11-04 Thread carlosrovira
MDL RadioButton


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/bc9afcf1
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/bc9afcf1
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/bc9afcf1

Branch: refs/heads/feature/mdl
Commit: bc9afcf133efc0758bdae98fe4e084675700f15e
Parents: 2c724f7
Author: Carlos Rovira 
Authored: Mon Oct 17 17:58:42 2016 +0200
Committer: Carlos Rovira 
Committed: Sat Nov 5 00:18:33 2016 +0100

--
 .../flex/org/apache/flex/mdl/RadioButton.as | 249 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 2 files changed, 250 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/bc9afcf1/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
new file mode 100644
index 000..d7e9b2f
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -0,0 +1,249 @@
+
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You 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.
+//
+
+package org.apache.flex.mdl
+{
+COMPILE::SWF
+{
+import org.apache.flex.html.RadioButton;
+}
+COMPILE::JS
+{
+import org.apache.flex.core.UIBase;
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+/**
+ *  The RadioButton class provides a MDL UI-like appearance for
+ *  a RadioButton.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::SWF
+   public class RadioButton extends org.apache.flex.html.RadioButton
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function RadioButton()
+   {
+   super();
+   }
+   }
+
+COMPILE::JS
+public class RadioButton extends UIBase
+{
+/**
+ * Provides unique name
+ */
+public static var radioCounter:int = 0;
+
+private var input:HTMLInputElement;
+private var radio:HTMLSpanElement;
+private var label:HTMLLabelElement;
+private var textNode:Text;
+
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+override protected function createElement():WrappedHTMLElement
+{ 
+// hide this eleement
+input = document.createElement('input') as HTMLInputElement;
+input.type = 'radio';
+input.className = 'mdl-radio__button';
+input.id = '_radio_' + radioCounter++;
+input.addEventListener('change', selectionChangeHandler, false);  
+
+radio = document.createElement('span') as HTMLSpanElement;
+radio.className = 'mdl-radio__label';
+radio.addEventListener('mouseover', mouseOverHandler, false);
+radio.addEventListener('mouseout', mouseOutHandler, false);
+
+textNode = document.createTextNode('') as Text;
+
+label = document.createElement('label') as HTMLLabelElement;
+label.className = "mdl-radio mdl-js-radio mdl-js-ripple-effect";
+   

[17/36] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL RadioButton

2016-11-04 Thread carlosrovira
MDL RadioButton


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/f126b1c1
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/f126b1c1
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/f126b1c1

Branch: refs/heads/feature/mdl
Commit: f126b1c1fcea581c31169ca73d9655db953f94ec
Parents: f888d40
Author: Carlos Rovira 
Authored: Mon Oct 17 17:58:42 2016 +0200
Committer: Carlos Rovira 
Committed: Fri Nov 4 23:48:31 2016 +0100

--
 .../flex/org/apache/flex/mdl/RadioButton.as | 249 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 2 files changed, 250 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/f126b1c1/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
new file mode 100644
index 000..d7e9b2f
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -0,0 +1,249 @@
+
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You 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.
+//
+
+package org.apache.flex.mdl
+{
+COMPILE::SWF
+{
+import org.apache.flex.html.RadioButton;
+}
+COMPILE::JS
+{
+import org.apache.flex.core.UIBase;
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+/**
+ *  The RadioButton class provides a MDL UI-like appearance for
+ *  a RadioButton.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::SWF
+   public class RadioButton extends org.apache.flex.html.RadioButton
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function RadioButton()
+   {
+   super();
+   }
+   }
+
+COMPILE::JS
+public class RadioButton extends UIBase
+{
+/**
+ * Provides unique name
+ */
+public static var radioCounter:int = 0;
+
+private var input:HTMLInputElement;
+private var radio:HTMLSpanElement;
+private var label:HTMLLabelElement;
+private var textNode:Text;
+
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+override protected function createElement():WrappedHTMLElement
+{ 
+// hide this eleement
+input = document.createElement('input') as HTMLInputElement;
+input.type = 'radio';
+input.className = 'mdl-radio__button';
+input.id = '_radio_' + radioCounter++;
+input.addEventListener('change', selectionChangeHandler, false);  
+
+radio = document.createElement('span') as HTMLSpanElement;
+radio.className = 'mdl-radio__label';
+radio.addEventListener('mouseover', mouseOverHandler, false);
+radio.addEventListener('mouseout', mouseOutHandler, false);
+
+textNode = document.createTextNode('') as Text;
+
+label = document.createElement('label') as HTMLLabelElement;
+label.className = "mdl-radio mdl-js-radio mdl-js-ripple-effect";
+   

[18/37] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL RadioButton

2016-11-04 Thread carlosrovira
MDL RadioButton


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/7b770b2c
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/7b770b2c
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/7b770b2c

Branch: refs/heads/feature/mdl
Commit: 7b770b2cc64e1e321cf2ef7d38c49e8202853b11
Parents: 1db1194
Author: Carlos Rovira 
Authored: Mon Oct 17 17:58:42 2016 +0200
Committer: Carlos Rovira 
Committed: Fri Nov 4 17:43:37 2016 +0100

--
 .../flex/org/apache/flex/mdl/RadioButton.as | 249 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 2 files changed, 250 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7b770b2c/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
new file mode 100644
index 000..d7e9b2f
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -0,0 +1,249 @@
+
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You 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.
+//
+
+package org.apache.flex.mdl
+{
+COMPILE::SWF
+{
+import org.apache.flex.html.RadioButton;
+}
+COMPILE::JS
+{
+import org.apache.flex.core.UIBase;
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+/**
+ *  The RadioButton class provides a MDL UI-like appearance for
+ *  a RadioButton.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::SWF
+   public class RadioButton extends org.apache.flex.html.RadioButton
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function RadioButton()
+   {
+   super();
+   }
+   }
+
+COMPILE::JS
+public class RadioButton extends UIBase
+{
+/**
+ * Provides unique name
+ */
+public static var radioCounter:int = 0;
+
+private var input:HTMLInputElement;
+private var radio:HTMLSpanElement;
+private var label:HTMLLabelElement;
+private var textNode:Text;
+
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+override protected function createElement():WrappedHTMLElement
+{ 
+// hide this eleement
+input = document.createElement('input') as HTMLInputElement;
+input.type = 'radio';
+input.className = 'mdl-radio__button';
+input.id = '_radio_' + radioCounter++;
+input.addEventListener('change', selectionChangeHandler, false);  
+
+radio = document.createElement('span') as HTMLSpanElement;
+radio.className = 'mdl-radio__label';
+radio.addEventListener('mouseover', mouseOverHandler, false);
+radio.addEventListener('mouseout', mouseOutHandler, false);
+
+textNode = document.createTextNode('') as Text;
+
+label = document.createElement('label') as HTMLLabelElement;
+label.className = "mdl-radio mdl-js-radio mdl-js-ripple-effect";
+   

[17/35] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL RadioButton

2016-11-04 Thread carlosrovira
MDL RadioButton


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/2e09f46a
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/2e09f46a
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/2e09f46a

Branch: refs/heads/feature/mdl
Commit: 2e09f46ac123c8c58c045613172db32a7e81c4db
Parents: a7f6e1d
Author: Carlos Rovira 
Authored: Mon Oct 17 17:58:42 2016 +0200
Committer: Carlos Rovira 
Committed: Fri Nov 4 17:10:12 2016 +0100

--
 .../flex/org/apache/flex/mdl/RadioButton.as | 249 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 2 files changed, 250 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2e09f46a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
new file mode 100644
index 000..d7e9b2f
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -0,0 +1,249 @@
+
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You 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.
+//
+
+package org.apache.flex.mdl
+{
+COMPILE::SWF
+{
+import org.apache.flex.html.RadioButton;
+}
+COMPILE::JS
+{
+import org.apache.flex.core.UIBase;
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+/**
+ *  The RadioButton class provides a MDL UI-like appearance for
+ *  a RadioButton.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::SWF
+   public class RadioButton extends org.apache.flex.html.RadioButton
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function RadioButton()
+   {
+   super();
+   }
+   }
+
+COMPILE::JS
+public class RadioButton extends UIBase
+{
+/**
+ * Provides unique name
+ */
+public static var radioCounter:int = 0;
+
+private var input:HTMLInputElement;
+private var radio:HTMLSpanElement;
+private var label:HTMLLabelElement;
+private var textNode:Text;
+
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+override protected function createElement():WrappedHTMLElement
+{ 
+// hide this eleement
+input = document.createElement('input') as HTMLInputElement;
+input.type = 'radio';
+input.className = 'mdl-radio__button';
+input.id = '_radio_' + radioCounter++;
+input.addEventListener('change', selectionChangeHandler, false);  
+
+radio = document.createElement('span') as HTMLSpanElement;
+radio.className = 'mdl-radio__label';
+radio.addEventListener('mouseover', mouseOverHandler, false);
+radio.addEventListener('mouseout', mouseOutHandler, false);
+
+textNode = document.createTextNode('') as Text;
+
+label = document.createElement('label') as HTMLLabelElement;
+label.className = "mdl-radio mdl-js-radio mdl-js-ripple-effect";
+   

[17/34] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL RadioButton

2016-11-04 Thread carlosrovira
MDL RadioButton


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/bbd865a3
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/bbd865a3
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/bbd865a3

Branch: refs/heads/feature/mdl
Commit: bbd865a392de80efce9e461671c7f1647ab28aaa
Parents: 2e9b199
Author: Carlos Rovira 
Authored: Mon Oct 17 17:58:42 2016 +0200
Committer: Carlos Rovira 
Committed: Fri Nov 4 15:41:34 2016 +0100

--
 .../flex/org/apache/flex/mdl/RadioButton.as | 249 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 2 files changed, 250 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/bbd865a3/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
new file mode 100644
index 000..d7e9b2f
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -0,0 +1,249 @@
+
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You 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.
+//
+
+package org.apache.flex.mdl
+{
+COMPILE::SWF
+{
+import org.apache.flex.html.RadioButton;
+}
+COMPILE::JS
+{
+import org.apache.flex.core.UIBase;
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+/**
+ *  The RadioButton class provides a MDL UI-like appearance for
+ *  a RadioButton.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::SWF
+   public class RadioButton extends org.apache.flex.html.RadioButton
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function RadioButton()
+   {
+   super();
+   }
+   }
+
+COMPILE::JS
+public class RadioButton extends UIBase
+{
+/**
+ * Provides unique name
+ */
+public static var radioCounter:int = 0;
+
+private var input:HTMLInputElement;
+private var radio:HTMLSpanElement;
+private var label:HTMLLabelElement;
+private var textNode:Text;
+
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+override protected function createElement():WrappedHTMLElement
+{ 
+// hide this eleement
+input = document.createElement('input') as HTMLInputElement;
+input.type = 'radio';
+input.className = 'mdl-radio__button';
+input.id = '_radio_' + radioCounter++;
+input.addEventListener('change', selectionChangeHandler, false);  
+
+radio = document.createElement('span') as HTMLSpanElement;
+radio.className = 'mdl-radio__label';
+radio.addEventListener('mouseover', mouseOverHandler, false);
+radio.addEventListener('mouseout', mouseOutHandler, false);
+
+textNode = document.createTextNode('') as Text;
+
+label = document.createElement('label') as HTMLLabelElement;
+label.className = "mdl-radio mdl-js-radio mdl-js-ripple-effect";
+   

[17/29] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL RadioButton

2016-11-03 Thread carlosrovira
MDL RadioButton


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/32945319
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/32945319
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/32945319

Branch: refs/heads/feature/mdl
Commit: 32945319baa6f1fc7a1178bddfc0143d6d650561
Parents: d91459b
Author: Carlos Rovira 
Authored: Mon Oct 17 17:58:42 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Nov 3 20:15:48 2016 +0100

--
 .../flex/org/apache/flex/mdl/RadioButton.as | 249 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 2 files changed, 250 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/32945319/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
new file mode 100644
index 000..d7e9b2f
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -0,0 +1,249 @@
+
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You 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.
+//
+
+package org.apache.flex.mdl
+{
+COMPILE::SWF
+{
+import org.apache.flex.html.RadioButton;
+}
+COMPILE::JS
+{
+import org.apache.flex.core.UIBase;
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+/**
+ *  The RadioButton class provides a MDL UI-like appearance for
+ *  a RadioButton.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::SWF
+   public class RadioButton extends org.apache.flex.html.RadioButton
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function RadioButton()
+   {
+   super();
+   }
+   }
+
+COMPILE::JS
+public class RadioButton extends UIBase
+{
+/**
+ * Provides unique name
+ */
+public static var radioCounter:int = 0;
+
+private var input:HTMLInputElement;
+private var radio:HTMLSpanElement;
+private var label:HTMLLabelElement;
+private var textNode:Text;
+
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+override protected function createElement():WrappedHTMLElement
+{ 
+// hide this eleement
+input = document.createElement('input') as HTMLInputElement;
+input.type = 'radio';
+input.className = 'mdl-radio__button';
+input.id = '_radio_' + radioCounter++;
+input.addEventListener('change', selectionChangeHandler, false);  
+
+radio = document.createElement('span') as HTMLSpanElement;
+radio.className = 'mdl-radio__label';
+radio.addEventListener('mouseover', mouseOverHandler, false);
+radio.addEventListener('mouseout', mouseOutHandler, false);
+
+textNode = document.createTextNode('') as Text;
+
+label = document.createElement('label') as HTMLLabelElement;
+label.className = "mdl-radio mdl-js-radio mdl-js-ripple-effect";
+   

[32/50] [abbrv] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL RadioButton

2016-11-02 Thread carlosrovira
MDL RadioButton


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/3987e4a3
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/3987e4a3
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/3987e4a3

Branch: refs/heads/feature/mdl
Commit: 3987e4a3305491e1b68ea7369228dcff11664001
Parents: 00e74e5
Author: Carlos Rovira 
Authored: Mon Oct 17 17:58:42 2016 +0200
Committer: Carlos Rovira 
Committed: Wed Nov 2 19:22:52 2016 +0100

--
 .../flex/org/apache/flex/mdl/RadioButton.as | 249 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 2 files changed, 250 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/3987e4a3/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
new file mode 100644
index 000..d7e9b2f
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -0,0 +1,249 @@
+
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You 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.
+//
+
+package org.apache.flex.mdl
+{
+COMPILE::SWF
+{
+import org.apache.flex.html.RadioButton;
+}
+COMPILE::JS
+{
+import org.apache.flex.core.UIBase;
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+/**
+ *  The RadioButton class provides a MDL UI-like appearance for
+ *  a RadioButton.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::SWF
+   public class RadioButton extends org.apache.flex.html.RadioButton
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function RadioButton()
+   {
+   super();
+   }
+   }
+
+COMPILE::JS
+public class RadioButton extends UIBase
+{
+/**
+ * Provides unique name
+ */
+public static var radioCounter:int = 0;
+
+private var input:HTMLInputElement;
+private var radio:HTMLSpanElement;
+private var label:HTMLLabelElement;
+private var textNode:Text;
+
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+override protected function createElement():WrappedHTMLElement
+{ 
+// hide this eleement
+input = document.createElement('input') as HTMLInputElement;
+input.type = 'radio';
+input.className = 'mdl-radio__button';
+input.id = '_radio_' + radioCounter++;
+input.addEventListener('change', selectionChangeHandler, false);  
+
+radio = document.createElement('span') as HTMLSpanElement;
+radio.className = 'mdl-radio__label';
+radio.addEventListener('mouseover', mouseOverHandler, false);
+radio.addEventListener('mouseout', mouseOutHandler, false);
+
+textNode = document.createTextNode('') as Text;
+
+label = document.createElement('label') as HTMLLabelElement;
+label.className = "mdl-radio mdl-js-radio mdl-js-ripple-effect";
+   

[06/24] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL RadioButton

2016-10-26 Thread carlosrovira
MDL RadioButton


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/6f90b153
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/6f90b153
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/6f90b153

Branch: refs/heads/feature/mdl
Commit: 6f90b15308eb8520c1022c8aa356238450f0ab60
Parents: 4437b93
Author: Carlos Rovira 
Authored: Mon Oct 17 17:58:42 2016 +0200
Committer: Carlos Rovira 
Committed: Wed Oct 26 22:48:24 2016 +0200

--
 .../flex/org/apache/flex/mdl/RadioButton.as | 249 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 2 files changed, 250 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/6f90b153/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
new file mode 100644
index 000..d7e9b2f
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -0,0 +1,249 @@
+
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You 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.
+//
+
+package org.apache.flex.mdl
+{
+COMPILE::SWF
+{
+import org.apache.flex.html.RadioButton;
+}
+COMPILE::JS
+{
+import org.apache.flex.core.UIBase;
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+/**
+ *  The RadioButton class provides a MDL UI-like appearance for
+ *  a RadioButton.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::SWF
+   public class RadioButton extends org.apache.flex.html.RadioButton
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function RadioButton()
+   {
+   super();
+   }
+   }
+
+COMPILE::JS
+public class RadioButton extends UIBase
+{
+/**
+ * Provides unique name
+ */
+public static var radioCounter:int = 0;
+
+private var input:HTMLInputElement;
+private var radio:HTMLSpanElement;
+private var label:HTMLLabelElement;
+private var textNode:Text;
+
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+override protected function createElement():WrappedHTMLElement
+{ 
+// hide this eleement
+input = document.createElement('input') as HTMLInputElement;
+input.type = 'radio';
+input.className = 'mdl-radio__button';
+input.id = '_radio_' + radioCounter++;
+input.addEventListener('change', selectionChangeHandler, false);  
+
+radio = document.createElement('span') as HTMLSpanElement;
+radio.className = 'mdl-radio__label';
+radio.addEventListener('mouseover', mouseOverHandler, false);
+radio.addEventListener('mouseout', mouseOutHandler, false);
+
+textNode = document.createTextNode('') as Text;
+
+label = document.createElement('label') as HTMLLabelElement;
+label.className = "mdl-radio mdl-js-radio mdl-js-ripple-effect";
+  

[04/20] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL RadioButton

2016-10-26 Thread carlosrovira
MDL RadioButton


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/7916ad27
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/7916ad27
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/7916ad27

Branch: refs/heads/feature/mdl
Commit: 7916ad27661c71eebc1f6d275c85e3990d9f2797
Parents: 1621a53
Author: Carlos Rovira 
Authored: Mon Oct 17 17:58:42 2016 +0200
Committer: Carlos Rovira 
Committed: Wed Oct 26 10:59:07 2016 +0200

--
 .../flex/org/apache/flex/mdl/RadioButton.as | 249 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 2 files changed, 250 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/7916ad27/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
new file mode 100644
index 000..d7e9b2f
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -0,0 +1,249 @@
+
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You 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.
+//
+
+package org.apache.flex.mdl
+{
+COMPILE::SWF
+{
+import org.apache.flex.html.RadioButton;
+}
+COMPILE::JS
+{
+import org.apache.flex.core.UIBase;
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+/**
+ *  The RadioButton class provides a MDL UI-like appearance for
+ *  a RadioButton.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::SWF
+   public class RadioButton extends org.apache.flex.html.RadioButton
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function RadioButton()
+   {
+   super();
+   }
+   }
+
+COMPILE::JS
+public class RadioButton extends UIBase
+{
+/**
+ * Provides unique name
+ */
+public static var radioCounter:int = 0;
+
+private var input:HTMLInputElement;
+private var radio:HTMLSpanElement;
+private var label:HTMLLabelElement;
+private var textNode:Text;
+
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+override protected function createElement():WrappedHTMLElement
+{ 
+// hide this eleement
+input = document.createElement('input') as HTMLInputElement;
+input.type = 'radio';
+input.className = 'mdl-radio__button';
+input.id = '_radio_' + radioCounter++;
+input.addEventListener('change', selectionChangeHandler, false);  
+
+radio = document.createElement('span') as HTMLSpanElement;
+radio.className = 'mdl-radio__label';
+radio.addEventListener('mouseover', mouseOverHandler, false);
+radio.addEventListener('mouseout', mouseOutHandler, false);
+
+textNode = document.createTextNode('') as Text;
+
+label = document.createElement('label') as HTMLLabelElement;
+label.className = "mdl-radio mdl-js-radio mdl-js-ripple-effect";
+  

[12/19] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL RadioButton

2016-10-24 Thread carlosrovira
MDL RadioButton


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/061f9d4f
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/061f9d4f
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/061f9d4f

Branch: refs/heads/feature/mdl
Commit: 061f9d4faf72f728ede9110d05bbcf2046418e3a
Parents: 8a760c8
Author: Carlos Rovira 
Authored: Mon Oct 17 17:58:42 2016 +0200
Committer: Carlos Rovira 
Committed: Mon Oct 24 18:00:38 2016 +0200

--
 .../flex/org/apache/flex/mdl/RadioButton.as | 249 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 2 files changed, 250 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/061f9d4f/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
new file mode 100644
index 000..d7e9b2f
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -0,0 +1,249 @@
+
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You 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.
+//
+
+package org.apache.flex.mdl
+{
+COMPILE::SWF
+{
+import org.apache.flex.html.RadioButton;
+}
+COMPILE::JS
+{
+import org.apache.flex.core.UIBase;
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+/**
+ *  The RadioButton class provides a MDL UI-like appearance for
+ *  a RadioButton.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::SWF
+   public class RadioButton extends org.apache.flex.html.RadioButton
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function RadioButton()
+   {
+   super();
+   }
+   }
+
+COMPILE::JS
+public class RadioButton extends UIBase
+{
+/**
+ * Provides unique name
+ */
+public static var radioCounter:int = 0;
+
+private var input:HTMLInputElement;
+private var radio:HTMLSpanElement;
+private var label:HTMLLabelElement;
+private var textNode:Text;
+
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+override protected function createElement():WrappedHTMLElement
+{ 
+// hide this eleement
+input = document.createElement('input') as HTMLInputElement;
+input.type = 'radio';
+input.className = 'mdl-radio__button';
+input.id = '_radio_' + radioCounter++;
+input.addEventListener('change', selectionChangeHandler, false);  
+
+radio = document.createElement('span') as HTMLSpanElement;
+radio.className = 'mdl-radio__label';
+radio.addEventListener('mouseover', mouseOverHandler, false);
+radio.addEventListener('mouseout', mouseOutHandler, false);
+
+textNode = document.createTextNode('') as Text;
+
+label = document.createElement('label') as HTMLLabelElement;
+label.className = "mdl-radio mdl-js-radio mdl-js-ripple-effect";
+  

[12/19] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL RadioButton

2016-10-21 Thread carlosrovira
MDL RadioButton


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/2eb44f25
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/2eb44f25
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/2eb44f25

Branch: refs/heads/feature/mdl
Commit: 2eb44f259938e0e183aa2feccf2e615fd10213b3
Parents: 6af29ee
Author: Carlos Rovira 
Authored: Mon Oct 17 17:58:42 2016 +0200
Committer: Carlos Rovira 
Committed: Fri Oct 21 17:35:17 2016 +0200

--
 .../flex/org/apache/flex/mdl/RadioButton.as | 249 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 2 files changed, 250 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2eb44f25/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
new file mode 100644
index 000..d7e9b2f
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -0,0 +1,249 @@
+
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You 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.
+//
+
+package org.apache.flex.mdl
+{
+COMPILE::SWF
+{
+import org.apache.flex.html.RadioButton;
+}
+COMPILE::JS
+{
+import org.apache.flex.core.UIBase;
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+/**
+ *  The RadioButton class provides a MDL UI-like appearance for
+ *  a RadioButton.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::SWF
+   public class RadioButton extends org.apache.flex.html.RadioButton
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function RadioButton()
+   {
+   super();
+   }
+   }
+
+COMPILE::JS
+public class RadioButton extends UIBase
+{
+/**
+ * Provides unique name
+ */
+public static var radioCounter:int = 0;
+
+private var input:HTMLInputElement;
+private var radio:HTMLSpanElement;
+private var label:HTMLLabelElement;
+private var textNode:Text;
+
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+override protected function createElement():WrappedHTMLElement
+{ 
+// hide this eleement
+input = document.createElement('input') as HTMLInputElement;
+input.type = 'radio';
+input.className = 'mdl-radio__button';
+input.id = '_radio_' + radioCounter++;
+input.addEventListener('change', selectionChangeHandler, false);  
+
+radio = document.createElement('span') as HTMLSpanElement;
+radio.className = 'mdl-radio__label';
+radio.addEventListener('mouseover', mouseOverHandler, false);
+radio.addEventListener('mouseout', mouseOutHandler, false);
+
+textNode = document.createTextNode('') as Text;
+
+label = document.createElement('label') as HTMLLabelElement;
+label.className = "mdl-radio mdl-js-radio mdl-js-ripple-effect";
+  

[13/20] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL RadioButton

2016-10-20 Thread carlosrovira
MDL RadioButton


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/2db25ee5
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/2db25ee5
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/2db25ee5

Branch: refs/heads/feature/mdl
Commit: 2db25ee512249ae95c0adfcdbf22ec9fc6b9645d
Parents: e372a6b
Author: Carlos Rovira 
Authored: Mon Oct 17 17:58:42 2016 +0200
Committer: Carlos Rovira 
Committed: Thu Oct 20 17:46:39 2016 +0200

--
 .../flex/org/apache/flex/mdl/RadioButton.as | 249 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 2 files changed, 250 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2db25ee5/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
new file mode 100644
index 000..d7e9b2f
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -0,0 +1,249 @@
+
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You 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.
+//
+
+package org.apache.flex.mdl
+{
+COMPILE::SWF
+{
+import org.apache.flex.html.RadioButton;
+}
+COMPILE::JS
+{
+import org.apache.flex.core.UIBase;
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+/**
+ *  The RadioButton class provides a MDL UI-like appearance for
+ *  a RadioButton.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::SWF
+   public class RadioButton extends org.apache.flex.html.RadioButton
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function RadioButton()
+   {
+   super();
+   }
+   }
+
+COMPILE::JS
+public class RadioButton extends UIBase
+{
+/**
+ * Provides unique name
+ */
+public static var radioCounter:int = 0;
+
+private var input:HTMLInputElement;
+private var radio:HTMLSpanElement;
+private var label:HTMLLabelElement;
+private var textNode:Text;
+
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+override protected function createElement():WrappedHTMLElement
+{ 
+// hide this eleement
+input = document.createElement('input') as HTMLInputElement;
+input.type = 'radio';
+input.className = 'mdl-radio__button';
+input.id = '_radio_' + radioCounter++;
+input.addEventListener('change', selectionChangeHandler, false);  
+
+radio = document.createElement('span') as HTMLSpanElement;
+radio.className = 'mdl-radio__label';
+radio.addEventListener('mouseover', mouseOverHandler, false);
+radio.addEventListener('mouseout', mouseOutHandler, false);
+
+textNode = document.createTextNode('') as Text;
+
+label = document.createElement('label') as HTMLLabelElement;
+label.className = "mdl-radio mdl-js-radio mdl-js-ripple-effect";
+  

[05/17] git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL RadioButton

2016-10-18 Thread carlosrovira
MDL RadioButton


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/c3026f6c
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/c3026f6c
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/c3026f6c

Branch: refs/heads/feature/mdl
Commit: c3026f6c9f13736fc53cb6e6e538ec9ba9b1679a
Parents: b0e7dc2
Author: Carlos Rovira 
Authored: Mon Oct 17 17:58:42 2016 +0200
Committer: Carlos Rovira 
Committed: Wed Oct 19 00:51:15 2016 +0200

--
 .../flex/org/apache/flex/mdl/RadioButton.as | 249 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 2 files changed, 250 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c3026f6c/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
new file mode 100644
index 000..d7e9b2f
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -0,0 +1,249 @@
+
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You 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.
+//
+
+package org.apache.flex.mdl
+{
+COMPILE::SWF
+{
+import org.apache.flex.html.RadioButton;
+}
+COMPILE::JS
+{
+import org.apache.flex.core.UIBase;
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+/**
+ *  The RadioButton class provides a MDL UI-like appearance for
+ *  a RadioButton.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::SWF
+   public class RadioButton extends org.apache.flex.html.RadioButton
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function RadioButton()
+   {
+   super();
+   }
+   }
+
+COMPILE::JS
+public class RadioButton extends UIBase
+{
+/**
+ * Provides unique name
+ */
+public static var radioCounter:int = 0;
+
+private var input:HTMLInputElement;
+private var radio:HTMLSpanElement;
+private var label:HTMLLabelElement;
+private var textNode:Text;
+
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+override protected function createElement():WrappedHTMLElement
+{ 
+// hide this eleement
+input = document.createElement('input') as HTMLInputElement;
+input.type = 'radio';
+input.className = 'mdl-radio__button';
+input.id = '_radio_' + radioCounter++;
+input.addEventListener('change', selectionChangeHandler, false);  
+
+radio = document.createElement('span') as HTMLSpanElement;
+radio.className = 'mdl-radio__label';
+radio.addEventListener('mouseover', mouseOverHandler, false);
+radio.addEventListener('mouseout', mouseOutHandler, false);
+
+textNode = document.createTextNode('') as Text;
+
+label = document.createElement('label') as HTMLLabelElement;
+label.className = "mdl-radio mdl-js-radio mdl-js-ripple-effect";
+  

git commit: [flex-asjs] [refs/heads/feature/mdl] - MDL RadioButton

2016-10-17 Thread carlosrovira
Repository: flex-asjs
Updated Branches:
  refs/heads/feature/mdl db9f3f4ef -> c3b6a8c5f


MDL RadioButton


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/c3b6a8c5
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/c3b6a8c5
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/c3b6a8c5

Branch: refs/heads/feature/mdl
Commit: c3b6a8c5f6d1230da5dda4300563bd11823bb665
Parents: db9f3f4
Author: Carlos Rovira 
Authored: Mon Oct 17 17:58:42 2016 +0200
Committer: Carlos Rovira 
Committed: Mon Oct 17 17:58:42 2016 +0200

--
 .../flex/org/apache/flex/mdl/RadioButton.as | 249 +++
 .../src/main/resources/mdl-manifest.xml |   1 +
 2 files changed, 250 insertions(+)
--


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c3b6a8c5/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
--
diff --git 
a/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
new file mode 100644
index 000..d7e9b2f
--- /dev/null
+++ 
b/frameworks/projects/MaterialDesignLite/src/main/flex/org/apache/flex/mdl/RadioButton.as
@@ -0,0 +1,249 @@
+
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You 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.
+//
+
+package org.apache.flex.mdl
+{
+COMPILE::SWF
+{
+import org.apache.flex.html.RadioButton;
+}
+COMPILE::JS
+{
+import org.apache.flex.core.UIBase;
+import org.apache.flex.core.WrappedHTMLElement;
+}
+
+/**
+ *  The RadioButton class provides a MDL UI-like appearance for
+ *  a RadioButton.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+COMPILE::SWF
+   public class RadioButton extends org.apache.flex.html.RadioButton
+   {
+/**
+ *  Constructor.
+ *  
+ *  @langversion 3.0
+ *  @playerversion Flash 10.2
+ *  @playerversion AIR 2.6
+ *  @productversion FlexJS 0.0
+ */
+   public function RadioButton()
+   {
+   super();
+   }
+   }
+
+COMPILE::JS
+public class RadioButton extends UIBase
+{
+/**
+ * Provides unique name
+ */
+public static var radioCounter:int = 0;
+
+private var input:HTMLInputElement;
+private var radio:HTMLSpanElement;
+private var label:HTMLLabelElement;
+private var textNode:Text;
+
+/**
+ * @flexjsignorecoercion org.apache.flex.core.WrappedHTMLElement
+ * @flexjsignorecoercion HTMLLabelElement
+ * @flexjsignorecoercion HTMLInputElement
+ * @flexjsignorecoercion HTMLSpanElement
+ * @flexjsignorecoercion Text
+ */
+override protected function createElement():WrappedHTMLElement
+{ 
+// hide this eleement
+input = document.createElement('input') as HTMLInputElement;
+input.type = 'radio';
+input.className = 'mdl-radio__button';
+input.id = '_radio_' + radioCounter++;
+input.addEventListener('change', selectionChangeHandler, false);  
+
+radio = document.createElement('span') as HTMLSpanElement;
+radio.className = 'mdl-radio__label';
+radio.addEventListener('mouseover', mouseOverHandler, false);
+radio.addEventListener('mouseout', mouseOutHandler, false);
+
+textNode = document.createTextNode('') as Text;
+
+label = document.createElement('label') as