You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2014/08/25 14:00:26 UTC
[2/2] git commit: [flex-utilities] [refs/heads/develop] - add a
couple of simple 4.11 and 4.12 examples
add a couple of simple 4.11 and 4.12 examples
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/004afb61
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/004afb61
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/004afb61
Branch: refs/heads/develop
Commit: 004afb61c4a7b1bfbe9660cba5aacd472a3b231f
Parents: 56637f5
Author: Justin Mclean <jm...@apache.org>
Authored: Mon Aug 25 22:00:04 2014 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Mon Aug 25 22:00:04 2014 +1000
----------------------------------------------------------------------
.../src/apache/containers/CalloutExample.mxml | 41 ++++++++++++++++++++
.../apache/controls/MaskedTextInputExample.mxml | 34 ++++++++++++++++
2 files changed, 75 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/004afb61/TourDeFlex/TourDeFlex3/src/apache/containers/CalloutExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/apache/containers/CalloutExample.mxml b/TourDeFlex/TourDeFlex3/src/apache/containers/CalloutExample.mxml
new file mode 100644
index 0000000..ace2200
--- /dev/null
+++ b/TourDeFlex/TourDeFlex3/src/apache/containers/CalloutExample.mxml
@@ -0,0 +1,41 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns:mx="library://ns.adobe.com/flex/mx">
+
+ <fx:Declarations>
+ <s:Callout id="callout">
+ <s:VGroup horizontalAlign="center">
+ <s:Label text="Callout - click close" />
+ <s:Button label="Close" click="callout.close()" />
+ </s:VGroup>
+ </s:Callout>
+ </fx:Declarations>
+
+ <s:Panel title="Callout" width="100%" height="100%" borderAlpha="0.15">
+ <s:layout>
+ <s:VerticalLayout paddingLeft="20" paddingTop="20" gap="10" />
+ </s:layout>
+ <s:HGroup>
+ <s:Button id="show" label="Show Callout" click="callout.open(show)" />
+ </s:HGroup>
+ </s:Panel>
+</s:Application>
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/004afb61/TourDeFlex/TourDeFlex3/src/apache/controls/MaskedTextInputExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/apache/controls/MaskedTextInputExample.mxml b/TourDeFlex/TourDeFlex3/src/apache/controls/MaskedTextInputExample.mxml
new file mode 100644
index 0000000..62c2d72
--- /dev/null
+++ b/TourDeFlex/TourDeFlex3/src/apache/controls/MaskedTextInputExample.mxml
@@ -0,0 +1,34 @@
+<?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.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns:mx="library://ns.adobe.com/flex/mx"
+ xmlns:x="http://flex.apache.org/experimental/ns">
+
+ <s:Panel title="Millisecond Format" width="100%" height="100%" borderAlpha="0.15">
+ <s:layout>
+ <s:VerticalLayout paddingLeft="20" paddingTop="20" gap="10" />
+ </s:layout>
+ <s:HGroup verticalAlign="bottom">
+ <s:Label text="Phone Number:" />
+ <x:MaskedTextInput maskText="####-####" />
+ </s:HGroup>
+ </s:Panel>
+</s:Application>