You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2014/03/25 22:04:03 UTC
[31/35] git commit: [flex-asjs] [refs/heads/develop] - remove other
staticControls folder. Next commit renames packages in the files
remove other staticControls folder. Next commit renames packages in the files
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/15b80b84
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/15b80b84
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/15b80b84
Branch: refs/heads/develop
Commit: 15b80b847b09a3daef7287119c2502eab56edd32
Parents: 189fb58
Author: Alex Harui <ah...@apache.org>
Authored: Tue Mar 25 11:15:49 2014 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Mar 25 11:15:49 2014 -0700
----------------------------------------------------------------------
.../src/org/apache/flex/createjs/CheckBox.as | 26 ++
.../src/org/apache/flex/createjs/Label.as | 27 ++
.../src/org/apache/flex/createjs/TextButton.as | 50 ++++
.../flex/createjs/staticControls/CheckBox.as | 26 --
.../flex/createjs/staticControls/Label.as | 27 --
.../flex/createjs/staticControls/TextButton.as | 50 ----
.../src/org/apache/flex/jquery/CheckBox.as | 26 ++
.../src/org/apache/flex/jquery/RadioButton.as | 26 ++
.../src/org/apache/flex/jquery/TextButton.as | 30 ++
.../flex/jquery/staticControls/CheckBox.as | 26 --
.../flex/jquery/staticControls/RadioButton.as | 26 --
.../flex/jquery/staticControls/TextButton.as | 30 --
.../src/org/apache/flex/svg/TextButton.as | 30 ++
.../flex/svg/staticControls/TextButton.as | 30 --
.../src/org/apache/flex/createjs/CheckBox.js | 144 ++++++++++
.../src/org/apache/flex/createjs/Label.js | 67 +++++
.../src/org/apache/flex/createjs/TextButton.js | 95 +++++++
.../flex/createjs/staticControls/CheckBox.js | 144 ----------
.../flex/createjs/staticControls/Label.js | 67 -----
.../flex/createjs/staticControls/TextButton.js | 95 -------
.../src/org/apache/flex/jquery/CheckBox.js | 96 +++++++
.../src/org/apache/flex/jquery/RadioButton.js | 205 ++++++++++++++
.../src/org/apache/flex/jquery/TextButton.js | 63 +++++
.../flex/jquery/staticControls/CheckBox.js | 96 -------
.../flex/jquery/staticControls/RadioButton.js | 205 --------------
.../flex/jquery/staticControls/TextButton.js | 63 -----
.../src/org/apache/flex/svg/TextButton.js | 94 +++++++
.../apache/flex/svg/assets/TextButton_Skin.svg | 279 +++++++++++++++++++
.../flex/svg/staticControls/TextButton.js | 94 -------
.../staticControls/assets/TextButton_Skin.svg | 279 -------------------
30 files changed, 1258 insertions(+), 1258 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/CheckBox.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/CheckBox.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/CheckBox.as
new file mode 100644
index 0000000..b4dc469
--- /dev/null
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/CheckBox.as
@@ -0,0 +1,26 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.createjs.staticControls
+{
+ import org.apache.flex.html.staticControls.CheckBox;
+
+ public class CheckBox extends org.apache.flex.html.staticControls.CheckBox
+ {
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/Label.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/Label.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/Label.as
new file mode 100644
index 0000000..fb8fb7e
--- /dev/null
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/Label.as
@@ -0,0 +1,27 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.createjs.staticControls
+{
+ import org.apache.flex.html.staticControls.Label;
+
+ public class Label extends org.apache.flex.html.staticControls.Label
+ {
+
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/TextButton.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/TextButton.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/TextButton.as
new file mode 100644
index 0000000..3ad2e66
--- /dev/null
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/TextButton.as
@@ -0,0 +1,50 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.createjs.staticControls
+{
+ import org.apache.flex.core.ITextModel;
+ import org.apache.flex.html.staticControls.Button;
+
+ public class TextButton extends Button
+ {
+ public function TextButton()
+ {
+ super();
+ }
+
+ public function get text():String
+ {
+ return ITextModel(model).text;
+ }
+ public function set text(value:String):void
+ {
+ ITextModel(model).text = value;
+ }
+
+ public function get html():String
+ {
+ return ITextModel(model).html;
+ }
+ public function set html(value:String):void
+ {
+ ITextModel(model).html = value;
+ }
+
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/staticControls/CheckBox.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/staticControls/CheckBox.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/staticControls/CheckBox.as
deleted file mode 100644
index b4dc469..0000000
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/staticControls/CheckBox.as
+++ /dev/null
@@ -1,26 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.createjs.staticControls
-{
- import org.apache.flex.html.staticControls.CheckBox;
-
- public class CheckBox extends org.apache.flex.html.staticControls.CheckBox
- {
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/staticControls/Label.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/staticControls/Label.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/staticControls/Label.as
deleted file mode 100644
index fb8fb7e..0000000
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/staticControls/Label.as
+++ /dev/null
@@ -1,27 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.createjs.staticControls
-{
- import org.apache.flex.html.staticControls.Label;
-
- public class Label extends org.apache.flex.html.staticControls.Label
- {
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/staticControls/TextButton.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/staticControls/TextButton.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/staticControls/TextButton.as
deleted file mode 100644
index 3ad2e66..0000000
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/createjs/staticControls/TextButton.as
+++ /dev/null
@@ -1,50 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.createjs.staticControls
-{
- import org.apache.flex.core.ITextModel;
- import org.apache.flex.html.staticControls.Button;
-
- public class TextButton extends Button
- {
- public function TextButton()
- {
- super();
- }
-
- public function get text():String
- {
- return ITextModel(model).text;
- }
- public function set text(value:String):void
- {
- ITextModel(model).text = value;
- }
-
- public function get html():String
- {
- return ITextModel(model).html;
- }
- public function set html(value:String):void
- {
- ITextModel(model).html = value;
- }
-
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/CheckBox.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/CheckBox.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/CheckBox.as
new file mode 100644
index 0000000..a2f3a01
--- /dev/null
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/CheckBox.as
@@ -0,0 +1,26 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.jquery.staticControls
+{
+ import org.apache.flex.html.staticControls.CheckBox;
+
+ public class CheckBox extends org.apache.flex.html.staticControls.CheckBox
+ {
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/RadioButton.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/RadioButton.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/RadioButton.as
new file mode 100644
index 0000000..a94739a
--- /dev/null
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/RadioButton.as
@@ -0,0 +1,26 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.jquery.staticControls
+{
+ import org.apache.flex.html.staticControls.RadioButton;
+
+ public class RadioButton extends org.apache.flex.html.staticControls.RadioButton
+ {
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/TextButton.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/TextButton.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/TextButton.as
new file mode 100644
index 0000000..fb78c83
--- /dev/null
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/TextButton.as
@@ -0,0 +1,30 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.jquery.staticControls
+{
+ import org.apache.flex.html.staticControls.TextButton;
+
+ public class TextButton extends org.apache.flex.html.staticControls.TextButton
+ {
+ public function TextButton()
+ {
+ super();
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/staticControls/CheckBox.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/staticControls/CheckBox.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/staticControls/CheckBox.as
deleted file mode 100644
index a2f3a01..0000000
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/staticControls/CheckBox.as
+++ /dev/null
@@ -1,26 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.jquery.staticControls
-{
- import org.apache.flex.html.staticControls.CheckBox;
-
- public class CheckBox extends org.apache.flex.html.staticControls.CheckBox
- {
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/staticControls/RadioButton.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/staticControls/RadioButton.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/staticControls/RadioButton.as
deleted file mode 100644
index a94739a..0000000
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/staticControls/RadioButton.as
+++ /dev/null
@@ -1,26 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.jquery.staticControls
-{
- import org.apache.flex.html.staticControls.RadioButton;
-
- public class RadioButton extends org.apache.flex.html.staticControls.RadioButton
- {
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/staticControls/TextButton.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/staticControls/TextButton.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/staticControls/TextButton.as
deleted file mode 100644
index fb78c83..0000000
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/jquery/staticControls/TextButton.as
+++ /dev/null
@@ -1,30 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.jquery.staticControls
-{
- import org.apache.flex.html.staticControls.TextButton;
-
- public class TextButton extends org.apache.flex.html.staticControls.TextButton
- {
- public function TextButton()
- {
- super();
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/as/projects/FlexJSUI/src/org/apache/flex/svg/TextButton.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/svg/TextButton.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/svg/TextButton.as
new file mode 100644
index 0000000..bb278bf
--- /dev/null
+++ b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/svg/TextButton.as
@@ -0,0 +1,30 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+// 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.svg.staticControls
+{
+ import org.apache.flex.html.staticControls.TextButton;
+
+ public class TextButton extends org.apache.flex.html.staticControls.TextButton
+ {
+ public function TextButton()
+ {
+ super();
+ }
+ }
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/as/projects/FlexJSUI/src/org/apache/flex/svg/staticControls/TextButton.as
----------------------------------------------------------------------
diff --git a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/svg/staticControls/TextButton.as b/frameworks/as/projects/FlexJSUI/src/org/apache/flex/svg/staticControls/TextButton.as
deleted file mode 100644
index bb278bf..0000000
--- a/frameworks/as/projects/FlexJSUI/src/org/apache/flex/svg/staticControls/TextButton.as
+++ /dev/null
@@ -1,30 +0,0 @@
-////////////////////////////////////////////////////////////////////////////////
-//
-// 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.svg.staticControls
-{
- import org.apache.flex.html.staticControls.TextButton;
-
- public class TextButton extends org.apache.flex.html.staticControls.TextButton
- {
- public function TextButton()
- {
- super();
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
new file mode 100644
index 0000000..f342f1d
--- /dev/null
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/CheckBox.js
@@ -0,0 +1,144 @@
+/**
+ * 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.createjs.staticControls.CheckBox');
+
+goog.require('org.apache.flex.createjs.core.UIBase');
+
+
+
+/**
+ * @constructor
+ * @extends {org.apache.flex.createjs.core.UIBase}
+ */
+org.apache.flex.createjs.staticControls.CheckBox = function() {
+ goog.base(this);
+};
+goog.inherits(org.apache.flex.createjs.staticControls.CheckBox,
+ org.apache.flex.createjs.core.UIBase);
+
+
+/**
+ * @expose
+ * @type {Object}
+ */
+org.apache.flex.createjs.staticControls.CheckBox.prototype.checkMark = null;
+
+
+/**
+ * @expose
+ * @type {Object}
+ */
+org.apache.flex.createjs.staticControls.CheckBox.prototype.checkMarkBackground =
+ null;
+
+
+/**
+ * @expose
+ * @type {Object}
+ */
+org.apache.flex.createjs.staticControls.CheckBox.prototype.checkBoxLabel = null;
+
+
+/**
+ * @override
+ */
+org.apache.flex.createjs.staticControls.CheckBox.prototype.createElement =
+ function() {
+ 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.checkMark);
+ // use bind(this) to avoid loose scope
+ this.element.onClick = this.clickHandler.bind(this);
+
+ this.positioner = this.element;
+
+ return this.element;
+};
+
+
+/**
+ * @expose
+ * @return {string} The text getter.
+ */
+org.apache.flex.createjs.staticControls.CheckBox.prototype.get_text =
+ function() {
+ return this.checkBoxLabel.text;
+};
+
+
+/**
+ * @expose
+ * @param {string} value The text setter.
+ */
+org.apache.flex.createjs.staticControls.CheckBox.prototype.set_text =
+ function(value) {
+ this.checkBoxLabel.text = value;
+};
+
+
+/**
+ * @expose
+ * @return {bool} The selected getter.
+ */
+org.apache.flex.createjs.staticControls.CheckBox.prototype.get_selected =
+ function() {
+ return this.selected;
+};
+
+
+/**
+ * @expose
+ * @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();
+};
+
+
+/**
+ * @expose
+ * @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());
+};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
new file mode 100644
index 0000000..c6b5243
--- /dev/null
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/Label.js
@@ -0,0 +1,67 @@
+/**
+ * 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.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);
+};
+goog.inherits(org.apache.flex.createjs.staticControls.Label,
+ org.apache.flex.createjs.core.UIBase);
+
+
+/**
+ * @override
+ */
+org.apache.flex.createjs.staticControls.Label.prototype.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.positioner = this.element;
+};
+
+
+/**
+ * @expose
+ * @return {string} The text getter.
+ */
+org.apache.flex.createjs.staticControls.Label.prototype.get_text = function() {
+ return this.element.text;
+};
+
+
+/**
+ * @expose
+ * @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();
+};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js
new file mode 100644
index 0000000..147b6f9
--- /dev/null
+++ b/frameworks/js/FlexJS/src/org/apache/flex/createjs/TextButton.js
@@ -0,0 +1,95 @@
+/**
+ * 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.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);
+};
+goog.inherits(org.apache.flex.createjs.staticControls.TextButton,
+ org.apache.flex.createjs.core.UIBase);
+
+
+/**
+ * @expose
+ * @type {Object}
+ */
+org.apache.flex.createjs.staticControls.TextButton.prototype.buttonLabel = null;
+
+
+/**
+ * @expose
+ * @type {Object}
+ */
+org.apache.flex.createjs.staticControls.TextButton.prototype.buttonBackground =
+ null;
+
+
+/**
+ * @override
+ */
+org.apache.flex.createjs.staticControls.TextButton.prototype.createElement =
+ function(p) {
+
+ 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',
+ '#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;
+};
+
+
+/**
+ * @expose
+ * @return {string} The text getter.
+ */
+org.apache.flex.createjs.staticControls.TextButton.prototype.get_text =
+ function() {
+ return this.buttonLabel.text;
+};
+
+
+/**
+ * @expose
+ * @param {string} value The text setter.
+ */
+org.apache.flex.createjs.staticControls.TextButton.prototype.set_text =
+ function(value) {
+ this.buttonLabel.text = value;
+};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/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
deleted file mode 100644
index f342f1d..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/CheckBox.js
+++ /dev/null
@@ -1,144 +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.createjs.staticControls.CheckBox');
-
-goog.require('org.apache.flex.createjs.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.createjs.core.UIBase}
- */
-org.apache.flex.createjs.staticControls.CheckBox = function() {
- goog.base(this);
-};
-goog.inherits(org.apache.flex.createjs.staticControls.CheckBox,
- org.apache.flex.createjs.core.UIBase);
-
-
-/**
- * @expose
- * @type {Object}
- */
-org.apache.flex.createjs.staticControls.CheckBox.prototype.checkMark = null;
-
-
-/**
- * @expose
- * @type {Object}
- */
-org.apache.flex.createjs.staticControls.CheckBox.prototype.checkMarkBackground =
- null;
-
-
-/**
- * @expose
- * @type {Object}
- */
-org.apache.flex.createjs.staticControls.CheckBox.prototype.checkBoxLabel = null;
-
-
-/**
- * @override
- */
-org.apache.flex.createjs.staticControls.CheckBox.prototype.createElement =
- function() {
- 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.checkMark);
- // use bind(this) to avoid loose scope
- this.element.onClick = this.clickHandler.bind(this);
-
- this.positioner = this.element;
-
- return this.element;
-};
-
-
-/**
- * @expose
- * @return {string} The text getter.
- */
-org.apache.flex.createjs.staticControls.CheckBox.prototype.get_text =
- function() {
- return this.checkBoxLabel.text;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org.apache.flex.createjs.staticControls.CheckBox.prototype.set_text =
- function(value) {
- this.checkBoxLabel.text = value;
-};
-
-
-/**
- * @expose
- * @return {bool} The selected getter.
- */
-org.apache.flex.createjs.staticControls.CheckBox.prototype.get_selected =
- function() {
- return this.selected;
-};
-
-
-/**
- * @expose
- * @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();
-};
-
-
-/**
- * @expose
- * @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());
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/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
deleted file mode 100644
index c6b5243..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/Label.js
+++ /dev/null
@@ -1,67 +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.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);
-};
-goog.inherits(org.apache.flex.createjs.staticControls.Label,
- org.apache.flex.createjs.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.createjs.staticControls.Label.prototype.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.positioner = this.element;
-};
-
-
-/**
- * @expose
- * @return {string} The text getter.
- */
-org.apache.flex.createjs.staticControls.Label.prototype.get_text = function() {
- return this.element.text;
-};
-
-
-/**
- * @expose
- * @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();
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/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
deleted file mode 100644
index 147b6f9..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/createjs/staticControls/TextButton.js
+++ /dev/null
@@ -1,95 +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.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);
-};
-goog.inherits(org.apache.flex.createjs.staticControls.TextButton,
- org.apache.flex.createjs.core.UIBase);
-
-
-/**
- * @expose
- * @type {Object}
- */
-org.apache.flex.createjs.staticControls.TextButton.prototype.buttonLabel = null;
-
-
-/**
- * @expose
- * @type {Object}
- */
-org.apache.flex.createjs.staticControls.TextButton.prototype.buttonBackground =
- null;
-
-
-/**
- * @override
- */
-org.apache.flex.createjs.staticControls.TextButton.prototype.createElement =
- function(p) {
-
- 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',
- '#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;
-};
-
-
-/**
- * @expose
- * @return {string} The text getter.
- */
-org.apache.flex.createjs.staticControls.TextButton.prototype.get_text =
- function() {
- return this.buttonLabel.text;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org.apache.flex.createjs.staticControls.TextButton.prototype.set_text =
- function(value) {
- this.buttonLabel.text = value;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
new file mode 100644
index 0000000..0d54eee
--- /dev/null
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/CheckBox.js
@@ -0,0 +1,96 @@
+/**
+ * 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.staticControls.CheckBox');
+
+goog.require('org.apache.flex.core.UIBase');
+
+
+
+/**
+ * @constructor
+ * @extends {org.apache.flex.core.UIBase}
+ */
+org.apache.flex.jquery.staticControls.CheckBox = function() {
+ goog.base(this);
+
+};
+goog.inherits(org.apache.flex.jquery.staticControls.CheckBox,
+ org.apache.flex.core.UIBase);
+
+
+/**
+ * @override
+ */
+org.apache.flex.jquery.staticControls.CheckBox.prototype.createElement =
+ function() {
+ var cb, d, lb;
+
+ d = document.createElement('div');
+ cb = document.createElement('input');
+ cb.type = 'checkbox';
+ cb.id = 'checkbox1';
+
+ lb = document.createElement('label');
+ lb.htmlFor = 'checkbox1';
+
+ d.appendChild(cb);
+ d.appendChild(lb);
+
+ this.element = d;
+
+ $(cb).button();
+
+ this.positioner = this.element;
+ this.element.flexjs_wrapper = this;
+};
+
+
+/**
+ * @expose
+ * @return {string} The text getter.
+ */
+org.apache.flex.jquery.staticControls.CheckBox.prototype.get_text = function() {
+ return this.element.childNodes.item(1).value;
+};
+
+
+/**
+ * @expose
+ * @param {string} value The text setter.
+ */
+org.apache.flex.jquery.staticControls.CheckBox.prototype.set_text =
+ function(value) {
+ this.element.childNodes.item(1).appendChild(document.createTextNode(value));
+};
+
+
+/**
+ * @expose
+ * @return {bool} The selected getter.
+ */
+org.apache.flex.jquery.staticControls.CheckBox.prototype.get_selected =
+ function() {
+ return this.element.childNodes.item(0).checked;
+};
+
+
+/**
+ * @expose
+ * @param {bool} value The selected setter.
+ */
+org.apache.flex.jquery.staticControls.CheckBox.prototype.set_selected =
+ function(value) {
+ this.element.childNodes.item(0).checked = value;
+};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
new file mode 100644
index 0000000..e0d8c29
--- /dev/null
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/RadioButton.js
@@ -0,0 +1,205 @@
+/**
+ * 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.staticControls.RadioButton');
+
+goog.require('org.apache.flex.core.UIBase');
+
+
+
+/**
+ * @constructor
+ * @extends {org.apache.flex.core.UIBase}
+ */
+org.apache.flex.jquery.staticControls.RadioButton = function() {
+
+ goog.base(this);
+
+ org.apache.flex.core.UIBase.call(this);
+ org.apache.flex.jquery.staticControls.RadioButton.radioCounter++;
+};
+goog.inherits(org.apache.flex.jquery.staticControls.RadioButton,
+ org.apache.flex.core.UIBase);
+
+
+/**
+ * @expose
+ * The name of the radioGroup.
+ */
+org.apache.flex.jquery.staticControls.RadioButton.prototype.radioGroupName = null;
+
+
+/**
+ * @expose
+ * Used to provide ids to the radio buttons.
+ */
+org.apache.flex.jquery.staticControls.RadioButton.radioCounter = 0;
+
+
+/**
+ * @expose
+ * Used to manage groups on the radio buttons.
+ */
+org.apache.flex.jquery.staticControls.RadioButton.groups = { };
+
+
+/**
+ * Flag to make sure the event handler is set only once.
+ */
+org.apache.flex.jquery.staticControls.RadioButton.groupHandlerSet = false;
+
+
+/**
+ * @override
+ */
+org.apache.flex.jquery.staticControls.RadioButton.prototype.createElement =
+ function() {
+
+ var input = document.createElement('input');
+ input.type = 'radio';
+ input.name = 'radio';
+ input.id = 'radio' +
+ org.apache.flex.jquery.staticControls.RadioButton.radioCounter;
+
+ var label = document.createElement('label');
+ label.htmlFor = input.id;
+
+ this.element = input;
+ this.labelFor = label;
+
+ this.positioner = this.element;
+ this.flexjs_wrapper = this;
+};
+
+
+/**
+ * @override
+ * @param {Object} doc the document for this item.
+ */
+org.apache.flex.jquery.staticControls.RadioButton.prototype.setDocument =
+ function(doc, id) {
+ if (!org.apache.flex.jquery.staticControls.RadioButton.groupHandlerSet)
+ {
+ org.apache.flex.jquery.staticControls.RadioButton.groupHandlerSet =
+ true;
+ doc.addEventListener('initComplete',
+ goog.bind(this.initHandler, this));
+ }
+};
+
+
+/**
+ * @param {Event} event The event.
+ */
+org.apache.flex.jquery.staticControls.RadioButton.prototype.initHandler =
+ function(event) {
+ var divtags = org.apache.flex.jquery.staticControls.RadioButton.groups;
+ for (var name in divtags)
+ {
+ var div = divtags[name];
+ $(div).buttonset();
+ }
+};
+
+
+/**
+ * @expose
+ * @return {string} The groupName getter.
+ */
+org.apache.flex.jquery.staticControls.RadioButton.prototype.get_groupName =
+ function() {
+ return this.radioGroupName;
+};
+
+
+/**
+ * @expose
+ * @param {string} value The groupName setter.
+ */
+org.apache.flex.jquery.staticControls.RadioButton.prototype.set_groupName =
+ function(value) {
+
+ /*
+ * NOTE: Ideally when a RadioButton was created it would be added to an
+ * existing set of RadioButtons. This is especially true for RadioButtons
+ * added dynamically. However, due to a bug in jQuery
+ * (see http://bugs.jqueryui.com/ticket/8975), it is currently not possible
+ * to add or remove RadioButtons programmatically. For this version the
+ * groups are maintained here in RadioButton and once the application has
+ * finished initializing, the groups are given their buttonset().
+ */
+
+ this.radioGroupName = value;
+
+ this.element.name = value;
+
+ var div;
+
+ if (org.apache.flex.jquery.staticControls.RadioButton.groups[value]) {
+ div = org.apache.flex.jquery.staticControls.RadioButton.groups[value];
+ div.appendChild(this.element);
+ div.appendChild(this.labelFor);
+ }
+ else {
+ div = document.createElement('div');
+ div.id = value;
+ div.appendChild(this.element);
+ div.appendChild(this.labelFor);
+
+ org.apache.flex.jquery.staticControls.
+ RadioButton.groups[String(value)] = div;
+ }
+
+ this.positioner = div;
+};
+
+
+/**
+ * @expose
+ * @return {string} The text getter.
+ */
+org.apache.flex.jquery.staticControls.RadioButton.prototype.get_text =
+ function() {
+ return this.labelFor.innerHTML;
+};
+
+
+/**
+ * @expose
+ * @param {string} value The text setter.
+ */
+org.apache.flex.jquery.staticControls.RadioButton.prototype.set_text =
+ function(value) {
+ this.labelFor.innerHTML = value;
+};
+
+
+/**
+ * @expose
+ * @return {bool} The selected getter.
+ */
+org.apache.flex.jquery.staticControls.RadioButton.prototype.get_selected =
+ function() {
+ return this.element.checked;
+};
+
+
+/**
+ * @expose
+ * @param {bool} value The selected setter.
+ */
+org.apache.flex.jquery.staticControls.RadioButton.prototype.set_selected =
+ function(value) {
+ this.element.checked = value;
+};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js
new file mode 100644
index 0000000..6e98f82
--- /dev/null
+++ b/frameworks/js/FlexJS/src/org/apache/flex/jquery/TextButton.js
@@ -0,0 +1,63 @@
+/**
+ * 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.staticControls.TextButton');
+
+goog.require('org.apache.flex.core.UIBase');
+
+
+
+/**
+ * @constructor
+ * @extends {org.apache.flex.core.UIBase}
+ */
+org.apache.flex.jquery.staticControls.TextButton = function() {
+ goog.base(this);
+};
+goog.inherits(org.apache.flex.jquery.staticControls.TextButton,
+ org.apache.flex.core.UIBase);
+
+
+/**
+ * @override
+ */
+org.apache.flex.jquery.staticControls.TextButton.prototype.createElement =
+ function() {
+ this.element = document.createElement('button');
+ this.element.setAttribute('type', 'button');
+ $(this.element).button();
+
+ this.positioner = this.element;
+ this.element.flexjs_wrapper = this;
+};
+
+
+/**
+ * @expose
+ * @return {string} The text getter.
+ */
+org.apache.flex.jquery.staticControls.TextButton.prototype.get_text =
+ function() {
+ return this.element.innerHTML;
+};
+
+
+/**
+ * @expose
+ * @param {string} value The text setter.
+ */
+org.apache.flex.jquery.staticControls.TextButton.prototype.set_text =
+ function(value) {
+ this.element.innerHTML = value;
+};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/js/FlexJS/src/org/apache/flex/jquery/staticControls/CheckBox.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/staticControls/CheckBox.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/staticControls/CheckBox.js
deleted file mode 100644
index 0d54eee..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/staticControls/CheckBox.js
+++ /dev/null
@@ -1,96 +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.staticControls.CheckBox');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.jquery.staticControls.CheckBox = function() {
- goog.base(this);
-
-};
-goog.inherits(org.apache.flex.jquery.staticControls.CheckBox,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.jquery.staticControls.CheckBox.prototype.createElement =
- function() {
- var cb, d, lb;
-
- d = document.createElement('div');
- cb = document.createElement('input');
- cb.type = 'checkbox';
- cb.id = 'checkbox1';
-
- lb = document.createElement('label');
- lb.htmlFor = 'checkbox1';
-
- d.appendChild(cb);
- d.appendChild(lb);
-
- this.element = d;
-
- $(cb).button();
-
- this.positioner = this.element;
- this.element.flexjs_wrapper = this;
-};
-
-
-/**
- * @expose
- * @return {string} The text getter.
- */
-org.apache.flex.jquery.staticControls.CheckBox.prototype.get_text = function() {
- return this.element.childNodes.item(1).value;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org.apache.flex.jquery.staticControls.CheckBox.prototype.set_text =
- function(value) {
- this.element.childNodes.item(1).appendChild(document.createTextNode(value));
-};
-
-
-/**
- * @expose
- * @return {bool} The selected getter.
- */
-org.apache.flex.jquery.staticControls.CheckBox.prototype.get_selected =
- function() {
- return this.element.childNodes.item(0).checked;
-};
-
-
-/**
- * @expose
- * @param {bool} value The selected setter.
- */
-org.apache.flex.jquery.staticControls.CheckBox.prototype.set_selected =
- function(value) {
- this.element.childNodes.item(0).checked = value;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/js/FlexJS/src/org/apache/flex/jquery/staticControls/RadioButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/staticControls/RadioButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/staticControls/RadioButton.js
deleted file mode 100644
index e0d8c29..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/staticControls/RadioButton.js
+++ /dev/null
@@ -1,205 +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.staticControls.RadioButton');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.jquery.staticControls.RadioButton = function() {
-
- goog.base(this);
-
- org.apache.flex.core.UIBase.call(this);
- org.apache.flex.jquery.staticControls.RadioButton.radioCounter++;
-};
-goog.inherits(org.apache.flex.jquery.staticControls.RadioButton,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @expose
- * The name of the radioGroup.
- */
-org.apache.flex.jquery.staticControls.RadioButton.prototype.radioGroupName = null;
-
-
-/**
- * @expose
- * Used to provide ids to the radio buttons.
- */
-org.apache.flex.jquery.staticControls.RadioButton.radioCounter = 0;
-
-
-/**
- * @expose
- * Used to manage groups on the radio buttons.
- */
-org.apache.flex.jquery.staticControls.RadioButton.groups = { };
-
-
-/**
- * Flag to make sure the event handler is set only once.
- */
-org.apache.flex.jquery.staticControls.RadioButton.groupHandlerSet = false;
-
-
-/**
- * @override
- */
-org.apache.flex.jquery.staticControls.RadioButton.prototype.createElement =
- function() {
-
- var input = document.createElement('input');
- input.type = 'radio';
- input.name = 'radio';
- input.id = 'radio' +
- org.apache.flex.jquery.staticControls.RadioButton.radioCounter;
-
- var label = document.createElement('label');
- label.htmlFor = input.id;
-
- this.element = input;
- this.labelFor = label;
-
- this.positioner = this.element;
- this.flexjs_wrapper = this;
-};
-
-
-/**
- * @override
- * @param {Object} doc the document for this item.
- */
-org.apache.flex.jquery.staticControls.RadioButton.prototype.setDocument =
- function(doc, id) {
- if (!org.apache.flex.jquery.staticControls.RadioButton.groupHandlerSet)
- {
- org.apache.flex.jquery.staticControls.RadioButton.groupHandlerSet =
- true;
- doc.addEventListener('initComplete',
- goog.bind(this.initHandler, this));
- }
-};
-
-
-/**
- * @param {Event} event The event.
- */
-org.apache.flex.jquery.staticControls.RadioButton.prototype.initHandler =
- function(event) {
- var divtags = org.apache.flex.jquery.staticControls.RadioButton.groups;
- for (var name in divtags)
- {
- var div = divtags[name];
- $(div).buttonset();
- }
-};
-
-
-/**
- * @expose
- * @return {string} The groupName getter.
- */
-org.apache.flex.jquery.staticControls.RadioButton.prototype.get_groupName =
- function() {
- return this.radioGroupName;
-};
-
-
-/**
- * @expose
- * @param {string} value The groupName setter.
- */
-org.apache.flex.jquery.staticControls.RadioButton.prototype.set_groupName =
- function(value) {
-
- /*
- * NOTE: Ideally when a RadioButton was created it would be added to an
- * existing set of RadioButtons. This is especially true for RadioButtons
- * added dynamically. However, due to a bug in jQuery
- * (see http://bugs.jqueryui.com/ticket/8975), it is currently not possible
- * to add or remove RadioButtons programmatically. For this version the
- * groups are maintained here in RadioButton and once the application has
- * finished initializing, the groups are given their buttonset().
- */
-
- this.radioGroupName = value;
-
- this.element.name = value;
-
- var div;
-
- if (org.apache.flex.jquery.staticControls.RadioButton.groups[value]) {
- div = org.apache.flex.jquery.staticControls.RadioButton.groups[value];
- div.appendChild(this.element);
- div.appendChild(this.labelFor);
- }
- else {
- div = document.createElement('div');
- div.id = value;
- div.appendChild(this.element);
- div.appendChild(this.labelFor);
-
- org.apache.flex.jquery.staticControls.
- RadioButton.groups[String(value)] = div;
- }
-
- this.positioner = div;
-};
-
-
-/**
- * @expose
- * @return {string} The text getter.
- */
-org.apache.flex.jquery.staticControls.RadioButton.prototype.get_text =
- function() {
- return this.labelFor.innerHTML;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org.apache.flex.jquery.staticControls.RadioButton.prototype.set_text =
- function(value) {
- this.labelFor.innerHTML = value;
-};
-
-
-/**
- * @expose
- * @return {bool} The selected getter.
- */
-org.apache.flex.jquery.staticControls.RadioButton.prototype.get_selected =
- function() {
- return this.element.checked;
-};
-
-
-/**
- * @expose
- * @param {bool} value The selected setter.
- */
-org.apache.flex.jquery.staticControls.RadioButton.prototype.set_selected =
- function(value) {
- this.element.checked = value;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/js/FlexJS/src/org/apache/flex/jquery/staticControls/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/jquery/staticControls/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/jquery/staticControls/TextButton.js
deleted file mode 100644
index 6e98f82..0000000
--- a/frameworks/js/FlexJS/src/org/apache/flex/jquery/staticControls/TextButton.js
+++ /dev/null
@@ -1,63 +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.staticControls.TextButton');
-
-goog.require('org.apache.flex.core.UIBase');
-
-
-
-/**
- * @constructor
- * @extends {org.apache.flex.core.UIBase}
- */
-org.apache.flex.jquery.staticControls.TextButton = function() {
- goog.base(this);
-};
-goog.inherits(org.apache.flex.jquery.staticControls.TextButton,
- org.apache.flex.core.UIBase);
-
-
-/**
- * @override
- */
-org.apache.flex.jquery.staticControls.TextButton.prototype.createElement =
- function() {
- this.element = document.createElement('button');
- this.element.setAttribute('type', 'button');
- $(this.element).button();
-
- this.positioner = this.element;
- this.element.flexjs_wrapper = this;
-};
-
-
-/**
- * @expose
- * @return {string} The text getter.
- */
-org.apache.flex.jquery.staticControls.TextButton.prototype.get_text =
- function() {
- return this.element.innerHTML;
-};
-
-
-/**
- * @expose
- * @param {string} value The text setter.
- */
-org.apache.flex.jquery.staticControls.TextButton.prototype.set_text =
- function(value) {
- this.element.innerHTML = value;
-};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js b/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js
new file mode 100644
index 0000000..04325ef
--- /dev/null
+++ b/frameworks/js/FlexJS/src/org/apache/flex/svg/TextButton.js
@@ -0,0 +1,94 @@
+/**
+ * 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.svg.staticControls.TextButton');
+
+goog.require('org.apache.flex.core.UIBase');
+
+
+
+/**
+ * @constructor
+ * @extends {org.apache.flex.core.UIBase}
+ */
+org.apache.flex.svg.staticControls.TextButton = function() {
+ goog.base(this);
+};
+goog.inherits(org.apache.flex.svg.staticControls.TextButton,
+ org.apache.flex.core.UIBase);
+
+
+/**
+ * Metadata
+ *
+ * @type {Object.<string, Array.<Object>>}
+ */
+org.apache.flex.svg.staticControls.TextButton.prototype.FLEXJS_CLASS_INFO =
+ { names: [{ name: 'TextButton',
+ qName: 'org.apache.flex.svg.staticControls.TextButton'}] };
+
+
+/**
+ * @override
+ */
+org.apache.flex.svg.staticControls.TextButton.prototype.createElement =
+ function() {
+ this.element = document.createElement('embed');
+ this.element.setAttribute('src', 'org/apache/flex/svg/staticControls/assets/TextButton_Skin.svg');
+
+ this.positioner = this.element;
+
+ return this.element;
+};
+
+
+/**
+ * @override
+ */
+org.apache.flex.svg.staticControls.TextButton.prototype.finalizeElement =
+ function() {
+ var listenersArray;
+ if (goog.events.hasListener(this.element, goog.events.EventType.CLICK)) {
+ listenersArray = goog.events.getListeners(this.element, goog.events.EventType.CLICK, false);
+
+ /* As we are assigning an actual function object instead of just the name,
+ make sure to use a unique name ('clickHandler') instead of a native
+ name, like 'click' or 'onclick'.
+
+ Note: use array notation for property assignment so the compiler doesn't
+ rename the property ;-)
+ */
+ this.element['clickHandler'] = listenersArray[0].listener;
+ }
+};
+
+
+/**
+ * @expose
+ * @return {string} The text getter.
+ */
+org.apache.flex.svg.staticControls.TextButton.prototype.get_text =
+ function() {
+ return this.element.getAttribute('label');
+};
+
+
+/**
+ * @expose
+ * @param {string} value The text setter.
+ */
+org.apache.flex.svg.staticControls.TextButton.prototype.set_text =
+ function(value) {
+ this.element.setAttribute('label', value);
+};
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/15b80b84/frameworks/js/FlexJS/src/org/apache/flex/svg/assets/TextButton_Skin.svg
----------------------------------------------------------------------
diff --git a/frameworks/js/FlexJS/src/org/apache/flex/svg/assets/TextButton_Skin.svg b/frameworks/js/FlexJS/src/org/apache/flex/svg/assets/TextButton_Skin.svg
new file mode 100644
index 0000000..7986725
--- /dev/null
+++ b/frameworks/js/FlexJS/src/org/apache/flex/svg/assets/TextButton_Skin.svg
@@ -0,0 +1,279 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+
+ 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.
+
+-->
+<svg xmlns="http://www.w3.org/2000/svg" version="1.1" class="button" width="100%" height="100%"
+ onload="return init(evt)"
+ onmouseover="return handleMouseOver(evt)"
+ onmousedown="return handleMouseDown(evt)"
+ onmouseup="return handleMouseUp(evt)"
+ onmouseout="return handleMouseOut(evt)"
+ onclick="handleOnClick(evt)"
+ >
+ <style type="text/css">
+ .button {cursor: pointer;}
+ </style>
+
+ <script type="text/ecmascript">
+ <![CDATA[
+
+ var labelStr = "";
+ var clickHandler;
+
+ function init(event)
+ {
+ //Set Initial button state
+ document.getElementById("button_up").style.display="inline";
+ document.getElementById("button_over").style.display="none";
+ document.getElementById("button_down").style.display="none";
+
+ //Set label from the embed's frameElement.attributes values
+ labelStr = window.frameElement.attributes["label"].value;
+ var labelElement = document.getElementById("labelDisplay");
+ labelElement.firstChild.nodeValue = labelStr;
+
+ //Store callbacks
+ clickHandler = window.frameElement.clickHandler;
+ }
+
+ function handleMouseOver(event)
+ {
+ document.getElementById("button_up").style.display="none";
+ document.getElementById("button_over").style.display="inline";
+ document.getElementById("button_down").style.display="none";
+ }
+
+ function handleMouseDown(event)
+ {
+ document.getElementById("button_up").style.display="none";
+ document.getElementById("button_over").style.display="none";
+ document.getElementById("button_down").style.display="inline";
+ }
+
+ function handleMouseUp(event)
+ {
+ document.getElementById("button_up").style.display="none";
+ document.getElementById("button_over").style.display="inline";
+ document.getElementById("button_down").style.display="none";
+ }
+
+ function handleMouseOut(event)
+ {
+ document.getElementById("button_up").style.display="inline";
+ document.getElementById("button_over").style.display="none";
+ document.getElementById("button_down").style.display="none";
+ }
+
+ function handleOnClick(evt)
+ {
+ clickHandler(evt,this);
+ }
+
+ ]]></script>
+ <svg xmlns="http://www.w3.org/2000/svg" id="button_up" width="100%" height="100%" version="1.1" >
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="-1" right="-1" top="-1" bottom="-1">
+ <defs>
+ <linearGradient id="button_up_idLinearGradientx63x32" gradientTransform="rotate(90)">
+ <stop offset="0" stop-color="#000000" stop-opacity="0.01" />
+ <stop offset="1" stop-color="#000000" stop-opacity="0.07" />
+ </linearGradient>
+ </defs>
+ <rect id="button_up_shadow" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_up_idLinearGradientx63x32)" />
+ </svg>
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
+ <defs>
+ <linearGradient id="button_up_idLinearGradientx63x54" gradientTransform="rotate(90)">
+ <stop offset="0" stop-color="#FFFFFF" stop-opacity="0.85" />
+ <stop offset="1" stop-color="#D8D8D8" stop-opacity="0.85" />
+ </linearGradient>
+ </defs>
+ <rect id="button_up_fill" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_up_idLinearGradientx63x54)" />
+ </svg>
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
+ <defs>
+ <linearGradient id="button_up_idLinearGradientx63x76" x1="0%" y1="100%" x2="0%" y2="0%">
+ <stop offset="0.0" stop-color="#000000" stop-opacity="0.0627" />
+ <stop offset="0.48" stop-color="#000000" stop-opacity="0.0099" />
+ <stop offset="0.48001" stop-color="#000000" stop-opacity="0" />
+ </linearGradient>
+ </defs>
+ <rect id="button_up_lowlight" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_up_idLinearGradientx63x76)" />
+ </svg>
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
+ <defs>
+ <linearGradient id="button_up_idLinearGradientx63x100" gradientTransform="rotate(90)">
+ <stop offset="0.0" stop-color="#FFFFFF" stop-opacity="0.33" />
+ <stop offset="0.48" stop-color="#FFFFFF" stop-opacity="0.33" />
+ <stop offset="0.48001" stop-color="#FFFFFF" stop-opacity="0" />
+ </linearGradient>
+ </defs>
+ <rect id="button_up_highlight" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_up_idLinearGradientx63x100)" />
+ </svg>
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
+ <defs>
+ <linearGradient id="button_up_idLinearGradientStrokex63x129" gradientTransform="rotate(90)">
+ <stop offset="0" stop-color="#FFFFFF" />
+ <stop offset="1" stop-color="#D8D8D8" />
+ </linearGradient>
+ </defs>
+ <rect id="button_up_highlightStroke" rx="2" ry="2" width="100%" height="100%" fill="none" style="stroke-width:2;stroke:url(#button_up_idLinearGradientStrokex63x129)" />
+ </svg>
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="0" right="0" top="0" bottom="0">
+ <defs>
+ <linearGradient id="button_up_idLinearGradientStrokex63x205" gradientTransform="rotate(90)">
+ <stop offset="0" stop-color="#000000" stop-opacity="0.5625" />
+ <stop offset="1" stop-color="#000000" stop-opacity="0.75" />
+ </linearGradient>
+ </defs>
+ <rect id="button_up_border" rx="2" ry="2" width="100%" height="100%" fill="none" style="stroke-width:2;stroke:url(#button_up_idLinearGradientStrokex63x205)" />
+ </svg>
+ </svg>
+
+ <svg xmlns="http://www.w3.org/2000/svg" id="button_over" width="100%" height="100%" version="1.1" >
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="-1" right="-1" top="-1" bottom="-1">
+ <defs>
+ <linearGradient id="button_over_idLinearGradientx63x32" gradientTransform="rotate(90)">
+ <stop offset="0" stop-color="#000000" stop-opacity="0.01" />
+ <stop offset="1" stop-color="#000000" stop-opacity="0.07" />
+ </linearGradient>
+ </defs>
+ <rect id="button_over_shadow" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_over_idLinearGradientx63x32)" />
+ </svg>
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
+ <defs>
+ <linearGradient id="button_over_idLinearGradientx63x54" gradientTransform="rotate(90)">
+ <stop offset="0" stop-color="#BBBDBD" stop-opacity="0.85" />
+ <stop offset="1" stop-color="#9FA0A1" stop-opacity="0.85" />
+ </linearGradient>
+ </defs>
+ <rect id="button_over_fill" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_over_idLinearGradientx63x54)" />
+ </svg>
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
+ <defs>
+ <linearGradient id="button_over_idLinearGradientx63x76" x1="0%" y1="100%" x2="0%" y2="0%">
+ <stop offset="0.0" stop-color="#000000" stop-opacity="0.0627" />
+ <stop offset="0.48" stop-color="#000000" stop-opacity="0.0099" />
+ <stop offset="0.48001" stop-color="#000000" stop-opacity="0" />
+ </linearGradient>
+ </defs>
+ <rect id="button_over_lowlight" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_over_idLinearGradientx63x76)" />
+ </svg>
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
+ <defs>
+ <linearGradient id="button_over_idLinearGradientx63x100" gradientTransform="rotate(90)">
+ <stop offset="0.0" stop-color="#FFFFFF" stop-opacity="0.22" />
+ <stop offset="0.48" stop-color="#FFFFFF" stop-opacity="0.22" />
+ <stop offset="0.48001" stop-color="#FFFFFF" stop-opacity="0" />
+ </linearGradient>
+ </defs>
+ <rect id="button_over_highlight" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_over_idLinearGradientx63x100)" />
+ </svg>
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
+ <defs>
+ <linearGradient id="button_over_idLinearGradientStrokex63x129" gradientTransform="rotate(90)">
+ <stop offset="0" stop-color="#FFFFFF" stop-opacity="0.22" />
+ <stop offset="1" stop-color="#D8D8D8" stop-opacity="0.22" />
+ </linearGradient>
+ </defs>
+ <rect id="button_over_highlightStroke" rx="2" ry="2" width="100%" height="100%" fill="none" style="stroke-width:2;stroke:url(#button_over_idLinearGradientStrokex63x129)" />
+ </svg>
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="0" right="0" top="0" bottom="0">
+ <defs>
+ <linearGradient id="button_over_idLinearGradientStrokex63x205" gradientTransform="rotate(90)">
+ <stop offset="0" stop-color="#000000" stop-opacity="0.5625" />
+ <stop offset="1" stop-color="#000000" stop-opacity="0.75" />
+ </linearGradient>
+ </defs>
+ <rect id="button_over_border" width="100%" height="100%" rx="2" ry="2" fill="none" style="stroke-width:2;stroke:url(#button_over_idLinearGradientStrokex63x205)" />
+ </svg>
+ </svg>
+ <svg xmlns="http://www.w3.org/2000/svg" id="button_down" width="100%" height="100%" version="1.1" >
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="-1" right="-1" top="-1" bottom="-1">
+ <defs>
+ <linearGradient id="button_down_idLinearGradientx63x32" gradientTransform="rotate(90)">
+ <stop offset="0" stop-color="#FFFFFF" stop-opacity="0" />
+ <stop offset="1" stop-color="#FFFFFF" stop-opacity="0.5" />
+ </linearGradient>
+ </defs>
+ <rect id="button_down_shadow" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_down_idLinearGradientx63x32)" />
+ </svg>
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
+ <defs>
+ <linearGradient id="button_down_idLinearGradientx63x54" gradientTransform="rotate(90)">
+ <stop offset="0" stop-color="#AAAAAA" stop-opacity="0.85" />
+ <stop offset="1" stop-color="#929496" stop-opacity="0.85" />
+ </linearGradient>
+ </defs>
+ <rect id="button_down_fill" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_down_idLinearGradientx63x54)" />
+ </svg>
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
+ <defs>
+ <linearGradient id="button_down_idLinearGradientx63x76" x1="0%" y1="100%" x2="0%" y2="0%">
+ <stop offset="0.0" stop-color="#000000" stop-opacity="0.0627" />
+ <stop offset="0.48" stop-color="#000000" stop-opacity="0.0099" />
+ <stop offset="0.48001" stop-color="#000000" stop-opacity="0" />
+ </linearGradient>
+ </defs>
+ <rect id="button_down_lowlight" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_down_idLinearGradientx63x76)" />
+ </svg>
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
+ <defs>
+ <linearGradient id="button_down_idLinearGradientx63x100" gradientTransform="rotate(90)">
+ <stop offset="0.0" stop-color="#FFFFFF" stop-opacity="0.12" />
+ <stop offset="0.48" stop-color="#FFFFFF" stop-opacity="0.12" />
+ <stop offset="0.48001" stop-color="#FFFFFF" stop-opacity="0" />
+ </linearGradient>
+ </defs>
+ <rect id="button_down_highlight" rx="2" ry="2" width="100%" height="100%" style="fill:url(#button_down_idLinearGradientx63x100)" />
+ </svg>
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="1" right="1" top="1" bottom="1">
+ <defs>
+ <linearGradient id="button_down_idLinearGradientStrokex63x149" gradientTransform="rotate(90)">
+ <stop offset="0.0" stop-color="#000000" stop-opacity="0.25" />
+ <stop offset="0.001" stop-color="#000000" stop-opacity="0.25" />
+ <stop offset="0.0011" stop-color="#000000" stop-opacity="0.07" />
+ <stop offset="0.965" stop-color="#000000" stop-opacity="0.07" />
+ <stop offset="0.9651" stop-color="#000000" stop-opacity="0.00" />
+ </linearGradient>
+ </defs>
+ <rect id="button_down_hldownstroke1" rx="2" ry="2" width="100%" height="100%" fill="none" style="stroke-width:2;stroke:url(#button_down_idLinearGradientStrokex63x149)" />
+ </svg>
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="2" right="2" top="2" bottom="2">
+ <defs>
+ <linearGradient id="button_down_idLinearGradientStrokex63x182" gradientTransform="rotate(90)">
+ <stop offset="0.0" stop-color="#000000" stop-opacity="0.09" />
+ <stop offset="0.0001" stop-color="#000000" stop-opacity="0.00" />
+ </linearGradient>
+ </defs>
+ <rect id="button_down_hldownstroke2" rx="2" ry="2" width="100%" height="100%" fill="none" style="stroke-width:2;stroke:url(#button_down_idLinearGradientStrokex63x182)" />
+ </svg>
+ <svg xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" left="0" right="0" top="0" bottom="0">
+ <defs>
+ <linearGradient id="button_down_idLinearGradientStrokex63x205" gradientTransform="rotate(90)">
+ <stop offset="0" stop-color="#000000" stop-opacity="0.6375" />
+ <stop offset="1" stop-color="#000000" stop-opacity="0.85" />
+ </linearGradient>
+ </defs>
+ <rect id="button_down_border" width="100%" height="100%" rx="2" ry="2" fill="none" style="stroke-width:2;stroke:url(#button_down_idLinearGradientStrokex63x205)" />
+ </svg>
+ </svg>
+ <svg id="labelDisplaySVG" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" version="1.1" >
+ <text id="labelDisplay" text-anchor="middle" font-family="verdana" font-size="12" dy=".3em" x="50%" y="50%" > </text>
+ </svg>
+ <rect id="mouse_catcher" width="100%" height="100%" fill="none" pointer-events="all"/>
+</svg>
\ No newline at end of file