Hi Warren,
The same error happened to me as it did to you, and as Carlos says, the origin 
was the change from html ButtonBarModel to jewel ButtonBarModel.
In my case, I had a custom component that extended from ButtonBar.
Carlos's advice, for me, is correct, download and compile the SDK every day 
because right now there are many changes that you can handle daily but that can 
become a very complicated task if you accumulate them.

Hiedra.

De: Carlos Rovira <[email protected]>
Enviado el: sábado, 2 de enero de 2021 10:23
Para: [email protected]
Asunto: Re: [EXTERNAL] Re: Grid Sort issues

Hi Warren,

I think I know what the problem is: ButtonBarModel was changed for a jewel 
version that uses ArrayListSelectionModel, since other users reported a problem 
with selection in ButtonBar.

So please seek in your code for
  `org.apache.royale.html.beads.models.ButtonBarModel`
and change to
  `org.apache.royale.jewel.beads.models.ButtonBarModel`

For this kind of thing I ended doing daily builds and investing some minutes on 
catching up with the changes people are doing.
If not, it can be a very daunting task to keep synced, and impossible as the 
time passes.

HTH

Carlos



El jue, 31 dic 2020 a las 17:59, wkoch 
(<[email protected]<mailto:[email protected]>>) escribió:
I'm hoping this will help.  It's a snippet from the Release JS code.  If not
please tell me what you need to get more context.

D('org.apache.royale.geom.Point.prototype.subtract',gt.prototype.subtract);gt.prototype.add=function(a){return
new
gt(this.x+a.x,this.y+a.y)};D('org.apache.royale.geom.Point.prototype.add',gt.prototype.add);gt.prototype.normalize=function(a){var
b=this.length;0<b&amp;&amp;(b=a/b,this.x*=b,this.y*=b)};D('org.apache.royale.geom.Point.prototype.normalize',gt.prototype.normalize);gt.prototype.toString=function(){return'(x='+this.x+',
y='+this.y+')'};D('org.apache.royale.geom.Point.prototype.toString',gt.prototype.toString);
gt.prototype.copyFrom=function(a){this.x=a.x;this.y=a.y};D('org.apache.royale.geom.Point.prototype.copyFrom',gt.prototype.copyFrom);gt.prototype.setTo=function(a,b){this.x=a;this.y=b};D('org.apache.royale.geom.Point.prototype.setTo',gt.prototype.setTo);gt.prototype.Ga<http://gt.prototype.Ga>=function(){return
Math.sqrt(this.x*this.x+this.y*this.y)};Object.defineProperties(gt.prototype,{length:{get:gt.prototype.Ga<http://gt.prototype.Ga>}});gt.prototype.g={names:[{name:'Point',i:gh,kind:t}]};function
ht(){L.call(this)}E(ht,L);D(kh,ht);C=ht.prototype;C.createElement=function(){qo(this,Nd);this.Mh=this.element;this.ed=new
sr;this.element.appendChild(this.ed.element);this.element.appendChild(document.createTextNode(''));this.ed.element.royale_wrapper=this;this.typeNames='CheckBox
CheckBoxIcon';return this.element};C.C=function(){return
G.o(this.Mh.childNodes.item(1).nodeValue)};C.F=function(a){this.Mh.childNodes.item(1).nodeValue=a};C.Ia=function(){return
this.ed.element.checked};
C.Va=function(a){this.ed.element.checked=a};Object.defineProperties(ht.prototype,{text:{get:ht.prototype.C,set:ht.prototype.F},selected:{get:ht.prototype.Ia,set:ht.prototype.Va<http://ht.prototype.Va>}});ht.prototype.g={names:[{name:'CheckBox',i:kh,kind:t}]};function
Zq(){}E(Zq,Rr);D('org.apache.royale.jewel.beads.layouts.DataGridColumnLayout',Zq);Zq.LAYOUT_TYPE_NAMES=Qd;D('org.apache.royale.jewel.beads.layouts.DataGridColumnLayout.LAYOUT_TYPE_NAMES',Zq.LAYOUT_TYPE_NAMES);Zq.prototype.beadsAddedHandler=function(){Zq.s.beadsAddedHandler.apply(this);this.si<http://this.si>=G.as(G.as(this.host,wn).getBeadByType(Yq),Yq);this.hostComponent.addEventListener('headerLayout',G.j(this.ti,this,Ak));this.hostComponent.addEventListener(Yc,G.j(this.ti,this,Ak))};
D('org.apache.royale.jewel.beads.layouts.DataGridColumnLayout.prototype.beadsAddedHandler',Zq.prototype.beadsAddedHandler);Zq.prototype.ld=0;Zq.prototype.ti=function(a){var
b=this.datagrid.view.listArea.element;b=b.offsetWidth-b.clientWidth;a=a.type==Yc;if(b!=this.ld||a)this.ld=b,this.ri=!0,a||this.layout()};
Zq.prototype.layout=function(){var
a=this.layoutView,b=a.numElements;if(0>=b)return!1;for(var
d,f,h=0;h<b;h++){var
k=a.getElementAt(h);null!=k&amp;&amp;k.visible&amp;&amp;G.is(k,Hn)&amp;&amp;(d=k,this.si.buttonWidths?(f=this.si<http://this.si>.buttonWidths[h],f.configureWidth(k)):this.kd&amp;&amp;(this.kd.configureWidth(k),f=this.kd))}d&amp;&amp;(this.ri||this.ld)&amp;&amp;(f.applyRightOffset(d,this.ld),this.ri=!1);return
Zq.s.layout.apply(this)};D('org.apache.royale.jewel.beads.layouts.DataGridColumnLayout.prototype.layout',Zq.prototype.layout);
Zq.prototype.Lb<http://Zq.prototype.Lb>=function(){return
this._strand.parent};Zq.prototype.Lj=B('kd');Zq.prototype.Go=A('kd');Object.defineProperties(Zq.prototype,{datagrid:{get:Zq.prototype.Lb<http://Zq.prototype.Lb>},defaultWidth:{get:Zq.prototype.Lj,set:Zq.prototype.Go}});function
it(){}E(it,qq);D(Zi,it);it.prototype.layout=Rl(!0);D('org.apache.royale.jewel.beads.layouts.ViewLayout.prototype.layout',it.prototype.layout);it.prototype.g={names:[{name:'ViewLayout',i:Zi,kind:t}]};function
qo(a,b){b=document.createElement(b);return
a.element=b}D('org.apache.royale.html.util.addElementToWrapper',qo);function
jt(){}D(ti,jt);C=jt.prototype;C.handleItemAdded=function(a){a.item.addEventListener(zd,G.j(this.selectedHandler,this,el))};C.handleItemRemoved=function(a){a.item.removeEventListener(zd,G.j(this.selectedHandler,this,el))};C.selectedHandler=function(a){this.model.selectedIndex=a.index>>0;this.model.selectedItem=a.data;this.view.host.dispatchEvent(new
K(K.CHANGE))};C.modelChangeHandler=function(a){G.as(this.Ye,F,!0).dispatchEvent(new
K(a.type))};
C.m=function(a){this.Ye=a;this.model=G.as(a.getBeadByType(Lr),Lr);this.Ye.addEventListener(xd,G.j(this.handleItemAdded,this,Uc));this.Ye.addEventListener(Ad,G.j(this.handleItemRemoved,this,Wc));G.is(this.model,Ir)?G.as(this.model,Ir,!0).dispatcher=a:(this.model.addEventListener(il,G.j(this.modelChangeHandler,this,Xd)),this.model.addEventListener(vc,G.j(this.modelChangeHandler,this,Xd)))};Object.defineProperties(jt.prototype,{strand:{set:jt.prototype.m}});
jt.prototype.g={names:[{name:'DropDownListController',i:ti,kind:t}],l:[po]};function
kt(){}D(tf,kt);kt.prototype.applyImageData=z();kt.prototype.g={names:[{name:'IImage',i:tf,kind:v}],l:[Qp]};function
lt(){O.call(this)}E(lt,O);D(Kg,lt);lt.prototype.applyImageData=z();D('org.apache.royale.core.supportClasses.StyledImageBase.prototype.applyImageData',lt.prototype.applyImageData);lt.prototype.Dl=function(){return
this.model.url};lt.prototype.bq=function(a){this.model.url=a};lt.prototype.Qb=Rl(null);Object.defineProperties(lt.prototype,{src:{get:lt.prototype.Dl,set:lt.prototype.bq},imageElement:{get:lt.prototype.Qb}});lt.prototype.g={names:[{name:'StyledImageBase',i:Kg,kind:t}],l:[kt]};function
mt(a,b,d){a='undefined'!==typeof a?a:null;b='undefined'!==typeof
b?b:null;d='undefined'!==typeof
d?d:!1;J.call(this);this.fields=a;this.compareFunction=b;this.unique=d}E(mt,J);D(Ee,mt);mt.ANY_INDEX_MODE='any';D('org.apache.royale.collections.Sort.ANY_INDEX_MODE',mt.ANY_INDEX_MODE);mt.FIRST_INDEX_MODE='first';D('org.apache.royale.collections.Sort.FIRST_INDEX_MODE',mt.FIRST_INDEX_MODE);mt.LAST_INDEX_MODE='last';D('org.apache.royale.collections.Sort.LAST_INDEX_MODE',mt.LAST_INDEX_MODE);




--
Sent from: http://apache-royale-users.20374.n8.nabble.com/


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

Reply via email to