Hi Justin,

What is the scenario where everybody will need this code?

-Alex

On 4/16/17, 9:24 PM, "jmcl...@apache.org" <jmcl...@apache.org> wrote:

>replace existing format bead if it exists
>
>
>Project: 
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>.apache.org%2Frepos%2Fasf%2Fflex-asjs%2Frepo&data=02%7C01%7C%7C3ef9e6a946c
>4448e037308d48549af37%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6362799
>98897039088&sdata=qaow7yDdU0PKcYss05ng7b7q4SXBnlyvp6b%2BOjCPGgU%3D&reserve
>d=0
>Commit: 
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>.apache.org%2Frepos%2Fasf%2Fflex-asjs%2Fcommit%2F4842fa7a&data=02%7C01%7C%
>7C3ef9e6a946c4448e037308d48549af37%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%
>7C0%7C636279998897039088&sdata=gp5gH75saXS6x6mq8Q5L4ut3aQHCABcc%2BvN5s59fp
>2k%3D&reserved=0
>Tree: 
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>.apache.org%2Frepos%2Fasf%2Fflex-asjs%2Ftree%2F4842fa7a&data=02%7C01%7C%7C
>3ef9e6a946c4448e037308d48549af37%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C
>0%7C636279998897039088&sdata=20%2FVuKlRYdoA1ZIobKbCUMggT1zvnkMnn5FBWWktjeI
>%3D&reserved=0
>Diff: 
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>.apache.org%2Frepos%2Fasf%2Fflex-asjs%2Fdiff%2F4842fa7a&data=02%7C01%7C%7C
>3ef9e6a946c4448e037308d48549af37%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C
>0%7C636279998897039088&sdata=lfk9qgcbF3yI9ncMjkIykEmloaHMnNB8tytiirKpxAU%3
>D&reserved=0
>
>Branch: refs/heads/develop
>Commit: 4842fa7a15a756026dcfa1ca4262039fded2db59
>Parents: 23f3c5a
>Author: Justin Mclean <jmcl...@apache.org>
>Authored: Mon Apr 17 14:22:32 2017 +1000
>Committer: Justin Mclean <jmcl...@apache.org>
>Committed: Mon Apr 17 14:22:32 2017 +1000
>
>----------------------------------------------------------------------
> .../main/flex/org/apache/flex/html/DateField.as | 22 ++++++++++++++++++++
> .../main/flex/org/apache/flex/html/DateField.as | 22 ++++++++++++++++++++
> 2 files changed, 44 insertions(+)
>----------------------------------------------------------------------
>
>
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>.apache.org%2Frepos%2Fasf%2Fflex-asjs%2Fblob%2F4842fa7a%2Fframeworks%2Fpro
>jects%2FBasic%2Fsrc%2Fmain%2Fflex%2Forg%2Fapache%2Fflex%2Fhtml%2FDateField
>.as&data=02%7C01%7C%7C3ef9e6a946c4448e037308d48549af37%7Cfa7b1b5a7b3443879
>4aed2c178decee1%7C0%7C0%7C636279998897039088&sdata=lZFZ8SMVm6ygKxckfrk%2Bs
>Atp1d%2F9vNMXYi7eXUbYgqw%3D&reserved=0
>----------------------------------------------------------------------
>diff --git 
>a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/DateField.a
>s 
>b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/DateField.a
>s
>index f46e453..ca142ba 100644
>--- 
>a/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/DateField.a
>s
>+++ 
>b/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/DateField.a
>s
>@@ -20,6 +20,7 @@ package org.apache.flex.html
> {
>       import org.apache.flex.core.IBead;
>       import org.apache.flex.core.IDateChooserModel;
>+      import org.apache.flex.core.IFormatBead;
>       import org.apache.flex.core.UIBase;
>       import org.apache.flex.core.ValuesManager;
>       
>@@ -74,6 +75,27 @@ package org.apache.flex.html
>             
>                       super.addedToParent();
>               }
>+
>+              /**
>+               *  Replace existing format bead if it exists.
>+               *
>+               *  @copy org.apache.flex.core.IStrand#addBead()
>+               *
>+               *  @langversion 3.0
>+               *  @playerversion Flash 10.2
>+               *  @playerversion AIR 2.6
>+               *  @productversion FlexJS 0.0
>+               */
>+              override public function addBead(bead:IBead):void
>+              {
>+                      if (bead is IFormatBead) {
>+                              var formatBead:IBead = 
>getBeadByType(IFormatBead);
>+                              if (formatBead != null) {
>+                                      removeBead(formatBead);
>+                              }
>+                      }
>+                      super.addBead(bead);
>+              }
>               
>               /**
>                *  The currently selected date (or null if no date has been 
> selected).
>
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgit-wip-us
>.apache.org%2Frepos%2Fasf%2Fflex-asjs%2Fblob%2F4842fa7a%2Fframeworks%2Fpro
>jects%2FHTML%2Fsrc%2Fmain%2Fflex%2Forg%2Fapache%2Fflex%2Fhtml%2FDateField.
>as&data=02%7C01%7C%7C3ef9e6a946c4448e037308d48549af37%7Cfa7b1b5a7b34438794
>aed2c178decee1%7C0%7C0%7C636279998897039088&sdata=5Lo6umoXpjQFdmhsQ8WtnByf
>YJhYKGT05zk28c69xe0%3D&reserved=0
>----------------------------------------------------------------------
>diff --git 
>a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/DateField.as
> 
>b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/DateField.as
>index f33db9d..5b73db0 100644
>--- 
>a/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/DateField.as
>+++ 
>b/frameworks/projects/HTML/src/main/flex/org/apache/flex/html/DateField.as
>@@ -20,6 +20,7 @@ package org.apache.flex.html
> {
>       import org.apache.flex.core.IBead;
>       import org.apache.flex.core.IDateChooserModel;
>+      import org.apache.flex.core.IFormatBead;
>       import org.apache.flex.core.UIBase;
>       import org.apache.flex.core.ValuesManager;
>       
>@@ -75,6 +76,27 @@ package org.apache.flex.html
>             
>                       super.addedToParent();
>               }
>+
>+              /**
>+               *  Replace existing format bead if it exists.
>+               *
>+               *  @copy org.apache.flex.core.IStrand#addBead()
>+               *
>+               *  @langversion 3.0
>+               *  @playerversion Flash 10.2
>+               *  @playerversion AIR 2.6
>+               *  @productversion FlexJS 0.0
>+               */
>+              override public function addBead(bead:IBead):void
>+              {
>+                      if (bead is IFormatBead) {
>+                              var formatBead:IBead = 
>getBeadByType(IFormatBead);
>+                              if (formatBead != null) {
>+                                      removeBead(formatBead);
>+                              }
>+                      }
>+                      super.addBead(bead);
>+              }
>               
>               /**
>                *  The currently selected date (or null if no date has been 
> selected).
>

Reply via email to