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 2017/05/30 19:47:43 UTC

[08/50] git commit: [flex-asjs] [refs/heads/tlf] - get rid of warnings

get rid of warnings


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

Branch: refs/heads/tlf
Commit: e0b9641b310dc0a326be096aa52cc75678c86eee
Parents: 203aebc
Author: Alex Harui <ah...@apache.org>
Authored: Tue May 23 11:30:25 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue May 23 11:31:13 2017 -0700

----------------------------------------------------------------------
 .../src/main/flex/DataBindingExample.as         | 48 +++++++++++++-------
 1 file changed, 31 insertions(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e0b9641b/examples/flexjs/DataBindingExample_as/src/main/flex/DataBindingExample.as
----------------------------------------------------------------------
diff --git a/examples/flexjs/DataBindingExample_as/src/main/flex/DataBindingExample.as b/examples/flexjs/DataBindingExample_as/src/main/flex/DataBindingExample.as
index d215cec..848b0ab 100644
--- a/examples/flexjs/DataBindingExample_as/src/main/flex/DataBindingExample.as
+++ b/examples/flexjs/DataBindingExample_as/src/main/flex/DataBindingExample.as
@@ -23,35 +23,18 @@ import org.apache.flex.core.Application;
 import org.apache.flex.core.ItemRendererClassFactory;
 import org.apache.flex.core.SimpleCSSValuesImpl;
 import org.apache.flex.events.Event;
-import org.apache.flex.html.beads.CSSButtonView;
-import org.apache.flex.html.beads.CSSTextButtonView;
-import org.apache.flex.html.beads.CSSTextToggleButtonView;
-import org.apache.flex.html.beads.CheckBoxView;
 import org.apache.flex.html.beads.ContainerView;
 import org.apache.flex.html.beads.GroupView;
 import org.apache.flex.html.beads.DataItemRendererFactoryForArrayData;
-import org.apache.flex.html.beads.DropDownListView;
 import org.apache.flex.html.beads.ListView;
-import org.apache.flex.html.beads.RadioButtonView;
-import org.apache.flex.html.beads.SingleLineBorderBead;
-import org.apache.flex.html.beads.SolidBackgroundBead;
-import org.apache.flex.html.beads.TextAreaView;
-import org.apache.flex.html.beads.TextButtonMeasurementBead;
-import org.apache.flex.html.beads.TextFieldLabelMeasurementBead;
-import org.apache.flex.html.beads.TextFieldView;
-import org.apache.flex.html.beads.TextInputWithBorderView;
 import org.apache.flex.html.beads.TextItemRendererFactoryForArrayData;
-import org.apache.flex.html.beads.controllers.DropDownListController;
 import org.apache.flex.html.beads.controllers.ItemRendererMouseController;
-import org.apache.flex.html.beads.controllers.EditableTextKeyboardController;
 import org.apache.flex.html.beads.controllers.ListSingleSelectionMouseController;
 import org.apache.flex.html.beads.layouts.BasicLayout;
 import org.apache.flex.html.beads.layouts.VerticalLayout;
 import org.apache.flex.html.beads.models.ArraySelectionModel;
-import org.apache.flex.html.beads.models.SingleLineBorderModel;
 import org.apache.flex.html.beads.models.TextModel;
 import org.apache.flex.html.beads.models.ToggleButtonModel;
-import org.apache.flex.html.beads.models.ValueToggleButtonModel;
 import org.apache.flex.html.beads.models.ViewportModel;
 import org.apache.flex.html.supportClasses.ContainerContentArea;
 import org.apache.flex.html.supportClasses.DropDownListList;
@@ -64,6 +47,28 @@ import org.apache.flex.collections.parsers.JSONInputParser;
 import org.apache.flex.collections.LazyCollection;
 import org.apache.flex.utils.ViewSourceContextMenuOption;
 
+COMPILE::SWF
+{
+import org.apache.flex.html.beads.CSSButtonView;
+import org.apache.flex.html.beads.CSSTextButtonView;
+import org.apache.flex.html.beads.CSSTextToggleButtonView;
+import org.apache.flex.html.beads.CheckBoxView;
+import org.apache.flex.html.beads.DropDownListView;
+import org.apache.flex.html.beads.RadioButtonView;
+import org.apache.flex.html.beads.TextInputWithBorderView;
+import org.apache.flex.html.beads.models.SingleLineBorderModel;
+import org.apache.flex.html.beads.models.ValueToggleButtonModel;
+import org.apache.flex.html.beads.controllers.DropDownListController;
+import org.apache.flex.html.beads.controllers.EditableTextKeyboardController;
+import org.apache.flex.html.beads.SingleLineBorderBead;
+import org.apache.flex.html.beads.SolidBackgroundBead;
+import org.apache.flex.html.beads.TextAreaView;
+import org.apache.flex.html.beads.TextButtonMeasurementBead;
+import org.apache.flex.html.beads.TextFieldLabelMeasurementBead;
+import org.apache.flex.html.beads.TextFieldView;
+
+}
+
 import models.MyModel;
 import controllers.MyController;
 
@@ -199,6 +204,15 @@ public class DataBindingExample extends Application
 			    backgroundColor: 0xFFFFFF
             };
 
+            viv["org.apache.flex.html.supportClasses::Border"] =
+            {
+				borderStyle: "inherit",
+    			borderRadius: "inherit",
+			    borderColor: "inherit",
+			    borderWidth: "inherit",
+			    border: "inherit"
+            };
+
             viv["org.apache.flex.html::Label"] =
             {
                 iBeadModel: TextModel,