flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [32/43] git commit: [flex-asjs] [refs/heads/dual] - two common date formats
Date Fri, 21 Apr 2017 16:35:56 GMT
two common date formats


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

Branch: refs/heads/dual
Commit: e8be4fc760cc5ed2a58f0f0cafd2de2f950e0aac
Parents: edd2783
Author: Justin Mclean <jmclean@apache.org>
Authored: Mon Apr 17 14:24:35 2017 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Mon Apr 17 14:24:35 2017 +1000

----------------------------------------------------------------------
 .../html/accessories/DateFormatDDMMYYYYBead.as  | 46 ++++++++++++++++++++
 .../html/accessories/DateFormatYYYYMMDDBead.as  | 46 ++++++++++++++++++++
 2 files changed, 92 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e8be4fc7/frameworks/projects/Formatters/src/main/flex/org/apache/flex/html/accessories/DateFormatDDMMYYYYBead.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/src/main/flex/org/apache/flex/html/accessories/DateFormatDDMMYYYYBead.as
b/frameworks/projects/Formatters/src/main/flex/org/apache/flex/html/accessories/DateFormatDDMMYYYYBead.as
new file mode 100644
index 0000000..3af9332
--- /dev/null
+++ b/frameworks/projects/Formatters/src/main/flex/org/apache/flex/html/accessories/DateFormatDDMMYYYYBead.as
@@ -0,0 +1,46 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.html.accessories
+{
+	import org.apache.flex.html.accessories.SimpleDateFormatBead;
+	
+	/**
+	 * The DateFormatBead class formats the display of a DateField using MM/DD/YYYY format.
+     * 
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 */
+	public class DateFormatDDMMYYYYBead extends SimpleDateFormatBead
+	{
+		/**
+		 * constructor.
+		 *  
+		 *  @langversion 3.0
+		 *  @playerversion Flash 10.2
+		 *  @playerversion AIR 2.6
+		 *  @productversion FlexJS 0.0
+		 */
+		public function DateFormatDDMMYYYYBead()
+		{
+			format = "DD/MM/YYYY";
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/e8be4fc7/frameworks/projects/Formatters/src/main/flex/org/apache/flex/html/accessories/DateFormatYYYYMMDDBead.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Formatters/src/main/flex/org/apache/flex/html/accessories/DateFormatYYYYMMDDBead.as
b/frameworks/projects/Formatters/src/main/flex/org/apache/flex/html/accessories/DateFormatYYYYMMDDBead.as
new file mode 100644
index 0000000..ac0fe28
--- /dev/null
+++ b/frameworks/projects/Formatters/src/main/flex/org/apache/flex/html/accessories/DateFormatYYYYMMDDBead.as
@@ -0,0 +1,46 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  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.html.accessories
+{
+	import org.apache.flex.html.accessories.SimpleDateFormatBead;
+	
+	/**
+	 * The DateFormatBead class formats the display of a DateField using MM/DD/YYYY format.
+     * 
+	 *  @langversion 3.0
+	 *  @playerversion Flash 10.2
+	 *  @playerversion AIR 2.6
+	 *  @productversion FlexJS 0.0
+	 */
+	public class DateFormatYYYYMMDDBead extends SimpleDateFormatBead
+	{
+        /**
+         * constructor.
+         *
+         *  @langversion 3.0
+         *  @playerversion Flash 10.2
+         *  @playerversion AIR 2.6
+         *  @productversion FlexJS 0.0
+         */
+        public function DateFormatYYYYMMDDBead()
+		{
+            format = "YYYY-MM-DD";
+        }
+    }
+}


Mime
View raw message