Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 16DCE200C4E for ; Fri, 21 Apr 2017 18:35:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 15BC7160B86; Fri, 21 Apr 2017 16:35:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 36B9F160BB6 for ; Fri, 21 Apr 2017 18:35:40 +0200 (CEST) Received: (qmail 80846 invoked by uid 500); 21 Apr 2017 16:35:39 -0000 Mailing-List: contact commits-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list commits@flex.apache.org Received: (qmail 77341 invoked by uid 99); 21 Apr 2017 16:35:27 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Apr 2017 16:35:27 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DEF3BF4A03; Fri, 21 Apr 2017 16:35:25 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: aharui@apache.org To: commits@flex.apache.org Date: Fri, 21 Apr 2017 16:35:56 -0000 Message-Id: <23f628f6db21494991f9a6c4528bc7a8@git.apache.org> In-Reply-To: <945f4672e8e54779b9ffd784a3a9ec71@git.apache.org> References: <945f4672e8e54779b9ffd784a3a9ec71@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [32/43] git commit: [flex-asjs] [refs/heads/dual] - two common date formats archived-at: Fri, 21 Apr 2017 16:35:41 -0000 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 Authored: Mon Apr 17 14:24:35 2017 +1000 Committer: Justin Mclean 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"; + } + } +}