You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Maria Jose Esteve <mj...@iest.com> on 2021/01/04 03:49:07 UTC

Error extending bead Disabled

Hello,
I'm getting an error that I can't fix when extending bead Jewel Disabled:

interface method addEventListener in interface IEventDispatcher is implemented with an incompatible signature in class DisabledToolTip
interface method removeEventListener in interface IEventDispatcher is implemented with an incompatible signature in class DisabledToolTip
interface method dispatchEvent in interface IEventDispatcher is implemented with an incompatible signature in class DisabledToolTip

It is not the first time I have encountered this error and it has only been fixed when I create a copy of the main class and extend it.

package com.xxx.xxx.jewel.beads.controls
{

    import org.apache.royale.core.IToolTipBead;
    import org.apache.royale.jewel.beads.controls.Disabled;

    COMPILE::JS
    public class DisabledToolTip extends Disabled
    {

        public function DisabledToolTip()
        {
            super();
        }

        private var _beadToolTip:IToolTipBead;
        public function set beadToolTip(value:IToolTipBead):void
        {
            _beadToolTip = value;
        }

        override protected function updateHost():void
        {
            super.updateHost();

            if(disabled) {
                if(_beadToolTip) {
                    _beadToolTip.removeTip();
                }
            }
        }
    }

    COMPILE::SWF
    public class DisabledToolTip extends Disabled
    {
    public function DisabledToolTip()
    {
        super();
    }
    }
}

Any ideas?
Thx.
Hiedra.

Re: Error extending bead Disabled

Posted by Carlos Rovira <ca...@apache.org>.
Thanks Edward for sharing that list, very helpful,
I'll go over that beads and see what needs to be fixed.

El lun, 4 ene 2021 a las 11:03, Edward Stangler (<es...@bradmark.com>)
escribió:

>
> FWIW, I haven't tested these, but the following are Jewel classes with
> "[Bindable" that don't extend the appropriate class and are candidates
> for further testing:
>
>     org.apache.royale.jewel.beads.controls.Badge
>
> org.apache.royale.jewel.beads.controls.combobox.ComboBoxListCloseOnClick
>
>
> org.apache.royale.jewel.beads.controls.datechooser.DateChooserDateRangeRestriction
>
>
> org.apache.royale.jewel.beads.controls.datefield.DateFieldDateRangeRestriction
>     org.apache.royale.jewel.beads.controls.Disabled
>     org.apache.royale.jewel.beads.controls.textinput.SearchFilterForList
>     org.apache.royale.jewel.beads.controls.button.InputButtonSize
>     org.apache.royale.jewel.beads.controls.textinput.TextPrompt
>     org.apache.royale.jewel.beads.controls.ToolTip
>     org.apache.royale.jewel.beads.layouts.TileHorizontalLayout
>     org.apache.royale.jewel.beads.layouts.TileVerticalLayout
>     org.apache.royale.jewel.beads.models.ArrayListSelectionModel
>
> Note that some, like ArrayListSelectionModel, may be implementing the
> EventDispatcher stuff themselves and might not be affected.
>
>
> On 1/4/2021 3:01 AM, Carlos Rovira wrote:
> > Hi,
> >
> > this seems to me like a bug, or something to work on the framework.
> Thanks
> > both to signal. I think I can solve the concrete Disable problem
> extending
> > from DispatcherBead, but hope others can give us some thoughts about this
> > problem and if it can be solved in other ways for other cases.
> >
> >
> > El lun, 4 ene 2021 a las 9:49, Maria Jose Esteve
> > escribió:
> >
> >> Hi Edward,
> >> Thanks for answering. If this is so ... how can I do it then?
> >> Has the same situation been given to you? Could you give me an example
> of
> >> how I should continue?
> >>
> >> Thx.
> >> Hiedra.
> >>
> >> -----Mensaje original-----
> >> De: Edward Stangler
> >> Enviado el: lunes, 4 de enero de 2021 6:31
> >> Para: dev@royale.apache.org
> >> Asunto: Re: Error extending bead Disabled
> >>
> >>
> >> Jewel Disabled (the parent class) needs to extend DispatcherBead
> (instead
> >> of Bead) or EventDispatcher.
> >>
> >> My guess is that it's the "[Bindable]" part in Disabled causing the
> >> requirement.  Only happens if Disabled is in a library.
> >>
> >>
> >>
> >> On 1/3/2021 9:50 PM, Maria Jose Esteve wrote:
> >>> Hello,
> >>> I'm getting an error that I can't fix when extending bead Jewel
> Disabled:
> >>>
> >>> interface method addEventListener in interface IEventDispatcher is
> >>> implemented with an incompatible signature in class DisabledToolTip
> >>> interface method removeEventListener in interface IEventDispatcher is
> >>> implemented with an incompatible signature in class DisabledToolTip
> >>> interface method dispatchEvent in interface IEventDispatcher is
> >>> implemented with an incompatible signature in class DisabledToolTip
> >>>
> >>> It is not the first time I have encountered this error and it has only
> >> been fixed when I create a copy of the main class and extend it.
> >>> package com.xxx.xxx.jewel.beads.controls {
> >>>
> >>>     import org.apache.royale.core.IToolTipBead;
> >>>     import org.apache.royale.jewel.beads.controls.Disabled;
> >>>
> >>>     COMPILE::JS
> >>>     public class DisabledToolTip extends Disabled
> >>>     {
> >>>
> >>>         public function DisabledToolTip()
> >>>         {
> >>>             super();
> >>>         }
> >>>
> >>>         private var _beadToolTip:IToolTipBead;
> >>>         public function set beadToolTip(value:IToolTipBead):void
> >>>         {
> >>>             _beadToolTip = value;
> >>>         }
> >>>
> >>>         override protected function updateHost():void
> >>>         {
> >>>             super.updateHost();
> >>>
> >>>             if(disabled) {
> >>>                 if(_beadToolTip) {
> >>>                     _beadToolTip.removeTip();
> >>>                 }
> >>>             }
> >>>         }
> >>>     }
> >>>
> >>>     COMPILE::SWF
> >>>     public class DisabledToolTip extends Disabled
> >>>     {
> >>>     public function DisabledToolTip()
> >>>     {
> >>>         super();
> >>>     }
> >>>     }
> >>> }
> >>>
> >>> Any ideas?
> >>> Thx.
> >>> Hiedra.
> >>>
> >>
>
>

-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

Re: Error extending bead Disabled

Posted by Edward Stangler <es...@bradmark.com>.
FWIW, I haven't tested these, but the following are Jewel classes with
"[Bindable" that don't extend the appropriate class and are candidates
for further testing:

    org.apache.royale.jewel.beads.controls.Badge
    org.apache.royale.jewel.beads.controls.combobox.ComboBoxListCloseOnClick
   
org.apache.royale.jewel.beads.controls.datechooser.DateChooserDateRangeRestriction
   
org.apache.royale.jewel.beads.controls.datefield.DateFieldDateRangeRestriction
    org.apache.royale.jewel.beads.controls.Disabled
    org.apache.royale.jewel.beads.controls.textinput.SearchFilterForList
    org.apache.royale.jewel.beads.controls.button.InputButtonSize
    org.apache.royale.jewel.beads.controls.textinput.TextPrompt
    org.apache.royale.jewel.beads.controls.ToolTip
    org.apache.royale.jewel.beads.layouts.TileHorizontalLayout
    org.apache.royale.jewel.beads.layouts.TileVerticalLayout
    org.apache.royale.jewel.beads.models.ArrayListSelectionModel

Note that some, like ArrayListSelectionModel, may be implementing the
EventDispatcher stuff themselves and might not be affected.


On 1/4/2021 3:01 AM, Carlos Rovira wrote:
> Hi,
>
> this seems to me like a bug, or something to work on the framework. Thanks
> both to signal. I think I can solve the concrete Disable problem extending
> from DispatcherBead, but hope others can give us some thoughts about this
> problem and if it can be solved in other ways for other cases.
>
>
> El lun, 4 ene 2021 a las 9:49, Maria Jose Esteve
> escribió:
>
>> Hi Edward,
>> Thanks for answering. If this is so ... how can I do it then?
>> Has the same situation been given to you? Could you give me an example of
>> how I should continue?
>>
>> Thx.
>> Hiedra.
>>
>> -----Mensaje original-----
>> De: Edward Stangler
>> Enviado el: lunes, 4 de enero de 2021 6:31
>> Para: dev@royale.apache.org
>> Asunto: Re: Error extending bead Disabled
>>
>>
>> Jewel Disabled (the parent class) needs to extend DispatcherBead (instead
>> of Bead) or EventDispatcher.
>>
>> My guess is that it's the "[Bindable]" part in Disabled causing the
>> requirement.  Only happens if Disabled is in a library.
>>
>>
>>
>> On 1/3/2021 9:50 PM, Maria Jose Esteve wrote:
>>> Hello,
>>> I'm getting an error that I can't fix when extending bead Jewel Disabled:
>>>
>>> interface method addEventListener in interface IEventDispatcher is
>>> implemented with an incompatible signature in class DisabledToolTip
>>> interface method removeEventListener in interface IEventDispatcher is
>>> implemented with an incompatible signature in class DisabledToolTip
>>> interface method dispatchEvent in interface IEventDispatcher is
>>> implemented with an incompatible signature in class DisabledToolTip
>>>
>>> It is not the first time I have encountered this error and it has only
>> been fixed when I create a copy of the main class and extend it.
>>> package com.xxx.xxx.jewel.beads.controls {
>>>
>>>     import org.apache.royale.core.IToolTipBead;
>>>     import org.apache.royale.jewel.beads.controls.Disabled;
>>>
>>>     COMPILE::JS
>>>     public class DisabledToolTip extends Disabled
>>>     {
>>>
>>>         public function DisabledToolTip()
>>>         {
>>>             super();
>>>         }
>>>
>>>         private var _beadToolTip:IToolTipBead;
>>>         public function set beadToolTip(value:IToolTipBead):void
>>>         {
>>>             _beadToolTip = value;
>>>         }
>>>
>>>         override protected function updateHost():void
>>>         {
>>>             super.updateHost();
>>>
>>>             if(disabled) {
>>>                 if(_beadToolTip) {
>>>                     _beadToolTip.removeTip();
>>>                 }
>>>             }
>>>         }
>>>     }
>>>
>>>     COMPILE::SWF
>>>     public class DisabledToolTip extends Disabled
>>>     {
>>>     public function DisabledToolTip()
>>>     {
>>>         super();
>>>     }
>>>     }
>>> }
>>>
>>> Any ideas?
>>> Thx.
>>> Hiedra.
>>>
>>


Re: Error extending bead Disabled

Posted by Carlos Rovira <ca...@apache.org>.
ListView is more generalist and multiplarform bead so its normal you need
to do it while extending it


El El mar, 5 ene 2021 a las 12:46, Maria Jose Esteve <mj...@iest.com>
escribió:

> You're absolutely right Carlos, I don't know how I didn't fall before,
> thank you.
> (I'm going to remove it because it really is not necessary, it was one of
> many tests I did, I think I remember that I needed this when extending the
> ListView)
>
> Everything is working now as expected.
> Thx.
> Hiedra
>
> -----Mensaje original-----
> De: Carlos Rovira <ca...@apache.org>
> Enviado el: martes, 5 de enero de 2021 11:32
> Para: Apache Royale Development <de...@royale.apache.org>
> Asunto: Re: Error extending bead Disabled
>
> Hi Maria Jose,
>
> I think the problem looking to the implementation you shared in the first
> email of this thread can be that you have a double platform implementation:
> Code for JS and code for SWF. If you add a function to the JS part, you
> need to add as well to the SWF.
>
> HTH
>
> El lun, 4 ene 2021 a las 11:44, Maria Jose Esteve (<mj...@iest.com>)
> escribió:
>
> > Sorry, I didn't make it clear that the error occurs when I specify a
> > value for the "beadToolTip" property
> >
> > Hiedra
> >
> > -----Mensaje original-----
> > De: Maria Jose Esteve <mj...@iest.com> Enviado el: lunes, 4 de
> > enero de 2021 11:41
> > Para: dev@royale.apache.org
> > Asunto: RE: Error extending bead Disabled
> >
> > Thanks Carlos, after your modification I have been able to extend the
> > bead but it does not recognize the added properties:
> >
> > <j:beads>
> >       <j:ToolTip localId="tb_filter_tt" toolTip="{tb_filter.selected ?
> > disableFilterString :enableFilterString}"/>
> >       <wp:DisabledToolTip localId="tb_filter_dis" disabled="false"
> > beadToolTip="{tb_filter_tt}"/> </j:beads>
> >
> > col: 94 Error: This attribute is unexpected. It will be ignored.
> > <wp:DisabledToolTip localId="tb_filter_dis" disabled="false"
> > beadToolTip="{tb_filter_tt}"/>
> >
> > Do I have to declare ownership in any special way? What am I doing wrong?
> >
> > Thx
> > Hiedra
> >
> > -----Mensaje original-----
> > De: Carlos Rovira <ca...@apache.org> Enviado el: lunes, 4 de
> > enero de 2021 10:00
> > Para: Apache Royale Development <de...@royale.apache.org>
> > Asunto: Re: Error extending bead Disabled
> >
> > Hi,
> >
> > this seems to me like a bug, or something to work on the framework.
> > Thanks both to signal. I think I can solve the concrete Disable
> > problem extending from DispatcherBead, but hope others can give us
> > some thoughts about this problem and if it can be solved in other ways
> for other cases.
> >
> >
> > El lun, 4 ene 2021 a las 9:49, Maria Jose Esteve (<mj...@iest.com>)
> > escribió:
> >
> > > Hi Edward,
> > > Thanks for answering. If this is so ... how can I do it then?
> > > Has the same situation been given to you? Could you give me an
> > > example of how I should continue?
> > >
> > > Thx.
> > > Hiedra.
> > >
> > > -----Mensaje original-----
> > > De: Edward Stangler <es...@bradmark.com> Enviado el: lunes, 4 de
> > > enero de 2021 6:31
> > > Para: dev@royale.apache.org
> > > Asunto: Re: Error extending bead Disabled
> > >
> > >
> > > Jewel Disabled (the parent class) needs to extend DispatcherBead
> > > (instead of Bead) or EventDispatcher.
> > >
> > > My guess is that it's the "[Bindable]" part in Disabled causing the
> > > requirement.  Only happens if Disabled is in a library.
> > >
> > >
> > >
> > > On 1/3/2021 9:50 PM, Maria Jose Esteve wrote:
> > > > Hello,
> > > > I'm getting an error that I can't fix when extending bead Jewel
> > Disabled:
> > > >
> > > > interface method addEventListener in interface IEventDispatcher is
> > > > implemented with an incompatible signature in class
> > > > DisabledToolTip interface method removeEventListener in interface
> > > > IEventDispatcher is implemented with an incompatible signature in
> > > > class DisabledToolTip interface method dispatchEvent in interface
> > > > IEventDispatcher is implemented with an incompatible signature in
> > > > class DisabledToolTip
> > > >
> > > > It is not the first time I have encountered this error and it has
> > > > only
> > > been fixed when I create a copy of the main class and extend it.
> > > >
> > > > package com.xxx.xxx.jewel.beads.controls {
> > > >
> > > >     import org.apache.royale.core.IToolTipBead;
> > > >     import org.apache.royale.jewel.beads.controls.Disabled;
> > > >
> > > >     COMPILE::JS
> > > >     public class DisabledToolTip extends Disabled
> > > >     {
> > > >
> > > >         public function DisabledToolTip()
> > > >         {
> > > >             super();
> > > >         }
> > > >
> > > >         private var _beadToolTip:IToolTipBead;
> > > >         public function set beadToolTip(value:IToolTipBead):void
> > > >         {
> > > >             _beadToolTip = value;
> > > >         }
> > > >
> > > >         override protected function updateHost():void
> > > >         {
> > > >             super.updateHost();
> > > >
> > > >             if(disabled) {
> > > >                 if(_beadToolTip) {
> > > >                     _beadToolTip.removeTip();
> > > >                 }
> > > >             }
> > > >         }
> > > >     }
> > > >
> > > >     COMPILE::SWF
> > > >     public class DisabledToolTip extends Disabled
> > > >     {
> > > >     public function DisabledToolTip()
> > > >     {
> > > >         super();
> > > >     }
> > > >     }
> > > > }
> > > >
> > > > Any ideas?
> > > > Thx.
> > > > Hiedra.
> > > >
> > >
> > >
> >
> > --
> > Carlos Rovira
> > Apache Member & Apache Royale PMC
> > *Apache Software Foundation*
> > http://about.me/carlosrovira
> >
>
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>
-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

RE: Error extending bead Disabled

Posted by Maria Jose Esteve <mj...@iest.com>.
You're absolutely right Carlos, I don't know how I didn't fall before, thank you.
(I'm going to remove it because it really is not necessary, it was one of many tests I did, I think I remember that I needed this when extending the ListView)

Everything is working now as expected.
Thx.
Hiedra

-----Mensaje original-----
De: Carlos Rovira <ca...@apache.org> 
Enviado el: martes, 5 de enero de 2021 11:32
Para: Apache Royale Development <de...@royale.apache.org>
Asunto: Re: Error extending bead Disabled

Hi Maria Jose,

I think the problem looking to the implementation you shared in the first email of this thread can be that you have a double platform implementation:
Code for JS and code for SWF. If you add a function to the JS part, you need to add as well to the SWF.

HTH

El lun, 4 ene 2021 a las 11:44, Maria Jose Esteve (<mj...@iest.com>)
escribió:

> Sorry, I didn't make it clear that the error occurs when I specify a 
> value for the "beadToolTip" property
>
> Hiedra
>
> -----Mensaje original-----
> De: Maria Jose Esteve <mj...@iest.com> Enviado el: lunes, 4 de 
> enero de 2021 11:41
> Para: dev@royale.apache.org
> Asunto: RE: Error extending bead Disabled
>
> Thanks Carlos, after your modification I have been able to extend the 
> bead but it does not recognize the added properties:
>
> <j:beads>
>       <j:ToolTip localId="tb_filter_tt" toolTip="{tb_filter.selected ?
> disableFilterString :enableFilterString}"/>
>       <wp:DisabledToolTip localId="tb_filter_dis" disabled="false"
> beadToolTip="{tb_filter_tt}"/> </j:beads>
>
> col: 94 Error: This attribute is unexpected. It will be ignored.
> <wp:DisabledToolTip localId="tb_filter_dis" disabled="false"
> beadToolTip="{tb_filter_tt}"/>
>
> Do I have to declare ownership in any special way? What am I doing wrong?
>
> Thx
> Hiedra
>
> -----Mensaje original-----
> De: Carlos Rovira <ca...@apache.org> Enviado el: lunes, 4 de 
> enero de 2021 10:00
> Para: Apache Royale Development <de...@royale.apache.org>
> Asunto: Re: Error extending bead Disabled
>
> Hi,
>
> this seems to me like a bug, or something to work on the framework. 
> Thanks both to signal. I think I can solve the concrete Disable 
> problem extending from DispatcherBead, but hope others can give us 
> some thoughts about this problem and if it can be solved in other ways for other cases.
>
>
> El lun, 4 ene 2021 a las 9:49, Maria Jose Esteve (<mj...@iest.com>)
> escribió:
>
> > Hi Edward,
> > Thanks for answering. If this is so ... how can I do it then?
> > Has the same situation been given to you? Could you give me an 
> > example of how I should continue?
> >
> > Thx.
> > Hiedra.
> >
> > -----Mensaje original-----
> > De: Edward Stangler <es...@bradmark.com> Enviado el: lunes, 4 de 
> > enero de 2021 6:31
> > Para: dev@royale.apache.org
> > Asunto: Re: Error extending bead Disabled
> >
> >
> > Jewel Disabled (the parent class) needs to extend DispatcherBead 
> > (instead of Bead) or EventDispatcher.
> >
> > My guess is that it's the "[Bindable]" part in Disabled causing the 
> > requirement.  Only happens if Disabled is in a library.
> >
> >
> >
> > On 1/3/2021 9:50 PM, Maria Jose Esteve wrote:
> > > Hello,
> > > I'm getting an error that I can't fix when extending bead Jewel
> Disabled:
> > >
> > > interface method addEventListener in interface IEventDispatcher is 
> > > implemented with an incompatible signature in class 
> > > DisabledToolTip interface method removeEventListener in interface 
> > > IEventDispatcher is implemented with an incompatible signature in 
> > > class DisabledToolTip interface method dispatchEvent in interface 
> > > IEventDispatcher is implemented with an incompatible signature in 
> > > class DisabledToolTip
> > >
> > > It is not the first time I have encountered this error and it has 
> > > only
> > been fixed when I create a copy of the main class and extend it.
> > >
> > > package com.xxx.xxx.jewel.beads.controls {
> > >
> > >     import org.apache.royale.core.IToolTipBead;
> > >     import org.apache.royale.jewel.beads.controls.Disabled;
> > >
> > >     COMPILE::JS
> > >     public class DisabledToolTip extends Disabled
> > >     {
> > >
> > >         public function DisabledToolTip()
> > >         {
> > >             super();
> > >         }
> > >
> > >         private var _beadToolTip:IToolTipBead;
> > >         public function set beadToolTip(value:IToolTipBead):void
> > >         {
> > >             _beadToolTip = value;
> > >         }
> > >
> > >         override protected function updateHost():void
> > >         {
> > >             super.updateHost();
> > >
> > >             if(disabled) {
> > >                 if(_beadToolTip) {
> > >                     _beadToolTip.removeTip();
> > >                 }
> > >             }
> > >         }
> > >     }
> > >
> > >     COMPILE::SWF
> > >     public class DisabledToolTip extends Disabled
> > >     {
> > >     public function DisabledToolTip()
> > >     {
> > >         super();
> > >     }
> > >     }
> > > }
> > >
> > > Any ideas?
> > > Thx.
> > > Hiedra.
> > >
> >
> >
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>


--
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

Re: Error extending bead Disabled

Posted by Carlos Rovira <ca...@apache.org>.
Hi,

just went over all that beads and I left out the change:

- "org.apache.royale.jewel.beads.models.ArrayListSelectionModel" : This one
as you said implements EventDispatcher itself

- "org.apache.royale.jewel.beads.layouts.TileHorizontalLayout" and
"org.apache.royale.jewel.beads.layouts.TileVerticalLayout" has "LayoutBase"
as parent that extends "Bead". Don't have clear if layouts should extend
"DispatcherBead" instead of Bead, although we have bindable properties.
Thoughts?




El mar, 5 ene 2021 a las 11:31, Carlos Rovira (<ca...@apache.org>)
escribió:

> Hi Maria Jose,
>
> I think the problem looking to the implementation you shared in the first
> email of this thread can be that you have a double platform implementation:
> Code for JS and code for SWF. If you add a function to the JS part, you
> need to add as well to the SWF.
>
> HTH
>
> El lun, 4 ene 2021 a las 11:44, Maria Jose Esteve (<mj...@iest.com>)
> escribió:
>
>> Sorry, I didn't make it clear that the error occurs when I specify a
>> value for the "beadToolTip" property
>>
>> Hiedra
>>
>> -----Mensaje original-----
>> De: Maria Jose Esteve <mj...@iest.com>
>> Enviado el: lunes, 4 de enero de 2021 11:41
>> Para: dev@royale.apache.org
>> Asunto: RE: Error extending bead Disabled
>>
>> Thanks Carlos, after your modification I have been able to extend the
>> bead but it does not recognize the added properties:
>>
>> <j:beads>
>>       <j:ToolTip localId="tb_filter_tt" toolTip="{tb_filter.selected ?
>> disableFilterString :enableFilterString}"/>
>>       <wp:DisabledToolTip localId="tb_filter_dis" disabled="false"
>> beadToolTip="{tb_filter_tt}"/> </j:beads>
>>
>> col: 94 Error: This attribute is unexpected. It will be ignored.
>> <wp:DisabledToolTip localId="tb_filter_dis" disabled="false"
>> beadToolTip="{tb_filter_tt}"/>
>>
>> Do I have to declare ownership in any special way? What am I doing wrong?
>>
>> Thx
>> Hiedra
>>
>> -----Mensaje original-----
>> De: Carlos Rovira <ca...@apache.org> Enviado el: lunes, 4 de
>> enero de 2021 10:00
>> Para: Apache Royale Development <de...@royale.apache.org>
>> Asunto: Re: Error extending bead Disabled
>>
>> Hi,
>>
>> this seems to me like a bug, or something to work on the framework.
>> Thanks both to signal. I think I can solve the concrete Disable problem
>> extending from DispatcherBead, but hope others can give us some thoughts
>> about this problem and if it can be solved in other ways for other cases.
>>
>>
>> El lun, 4 ene 2021 a las 9:49, Maria Jose Esteve (<mj...@iest.com>)
>> escribió:
>>
>> > Hi Edward,
>> > Thanks for answering. If this is so ... how can I do it then?
>> > Has the same situation been given to you? Could you give me an example
>> > of how I should continue?
>> >
>> > Thx.
>> > Hiedra.
>> >
>> > -----Mensaje original-----
>> > De: Edward Stangler <es...@bradmark.com> Enviado el: lunes, 4 de
>> > enero de 2021 6:31
>> > Para: dev@royale.apache.org
>> > Asunto: Re: Error extending bead Disabled
>> >
>> >
>> > Jewel Disabled (the parent class) needs to extend DispatcherBead
>> > (instead of Bead) or EventDispatcher.
>> >
>> > My guess is that it's the "[Bindable]" part in Disabled causing the
>> > requirement.  Only happens if Disabled is in a library.
>> >
>> >
>> >
>> > On 1/3/2021 9:50 PM, Maria Jose Esteve wrote:
>> > > Hello,
>> > > I'm getting an error that I can't fix when extending bead Jewel
>> Disabled:
>> > >
>> > > interface method addEventListener in interface IEventDispatcher is
>> > > implemented with an incompatible signature in class DisabledToolTip
>> > > interface method removeEventListener in interface IEventDispatcher
>> > > is implemented with an incompatible signature in class
>> > > DisabledToolTip interface method dispatchEvent in interface
>> > > IEventDispatcher is implemented with an incompatible signature in
>> > > class DisabledToolTip
>> > >
>> > > It is not the first time I have encountered this error and it has
>> > > only
>> > been fixed when I create a copy of the main class and extend it.
>> > >
>> > > package com.xxx.xxx.jewel.beads.controls {
>> > >
>> > >     import org.apache.royale.core.IToolTipBead;
>> > >     import org.apache.royale.jewel.beads.controls.Disabled;
>> > >
>> > >     COMPILE::JS
>> > >     public class DisabledToolTip extends Disabled
>> > >     {
>> > >
>> > >         public function DisabledToolTip()
>> > >         {
>> > >             super();
>> > >         }
>> > >
>> > >         private var _beadToolTip:IToolTipBead;
>> > >         public function set beadToolTip(value:IToolTipBead):void
>> > >         {
>> > >             _beadToolTip = value;
>> > >         }
>> > >
>> > >         override protected function updateHost():void
>> > >         {
>> > >             super.updateHost();
>> > >
>> > >             if(disabled) {
>> > >                 if(_beadToolTip) {
>> > >                     _beadToolTip.removeTip();
>> > >                 }
>> > >             }
>> > >         }
>> > >     }
>> > >
>> > >     COMPILE::SWF
>> > >     public class DisabledToolTip extends Disabled
>> > >     {
>> > >     public function DisabledToolTip()
>> > >     {
>> > >         super();
>> > >     }
>> > >     }
>> > > }
>> > >
>> > > Any ideas?
>> > > Thx.
>> > > Hiedra.
>> > >
>> >
>> >
>>
>> --
>> Carlos Rovira
>> Apache Member & Apache Royale PMC
>> *Apache Software Foundation*
>> http://about.me/carlosrovira
>>
>
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>
>

-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

Re: Error extending bead Disabled

Posted by Carlos Rovira <ca...@apache.org>.
Hi Maria Jose,

I think the problem looking to the implementation you shared in the first
email of this thread can be that you have a double platform implementation:
Code for JS and code for SWF. If you add a function to the JS part, you
need to add as well to the SWF.

HTH

El lun, 4 ene 2021 a las 11:44, Maria Jose Esteve (<mj...@iest.com>)
escribió:

> Sorry, I didn't make it clear that the error occurs when I specify a value
> for the "beadToolTip" property
>
> Hiedra
>
> -----Mensaje original-----
> De: Maria Jose Esteve <mj...@iest.com>
> Enviado el: lunes, 4 de enero de 2021 11:41
> Para: dev@royale.apache.org
> Asunto: RE: Error extending bead Disabled
>
> Thanks Carlos, after your modification I have been able to extend the bead
> but it does not recognize the added properties:
>
> <j:beads>
>       <j:ToolTip localId="tb_filter_tt" toolTip="{tb_filter.selected ?
> disableFilterString :enableFilterString}"/>
>       <wp:DisabledToolTip localId="tb_filter_dis" disabled="false"
> beadToolTip="{tb_filter_tt}"/> </j:beads>
>
> col: 94 Error: This attribute is unexpected. It will be ignored.
> <wp:DisabledToolTip localId="tb_filter_dis" disabled="false"
> beadToolTip="{tb_filter_tt}"/>
>
> Do I have to declare ownership in any special way? What am I doing wrong?
>
> Thx
> Hiedra
>
> -----Mensaje original-----
> De: Carlos Rovira <ca...@apache.org> Enviado el: lunes, 4 de enero
> de 2021 10:00
> Para: Apache Royale Development <de...@royale.apache.org>
> Asunto: Re: Error extending bead Disabled
>
> Hi,
>
> this seems to me like a bug, or something to work on the framework. Thanks
> both to signal. I think I can solve the concrete Disable problem extending
> from DispatcherBead, but hope others can give us some thoughts about this
> problem and if it can be solved in other ways for other cases.
>
>
> El lun, 4 ene 2021 a las 9:49, Maria Jose Esteve (<mj...@iest.com>)
> escribió:
>
> > Hi Edward,
> > Thanks for answering. If this is so ... how can I do it then?
> > Has the same situation been given to you? Could you give me an example
> > of how I should continue?
> >
> > Thx.
> > Hiedra.
> >
> > -----Mensaje original-----
> > De: Edward Stangler <es...@bradmark.com> Enviado el: lunes, 4 de
> > enero de 2021 6:31
> > Para: dev@royale.apache.org
> > Asunto: Re: Error extending bead Disabled
> >
> >
> > Jewel Disabled (the parent class) needs to extend DispatcherBead
> > (instead of Bead) or EventDispatcher.
> >
> > My guess is that it's the "[Bindable]" part in Disabled causing the
> > requirement.  Only happens if Disabled is in a library.
> >
> >
> >
> > On 1/3/2021 9:50 PM, Maria Jose Esteve wrote:
> > > Hello,
> > > I'm getting an error that I can't fix when extending bead Jewel
> Disabled:
> > >
> > > interface method addEventListener in interface IEventDispatcher is
> > > implemented with an incompatible signature in class DisabledToolTip
> > > interface method removeEventListener in interface IEventDispatcher
> > > is implemented with an incompatible signature in class
> > > DisabledToolTip interface method dispatchEvent in interface
> > > IEventDispatcher is implemented with an incompatible signature in
> > > class DisabledToolTip
> > >
> > > It is not the first time I have encountered this error and it has
> > > only
> > been fixed when I create a copy of the main class and extend it.
> > >
> > > package com.xxx.xxx.jewel.beads.controls {
> > >
> > >     import org.apache.royale.core.IToolTipBead;
> > >     import org.apache.royale.jewel.beads.controls.Disabled;
> > >
> > >     COMPILE::JS
> > >     public class DisabledToolTip extends Disabled
> > >     {
> > >
> > >         public function DisabledToolTip()
> > >         {
> > >             super();
> > >         }
> > >
> > >         private var _beadToolTip:IToolTipBead;
> > >         public function set beadToolTip(value:IToolTipBead):void
> > >         {
> > >             _beadToolTip = value;
> > >         }
> > >
> > >         override protected function updateHost():void
> > >         {
> > >             super.updateHost();
> > >
> > >             if(disabled) {
> > >                 if(_beadToolTip) {
> > >                     _beadToolTip.removeTip();
> > >                 }
> > >             }
> > >         }
> > >     }
> > >
> > >     COMPILE::SWF
> > >     public class DisabledToolTip extends Disabled
> > >     {
> > >     public function DisabledToolTip()
> > >     {
> > >         super();
> > >     }
> > >     }
> > > }
> > >
> > > Any ideas?
> > > Thx.
> > > Hiedra.
> > >
> >
> >
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

RE: Error extending bead Disabled

Posted by Maria Jose Esteve <mj...@iest.com>.
Sorry, I didn't make it clear that the error occurs when I specify a value for the "beadToolTip" property

Hiedra

-----Mensaje original-----
De: Maria Jose Esteve <mj...@iest.com> 
Enviado el: lunes, 4 de enero de 2021 11:41
Para: dev@royale.apache.org
Asunto: RE: Error extending bead Disabled

Thanks Carlos, after your modification I have been able to extend the bead but it does not recognize the added properties:

<j:beads>
      <j:ToolTip localId="tb_filter_tt" toolTip="{tb_filter.selected ? disableFilterString :enableFilterString}"/>
      <wp:DisabledToolTip localId="tb_filter_dis" disabled="false" beadToolTip="{tb_filter_tt}"/> </j:beads>

col: 94 Error: This attribute is unexpected. It will be ignored.
<wp:DisabledToolTip localId="tb_filter_dis" disabled="false" beadToolTip="{tb_filter_tt}"/>

Do I have to declare ownership in any special way? What am I doing wrong?

Thx
Hiedra

-----Mensaje original-----
De: Carlos Rovira <ca...@apache.org> Enviado el: lunes, 4 de enero de 2021 10:00
Para: Apache Royale Development <de...@royale.apache.org>
Asunto: Re: Error extending bead Disabled

Hi,

this seems to me like a bug, or something to work on the framework. Thanks both to signal. I think I can solve the concrete Disable problem extending from DispatcherBead, but hope others can give us some thoughts about this problem and if it can be solved in other ways for other cases.


El lun, 4 ene 2021 a las 9:49, Maria Jose Esteve (<mj...@iest.com>)
escribió:

> Hi Edward,
> Thanks for answering. If this is so ... how can I do it then?
> Has the same situation been given to you? Could you give me an example 
> of how I should continue?
>
> Thx.
> Hiedra.
>
> -----Mensaje original-----
> De: Edward Stangler <es...@bradmark.com> Enviado el: lunes, 4 de 
> enero de 2021 6:31
> Para: dev@royale.apache.org
> Asunto: Re: Error extending bead Disabled
>
>
> Jewel Disabled (the parent class) needs to extend DispatcherBead 
> (instead of Bead) or EventDispatcher.
>
> My guess is that it's the "[Bindable]" part in Disabled causing the 
> requirement.  Only happens if Disabled is in a library.
>
>
>
> On 1/3/2021 9:50 PM, Maria Jose Esteve wrote:
> > Hello,
> > I'm getting an error that I can't fix when extending bead Jewel Disabled:
> >
> > interface method addEventListener in interface IEventDispatcher is 
> > implemented with an incompatible signature in class DisabledToolTip 
> > interface method removeEventListener in interface IEventDispatcher 
> > is implemented with an incompatible signature in class 
> > DisabledToolTip interface method dispatchEvent in interface 
> > IEventDispatcher is implemented with an incompatible signature in 
> > class DisabledToolTip
> >
> > It is not the first time I have encountered this error and it has 
> > only
> been fixed when I create a copy of the main class and extend it.
> >
> > package com.xxx.xxx.jewel.beads.controls {
> >
> >     import org.apache.royale.core.IToolTipBead;
> >     import org.apache.royale.jewel.beads.controls.Disabled;
> >
> >     COMPILE::JS
> >     public class DisabledToolTip extends Disabled
> >     {
> >
> >         public function DisabledToolTip()
> >         {
> >             super();
> >         }
> >
> >         private var _beadToolTip:IToolTipBead;
> >         public function set beadToolTip(value:IToolTipBead):void
> >         {
> >             _beadToolTip = value;
> >         }
> >
> >         override protected function updateHost():void
> >         {
> >             super.updateHost();
> >
> >             if(disabled) {
> >                 if(_beadToolTip) {
> >                     _beadToolTip.removeTip();
> >                 }
> >             }
> >         }
> >     }
> >
> >     COMPILE::SWF
> >     public class DisabledToolTip extends Disabled
> >     {
> >     public function DisabledToolTip()
> >     {
> >         super();
> >     }
> >     }
> > }
> >
> > Any ideas?
> > Thx.
> > Hiedra.
> >
>
>

--
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

RE: Error extending bead Disabled

Posted by Maria Jose Esteve <mj...@iest.com>.
Thanks Carlos, after your modification I have been able to extend the bead but it does not recognize the added properties:

<j:beads>
      <j:ToolTip localId="tb_filter_tt" toolTip="{tb_filter.selected ? disableFilterString :enableFilterString}"/>
      <wp:DisabledToolTip localId="tb_filter_dis" disabled="false" beadToolTip="{tb_filter_tt}"/>
</j:beads>

col: 94 Error: This attribute is unexpected. It will be ignored.
<wp:DisabledToolTip localId="tb_filter_dis" disabled="false" beadToolTip="{tb_filter_tt}"/>

Do I have to declare ownership in any special way? What am I doing wrong?

Thx
Hiedra

-----Mensaje original-----
De: Carlos Rovira <ca...@apache.org> 
Enviado el: lunes, 4 de enero de 2021 10:00
Para: Apache Royale Development <de...@royale.apache.org>
Asunto: Re: Error extending bead Disabled

Hi,

this seems to me like a bug, or something to work on the framework. Thanks both to signal. I think I can solve the concrete Disable problem extending from DispatcherBead, but hope others can give us some thoughts about this problem and if it can be solved in other ways for other cases.


El lun, 4 ene 2021 a las 9:49, Maria Jose Esteve (<mj...@iest.com>)
escribió:

> Hi Edward,
> Thanks for answering. If this is so ... how can I do it then?
> Has the same situation been given to you? Could you give me an example 
> of how I should continue?
>
> Thx.
> Hiedra.
>
> -----Mensaje original-----
> De: Edward Stangler <es...@bradmark.com> Enviado el: lunes, 4 de 
> enero de 2021 6:31
> Para: dev@royale.apache.org
> Asunto: Re: Error extending bead Disabled
>
>
> Jewel Disabled (the parent class) needs to extend DispatcherBead 
> (instead of Bead) or EventDispatcher.
>
> My guess is that it's the "[Bindable]" part in Disabled causing the 
> requirement.  Only happens if Disabled is in a library.
>
>
>
> On 1/3/2021 9:50 PM, Maria Jose Esteve wrote:
> > Hello,
> > I'm getting an error that I can't fix when extending bead Jewel Disabled:
> >
> > interface method addEventListener in interface IEventDispatcher is 
> > implemented with an incompatible signature in class DisabledToolTip 
> > interface method removeEventListener in interface IEventDispatcher 
> > is implemented with an incompatible signature in class 
> > DisabledToolTip interface method dispatchEvent in interface 
> > IEventDispatcher is implemented with an incompatible signature in 
> > class DisabledToolTip
> >
> > It is not the first time I have encountered this error and it has 
> > only
> been fixed when I create a copy of the main class and extend it.
> >
> > package com.xxx.xxx.jewel.beads.controls {
> >
> >     import org.apache.royale.core.IToolTipBead;
> >     import org.apache.royale.jewel.beads.controls.Disabled;
> >
> >     COMPILE::JS
> >     public class DisabledToolTip extends Disabled
> >     {
> >
> >         public function DisabledToolTip()
> >         {
> >             super();
> >         }
> >
> >         private var _beadToolTip:IToolTipBead;
> >         public function set beadToolTip(value:IToolTipBead):void
> >         {
> >             _beadToolTip = value;
> >         }
> >
> >         override protected function updateHost():void
> >         {
> >             super.updateHost();
> >
> >             if(disabled) {
> >                 if(_beadToolTip) {
> >                     _beadToolTip.removeTip();
> >                 }
> >             }
> >         }
> >     }
> >
> >     COMPILE::SWF
> >     public class DisabledToolTip extends Disabled
> >     {
> >     public function DisabledToolTip()
> >     {
> >         super();
> >     }
> >     }
> > }
> >
> > Any ideas?
> > Thx.
> > Hiedra.
> >
>
>

--
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

Re: Error extending bead Disabled

Posted by Carlos Rovira <ca...@apache.org>.
Hi,

this seems to me like a bug, or something to work on the framework. Thanks
both to signal. I think I can solve the concrete Disable problem extending
from DispatcherBead, but hope others can give us some thoughts about this
problem and if it can be solved in other ways for other cases.


El lun, 4 ene 2021 a las 9:49, Maria Jose Esteve (<mj...@iest.com>)
escribió:

> Hi Edward,
> Thanks for answering. If this is so ... how can I do it then?
> Has the same situation been given to you? Could you give me an example of
> how I should continue?
>
> Thx.
> Hiedra.
>
> -----Mensaje original-----
> De: Edward Stangler <es...@bradmark.com>
> Enviado el: lunes, 4 de enero de 2021 6:31
> Para: dev@royale.apache.org
> Asunto: Re: Error extending bead Disabled
>
>
> Jewel Disabled (the parent class) needs to extend DispatcherBead (instead
> of Bead) or EventDispatcher.
>
> My guess is that it's the "[Bindable]" part in Disabled causing the
> requirement.  Only happens if Disabled is in a library.
>
>
>
> On 1/3/2021 9:50 PM, Maria Jose Esteve wrote:
> > Hello,
> > I'm getting an error that I can't fix when extending bead Jewel Disabled:
> >
> > interface method addEventListener in interface IEventDispatcher is
> > implemented with an incompatible signature in class DisabledToolTip
> > interface method removeEventListener in interface IEventDispatcher is
> > implemented with an incompatible signature in class DisabledToolTip
> > interface method dispatchEvent in interface IEventDispatcher is
> > implemented with an incompatible signature in class DisabledToolTip
> >
> > It is not the first time I have encountered this error and it has only
> been fixed when I create a copy of the main class and extend it.
> >
> > package com.xxx.xxx.jewel.beads.controls {
> >
> >     import org.apache.royale.core.IToolTipBead;
> >     import org.apache.royale.jewel.beads.controls.Disabled;
> >
> >     COMPILE::JS
> >     public class DisabledToolTip extends Disabled
> >     {
> >
> >         public function DisabledToolTip()
> >         {
> >             super();
> >         }
> >
> >         private var _beadToolTip:IToolTipBead;
> >         public function set beadToolTip(value:IToolTipBead):void
> >         {
> >             _beadToolTip = value;
> >         }
> >
> >         override protected function updateHost():void
> >         {
> >             super.updateHost();
> >
> >             if(disabled) {
> >                 if(_beadToolTip) {
> >                     _beadToolTip.removeTip();
> >                 }
> >             }
> >         }
> >     }
> >
> >     COMPILE::SWF
> >     public class DisabledToolTip extends Disabled
> >     {
> >     public function DisabledToolTip()
> >     {
> >         super();
> >     }
> >     }
> > }
> >
> > Any ideas?
> > Thx.
> > Hiedra.
> >
>
>

-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

RE: Error extending bead Disabled

Posted by Maria Jose Esteve <mj...@iest.com>.
Hi Edward,
Thanks for answering. If this is so ... how can I do it then?
Has the same situation been given to you? Could you give me an example of how I should continue?

Thx.
Hiedra.

-----Mensaje original-----
De: Edward Stangler <es...@bradmark.com> 
Enviado el: lunes, 4 de enero de 2021 6:31
Para: dev@royale.apache.org
Asunto: Re: Error extending bead Disabled


Jewel Disabled (the parent class) needs to extend DispatcherBead (instead of Bead) or EventDispatcher.

My guess is that it's the "[Bindable]" part in Disabled causing the requirement.  Only happens if Disabled is in a library.



On 1/3/2021 9:50 PM, Maria Jose Esteve wrote:
> Hello,
> I'm getting an error that I can't fix when extending bead Jewel Disabled:
>
> interface method addEventListener in interface IEventDispatcher is 
> implemented with an incompatible signature in class DisabledToolTip 
> interface method removeEventListener in interface IEventDispatcher is 
> implemented with an incompatible signature in class DisabledToolTip 
> interface method dispatchEvent in interface IEventDispatcher is 
> implemented with an incompatible signature in class DisabledToolTip
>
> It is not the first time I have encountered this error and it has only been fixed when I create a copy of the main class and extend it.
>
> package com.xxx.xxx.jewel.beads.controls {
>
>     import org.apache.royale.core.IToolTipBead;
>     import org.apache.royale.jewel.beads.controls.Disabled;
>
>     COMPILE::JS
>     public class DisabledToolTip extends Disabled
>     {
>
>         public function DisabledToolTip()
>         {
>             super();
>         }
>
>         private var _beadToolTip:IToolTipBead;
>         public function set beadToolTip(value:IToolTipBead):void
>         {
>             _beadToolTip = value;
>         }
>
>         override protected function updateHost():void
>         {
>             super.updateHost();
>
>             if(disabled) {
>                 if(_beadToolTip) {
>                     _beadToolTip.removeTip();
>                 }
>             }
>         }
>     }
>
>     COMPILE::SWF
>     public class DisabledToolTip extends Disabled
>     {
>     public function DisabledToolTip()
>     {
>         super();
>     }
>     }
> }
>
> Any ideas?
> Thx.
> Hiedra.
>


Re: Error extending bead Disabled

Posted by Edward Stangler <es...@bradmark.com>.
Jewel Disabled (the parent class) needs to extend DispatcherBead
(instead of Bead) or EventDispatcher.

My guess is that it's the "[Bindable]" part in Disabled causing the
requirement.  Only happens if Disabled is in a library.



On 1/3/2021 9:50 PM, Maria Jose Esteve wrote:
> Hello,
> I'm getting an error that I can't fix when extending bead Jewel Disabled:
>
> interface method addEventListener in interface IEventDispatcher is implemented with an incompatible signature in class DisabledToolTip
> interface method removeEventListener in interface IEventDispatcher is implemented with an incompatible signature in class DisabledToolTip
> interface method dispatchEvent in interface IEventDispatcher is implemented with an incompatible signature in class DisabledToolTip
>
> It is not the first time I have encountered this error and it has only been fixed when I create a copy of the main class and extend it.
>
> package com.xxx.xxx.jewel.beads.controls
> {
>
>     import org.apache.royale.core.IToolTipBead;
>     import org.apache.royale.jewel.beads.controls.Disabled;
>
>     COMPILE::JS
>     public class DisabledToolTip extends Disabled
>     {
>
>         public function DisabledToolTip()
>         {
>             super();
>         }
>
>         private var _beadToolTip:IToolTipBead;
>         public function set beadToolTip(value:IToolTipBead):void
>         {
>             _beadToolTip = value;
>         }
>
>         override protected function updateHost():void
>         {
>             super.updateHost();
>
>             if(disabled) {
>                 if(_beadToolTip) {
>                     _beadToolTip.removeTip();
>                 }
>             }
>         }
>     }
>
>     COMPILE::SWF
>     public class DisabledToolTip extends Disabled
>     {
>     public function DisabledToolTip()
>     {
>         super();
>     }
>     }
> }
>
> Any ideas?
> Thx.
> Hiedra.
>